pub struct UIBlueprint {
pub title: String,
pub dimensions: (u32, u32),
pub resizeable: bool,
pub maximized: bool,
pub preserve_aspect_ratio: bool,
pub frames_per_second: u32,
}Expand description
The initial settings that a windowed application will need to initialize and display itself.
Fieldsยง
ยงtitle: Stringยงdimensions: (u32, u32)ยงresizeable: boolยงmaximized: boolยงpreserve_aspect_ratio: boolยงframes_per_second: u32Implementationsยง
Sourceยงimpl UIBlueprint
impl UIBlueprint
pub fn default() -> UIBlueprint
pub fn title(self, title: &str) -> UIBlueprint
pub fn dimensions(self, dimensions: (u32, u32)) -> UIBlueprint
pub fn resizeable(self, resizeable: bool) -> UIBlueprint
pub fn maximized(self, maximized: bool) -> UIBlueprint
pub fn preserve_aspect_ratio(self, preserve_aspect_ratio: bool) -> UIBlueprint
pub fn frames_per_second(self, frames_per_second: u32) -> UIBlueprint
Auto Trait Implementationsยง
impl Freeze for UIBlueprint
impl RefUnwindSafe for UIBlueprint
impl Send for UIBlueprint
impl Sync for UIBlueprint
impl Unpin for UIBlueprint
impl UnwindSafe for UIBlueprint
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