usecrate::Ui;usecrate::sys;implUi{/// Creates a bullet point
#[doc(alias ="Bullet")]pubfnbullet(&self){self.run_with_bound_context(||unsafe{sys::igBullet();});}/// Creates a bullet point with text
#[doc(alias ="BulletText")]pubfnbullet_text(&self, text: impl AsRef<str>){let text_ptr =self.scratch_txt(text);self.run_with_bound_context(||unsafe{// Always treat the value as unformatted user text.
constFMT:&[u8;3]=b"%s\0";sys::igBulletText(FMT.as_ptr()as*conststd::os::raw::c_char, text_ptr);});}}implUi{/// Creates a small button
#[doc(alias ="SmallButton")]pubfnsmall_button(&self, label: impl AsRef<str>)->bool{let label_ptr =self.scratch_txt(label);self.run_with_bound_context(||unsafe{sys::igSmallButton(label_ptr)})}}