Struct flo_draw::WindowProperties
source · pub struct WindowProperties {
pub title: BindRef<String>,
pub size: BindRef<(u64, u64)>,
pub fullscreen: BindRef<bool>,
pub has_decorations: BindRef<bool>,
pub mouse_pointer: BindRef<MousePointer>,
}
Expand description
The window properties struct provides a copy of all of the bindings for a window, and is a good way to provide custom bindings (for example, if you want to be able to toggle the window betwen fullscreen and a normal display)
Fields§
§title: BindRef<String>
§size: BindRef<(u64, u64)>
§fullscreen: BindRef<bool>
§has_decorations: BindRef<bool>
§mouse_pointer: BindRef<MousePointer>
Implementations§
source§impl WindowProperties
impl WindowProperties
sourcepub fn from<T: FloWindowProperties>(properties: &T) -> WindowProperties
pub fn from<T: FloWindowProperties>(properties: &T) -> WindowProperties
Creates a clone of an object implementing the FloWindowProperties trait
Trait Implementations§
source§impl Clone for WindowProperties
impl Clone for WindowProperties
source§fn clone(&self) -> WindowProperties
fn clone(&self) -> WindowProperties
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 moresource§impl FloWindowProperties for WindowProperties
impl FloWindowProperties for WindowProperties
source§fn fullscreen(&self) -> BindRef<bool>
fn fullscreen(&self) -> BindRef<bool>
Set to true if the window should be fullscreen
source§fn has_decorations(&self) -> BindRef<bool>
fn has_decorations(&self) -> BindRef<bool>
Set to true if the window should have decorations
source§fn mouse_pointer(&self) -> BindRef<MousePointer>
fn mouse_pointer(&self) -> BindRef<MousePointer>
The mouse pointer to show for a window