[Ui] Add documentation for Ui::close_current_group

This commit is contained in:
Malik Olivier Boussejra 2018-09-26 14:28:02 +09:00
parent 88b5b2e3f5
commit add8bdbd16

View File

@ -1226,6 +1226,8 @@ impl<'ui> Ui<'ui> {
pub fn popup_modal<'p>(&self, str_id: &'p ImStr) -> PopupModal<'ui, 'p> {
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) {
unsafe { sys::igCloseCurrentPopup() };
}