Struct show_image::WindowOptions [−][src]
pub struct WindowOptions { pub preserve_aspect_ratio: bool, pub background_color: Color, pub start_hidden: bool, pub size: Option<[u32; 2]>, pub resizable: bool, pub borderless: bool, pub show_overlays: bool, }
Expand description
Options for creating a new window.
Fields
preserve_aspect_ratio: bool
Preserve the aspect ratio of the image when scaling.
background_color: Color
The background color for the window.
This is used to color areas without image data if preserve_aspect_ratio
is true.
Create the window hidden.
The window can manually be made visible at a later time.
size: Option<[u32; 2]>
The initial size of the window in pixel.
This may be ignored by a window manager.
resizable: bool
If true allow the window to be resized.
This may be ignored by a window manager.
borderless: bool
Make the window borderless.
show_overlays: bool
If true, draw overlays on the image.
Defaults to true.
Implementations
Preserve the aspect ratio of displayed images, or not.
This function consumes and returns self
to allow daisy chaining.
Set the background color of the window.
This function consumes and returns self
to allow daisy chaining.
Start the window hidden.
This function consumes and returns self
to allow daisy chaining.
Set the initial size of the window.
This property may be ignored by a window manager.
This function consumes and returns self
to allow daisy chaining.
Make the window resizable or not.
This property may be ignored by a window manager.
This function consumes and returns self
to allow daisy chaining.
Make the window borderless or not.
This function consumes and returns self
to allow daisy chaining.
Set wether or not overlays should be drawn on the window.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WindowOptions
impl Send for WindowOptions
impl Sync for WindowOptions
impl Unpin for WindowOptions
impl UnwindSafe for WindowOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V