1use crate::Plot3DUi;
2use crate::sys;
3
4impl Plot3DUi<'_> {
5 pub fn show_all_demos(&self) {
10 self.with_bound_context(|| unsafe { sys::ImPlot3D_ShowAllDemos() })
11 }
12
13 pub fn show_demo_window(&self) {
17 self.with_bound_context(|| unsafe { sys::ImPlot3D_ShowDemoWindow(std::ptr::null_mut()) })
18 }
19
20 pub fn show_demo_window_with_flag(&self, p_open: &mut bool) {
22 self.with_bound_context(|| unsafe { sys::ImPlot3D_ShowDemoWindow(p_open as *mut bool) })
23 }
24
25 pub fn show_style_editor(&self) {
29 self.with_bound_context(|| unsafe { sys::ImPlot3D_ShowStyleEditor(std::ptr::null_mut()) })
30 }
31
32 pub fn show_metrics_window(&self) {
36 self.with_bound_context(|| unsafe { sys::ImPlot3D_ShowMetricsWindow(std::ptr::null_mut()) })
37 }
38
39 pub fn show_metrics_window_with_flag(&self, p_open: &mut bool) {
41 self.with_bound_context(|| unsafe { sys::ImPlot3D_ShowMetricsWindow(p_open as *mut bool) })
42 }
43}