pub struct Gui {
pub title: String,
pub root_control: Option<Box<dyn Control>>,
/* private fields */
}Fields§
§title: String§root_control: Option<Box<dyn Control>>Implementations§
Source§impl Gui
impl Gui
pub fn new_gui(title: String) -> Gui
pub fn to_root(self) -> Result<Root, FError>
pub fn next_id(&self) -> Result<Vec<i32>, FError>
pub fn add_control( &mut self, control: Box<dyn Control>, ) -> Result<&mut Gui, FError>
pub fn add_slider( &mut self, name: String, label: Option<String>, orientation: Orientation, ) -> Result<&mut Gui, FError>
pub fn add_xy( &mut self, name: String, label: Option<String>, ) -> Result<&mut Gui, FError>
pub fn add_label( &mut self, name: String, label: String, ) -> Result<&mut Gui, FError>
pub fn add_sizer( &mut self, orientation: Orientation, proportions: Option<Vec<f32>>, ) -> Result<&mut Gui, FError>
pub fn end_sizer(&mut self) -> Result<&mut Gui, FError>
pub fn set_color(&mut self, color: Color, hexstring: &str) -> &mut Gui
Auto Trait Implementations§
impl Freeze for Gui
impl !RefUnwindSafe for Gui
impl Send for Gui
impl !Sync for Gui
impl Unpin for Gui
impl !UnwindSafe for Gui
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more