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: Dimensions
fonts: 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)
Frame/margin around a menu entry
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 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 progress bar Read more
Convert a size in virtual pixels to physical pixels
Construct a SizeHandle
object
Auto Trait Implementations
impl !RefUnwindSafe for Window
impl UnwindSafe for Window
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more