1use crate::Plot3DUi;
2use crate::sys;
3
4impl Plot3DUi<'_> {
5 pub fn show_all_demos(&self) {
10 let _guard = self.bind();
11 unsafe { sys::ImPlot3D_ShowAllDemos() }
12 }
13
14 pub fn show_demo_window(&self) {
18 let _guard = self.bind();
19 unsafe { sys::ImPlot3D_ShowDemoWindow(std::ptr::null_mut()) }
20 }
21
22 pub fn show_demo_window_with_flag(&self, p_open: &mut bool) {
24 let _guard = self.bind();
25 unsafe { sys::ImPlot3D_ShowDemoWindow(p_open as *mut bool) }
26 }
27
28 pub fn show_style_editor(&self) {
32 let _guard = self.bind();
33 unsafe { sys::ImPlot3D_ShowStyleEditor(std::ptr::null_mut()) }
34 }
35
36 pub fn show_metrics_window(&self) {
40 let _guard = self.bind();
41 unsafe { sys::ImPlot3D_ShowMetricsWindow(std::ptr::null_mut()) }
42 }
43
44 pub fn show_metrics_window_with_flag(&self, p_open: &mut bool) {
46 let _guard = self.bind();
47 unsafe { sys::ImPlot3D_ShowMetricsWindow(p_open as *mut bool) }
48 }
49}