Struct raui_quick_start::RauiQuickStartBuilder
source · pub struct RauiQuickStartBuilder { /* private fields */ }Expand description
Builder for RauiQuickStart.
Implementations§
source§impl RauiQuickStartBuilder
impl RauiQuickStartBuilder
sourcepub fn window_title(&mut self, value: String) -> &mut Self
pub fn window_title(&mut self, value: String) -> &mut Self
The title of the window
sourcepub fn window_size(&mut self, value: (i32, i32)) -> &mut Self
pub fn window_size(&mut self, value: (i32, i32)) -> &mut Self
The initial width and height of the window
sourcepub fn widget_tree(&mut self, value: WidgetNode) -> &mut Self
pub fn widget_tree(&mut self, value: WidgetNode) -> &mut Self
The RAUI widget tree
sourcepub fn clear_color(&mut self, value: Color) -> &mut Self
pub fn clear_color(&mut self, value: Color) -> &mut Self
Color of the window background.
sourcepub fn build(&self) -> Result<RauiQuickStart, RauiQuickStartBuilderError>
pub fn build(&self) -> Result<RauiQuickStart, RauiQuickStartBuilderError>
Trait Implementations§
source§impl Clone for RauiQuickStartBuilder
impl Clone for RauiQuickStartBuilder
source§fn clone(&self) -> RauiQuickStartBuilder
fn clone(&self) -> RauiQuickStartBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RauiQuickStartBuilder
impl !Send for RauiQuickStartBuilder
impl !Sync for RauiQuickStartBuilder
impl Unpin for RauiQuickStartBuilder
impl !UnwindSafe for RauiQuickStartBuilder
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more