Struct kas_theme::dim::Dimensions [−][src]
pub struct Dimensions {Show 18 fields
pub scale_factor: f32,
pub dpp: f32,
pub pt_size: f32,
pub font_marker_width: f32,
pub line_height: i32,
pub min_line_length: i32,
pub outer_margin: u16,
pub inner_margin: u16,
pub frame_margin: u16,
pub text_margin: u16,
pub frame: i32,
pub button_frame: i32,
pub checkbox: i32,
pub scrollbar: Size,
pub slider: Size,
pub progress_bar: Size,
pub shadow_a: Vec2,
pub shadow_b: Vec2,
}Expand description
Dimensions available within Window
Fields
scale_factor: f32dpp: f32pt_size: f32font_marker_width: f32line_height: i32min_line_length: i32outer_margin: u16inner_margin: u16frame_margin: u16text_margin: u16frame: i32checkbox: i32scrollbar: Sizeslider: Sizeprogress_bar: Sizeshadow_a: Vec2shadow_b: Vec2Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnwindSafe for Dimensions
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