mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-24 20:08:31 +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]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add `ChildWindow::movable`
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Upgrade to cimgui / imgui 1.73
|
- Upgrade to cimgui / imgui 1.73
|
||||||
|
|||||||
@ -83,6 +83,14 @@ impl<'a> ChildWindow<'a> {
|
|||||||
self.border = border;
|
self.border = border;
|
||||||
self
|
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
|
/// Enables/disables scrollbars (scrolling is still possible with the mouse or
|
||||||
/// programmatically).
|
/// programmatically).
|
||||||
///
|
///
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user