pub trait ConfigExt {
Show 15 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§

Returns the maximum size of the window.

Returns the minimum size of the window.

Returns the current size of the window.

Returns the opacity of the window.

Returns the position of the window.

Returns the title of the window.

Sets the maximum size of the window.

Sets the minimum size of the window.

Sets the current size of the window.

Sets the opacity of the window.

Errors

Returns Err if setting the opacity of window is unsupported.

Sets the position of the window.

Sets the title of the window.

Sets whether the window is resizable.

Adds a frame to the window.

Removes a frame from the window.

Implementors§