Struct kas_theme::dim::Window[][src]

pub struct Window {
    pub dims: Dimensions,
    pub fonts: Rc<LinearMap<TextClass, FontId>>,
}
Expand description

A convenient implementation of crate::Window

Fields

dims: Dimensionsfonts: Rc<LinearMap<TextClass, FontId>>

Implementations

Trait Implementations

Get the scale (DPI) factor Read more

Convert a size in font Points to physical pixels

Convert a size in font Em to physical pixels Read more

Size of a frame around child widget(s) Read more

Frame/margin around a menu entry

Size of a separator frame between items

Size of a navigation highlight margin around a child widget

The margin around content within a widget Read more

The margin between UI elements, where desired Read more

The margin around frames and separators

The margin around text elements Read more

The height of a line of text

Update a [Text] and get a size bound Read more

Width of an edit marker

Size of the sides of a button.

Size of the frame around an edit box, including margin Read more

Size of the element drawn by DrawHandle::checkbox.

Size of the element drawn by DrawHandle::radiobox.

Dimensions for a scrollbar Read more

Dimensions for a slider Read more

Dimensions for a progress bar Read more

Convert a size in virtual pixels to physical pixels

Construct a SizeHandle object

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

Cast from Self to T

Try converting from Self to T

Cast to integer, truncating Read more

Cast to the nearest integer Read more

Cast the floor to an integer Read more

Cast the ceiling to an integer Read more

Try converting to integer with truncation Read more

Try converting to the nearest integer Read more

Try converting the floor to an integer Read more

Try convert the ceiling to an integer Read more

Convert from T to Self

Try converting from T to Self

Returns true if the given item matches this filter

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.