mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-23 11:28:28 +00:00
[Ui] Add documentation for Ui::close_current_group
This commit is contained in:
parent
88b5b2e3f5
commit
add8bdbd16
@ -1226,6 +1226,8 @@ impl<'ui> Ui<'ui> {
|
|||||||
pub fn popup_modal<'p>(&self, str_id: &'p ImStr) -> PopupModal<'ui, 'p> {
|
pub fn popup_modal<'p>(&self, str_id: &'p ImStr) -> PopupModal<'ui, 'p> {
|
||||||
PopupModal::new(self, str_id)
|
PopupModal::new(self, str_id)
|
||||||
}
|
}
|
||||||
|
/// Close a popup. Should be called within the closure given as argument to
|
||||||
|
/// [`Ui::popup`] or [`Ui::popup_modal`].
|
||||||
pub fn close_current_popup(&self) {
|
pub fn close_current_popup(&self) {
|
||||||
unsafe { sys::igCloseCurrentPopup() };
|
unsafe { sys::igCloseCurrentPopup() };
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user