Fix changed function name

This commit is contained in:
Joonas Javanainen 2019-06-27 09:03:54 +03:00
parent c1f48896e4
commit 7a80b1b3e6
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
2 changed files with 2 additions and 2 deletions

View File

@ -646,7 +646,7 @@ extern "C" {
pub fn igTreePop();
pub fn igTreeAdvanceToLabelPos();
pub fn igGetTreeNodeToLabelSpacing() -> c_float;
pub fn igSetNextTreeNodeOpen(opened: bool, cond: ImGuiCond);
pub fn igSetNextItemOpen(opened: bool, cond: ImGuiCond);
pub fn igCollapsingHeader(label: *const c_char, flags: ImGuiTreeNodeFlags) -> bool;
pub fn igCollapsingHeaderBoolPtr(
label: *const c_char,

View File

@ -98,7 +98,7 @@ impl<'ui, 'p> TreeNode<'ui, 'p> {
pub fn build<F: FnOnce()>(self, f: F) {
let render = unsafe {
if !self.opened_cond.is_empty() {
sys::igSetNextTreeNodeOpen(self.opened, self.opened_cond);
sys::igSetNextItemOpen(self.opened, self.opened_cond);
}
sys::igTreeNodeExStrStr(
self.id.as_ptr(),