pub struct WindowSize { /* private fields */ }
Expand description

Window size effect handler

Implementations

get size of the current window, return None if window not found

set width of the current window, return None if failed to run

set height of the current window, return None if failed to run

get width of current window

get height of current window

get layout of current window

using as WindowWidth

using as WindowHeight

using as WindowLayout

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.