Struct kas_theme::dim::Parameters [−][src]
pub struct Parameters {
pub outer_margin: f32,
pub inner_margin: f32,
pub frame_margin: f32,
pub text_margin: f32,
pub frame_size: f32,
pub button_frame: f32,
pub checkbox_inner: f32,
pub scrollbar_size: Vec2,
pub slider_size: Vec2,
pub progress_bar: Vec2,
pub shadow_size: Vec2,
pub shadow_rel_offset: Vec2,
}Expand description
Parameterisation of Dimensions
All dimensions are multiplied by the DPI factor, then rounded to the
nearest integer. Example: (2.0 * 1.25).round() = 3.0.
Fields
outer_margin: f32Space between elements
inner_margin: f32Margin inside a frame before contents
frame_margin: f32Margin around frames and seperators
text_margin: f32Margin between text elements
frame_size: f32Frame size
Button frame size (non-flat outer region)
checkbox_inner: f32Checkbox inner size in Points
scrollbar_size: Vec2Scrollbar minimum handle size
slider_size: Vec2Slider minimum handle size
progress_bar: Vec2Progress bar size (horizontal)
shadow_size: Vec2Shadow size (average)
shadow_rel_offset: Vec2Proportional offset of shadow (range: -1..=1)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
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