mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Merge pull request #283 from malikolivier/implement-childwindow-movable
Implement ChildWindow::movable
This commit is contained in:
commit
2b06a1466e
@ -2,6 +2,10 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Add `ChildWindow::movable`
|
||||
|
||||
### Changed
|
||||
|
||||
- Upgrade to cimgui / imgui 1.73
|
||||
|
||||
@ -83,6 +83,14 @@ impl<'a> ChildWindow<'a> {
|
||||
self.border = border;
|
||||
self
|
||||
}
|
||||
/// Enables/disables moving the window when child window is dragged.
|
||||
///
|
||||
/// Enabled by default.
|
||||
#[inline]
|
||||
pub fn movable(mut self, value: bool) -> Self {
|
||||
self.flags.set(WindowFlags::NO_MOVE, !value);
|
||||
self
|
||||
}
|
||||
/// Enables/disables scrollbars (scrolling is still possible with the mouse or
|
||||
/// programmatically).
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user