pub trait ConfigExt {
Show 15 methods // Required methods fn max_size(&self) -> Size; fn min_size(&self) -> Size; fn size(&self) -> Size; fn opacity(&self) -> Opacity; fn pos(&self) -> Point; fn title(&self) -> &str; fn set_max_size(&self, max_size: Size); fn set_min_size(&self, min_size: Size); fn set_size(&self, size: Size); fn set_opacity(&self, opacity: Opacity) -> Result<()>; fn set_pos(&self, pos: Position); fn set_title(&self, title: &str); fn set_resizable(&self, resizable: bool); fn add_frame(&self); fn remove_frame(&self);
}
Expand description

An extension for Window to configure its properties.

Required Methods§

source

fn max_size(&self) -> Size

Returns the maximum size of the window.

source

fn min_size(&self) -> Size

Returns the minimum size of the window.

source

fn size(&self) -> Size

Returns the current size of the window.

source

fn opacity(&self) -> Opacity

Returns the opacity of the window.

source

fn pos(&self) -> Point

Returns the position of the window.

source

fn title(&self) -> &str

Returns the title of the window.

source

fn set_max_size(&self, max_size: Size)

Sets the maximum size of the window.

source

fn set_min_size(&self, min_size: Size)

Sets the minimum size of the window.

source

fn set_size(&self, size: Size)

Sets the current size of the window.

source

fn set_opacity(&self, opacity: Opacity) -> Result<()>

Sets the opacity of the window.

§Errors

Returns Err if setting the opacity of window is unsupported.

source

fn set_pos(&self, pos: Position)

Sets the position of the window.

source

fn set_title(&self, title: &str)

Sets the title of the window.

source

fn set_resizable(&self, resizable: bool)

Sets whether the window is resizable.

source

fn add_frame(&self)

Adds a frame to the window.

source

fn remove_frame(&self)

Removes a frame from the window.

Implementors§