Struct kas_theme::DimensionsParams[][src]

pub struct DimensionsParams {
    pub outer_margin: f32,
    pub inner_margin: f32,
    pub text_margin: f32,
    pub frame_size: f32,
    pub button_frame: f32,
    pub scrollbar_size: Vec2,
    pub slider_size: Vec2,
    pub progress_bar: Vec2,
}

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: f32

Space between elements

inner_margin: f32

Margin inside a frame before contents

text_margin: f32

Margin between text elements

frame_size: f32

Frame size

button_frame: f32

Button frame size (non-flat outer region)

scrollbar_size: Vec2

Scrollbar minimum handle size

slider_size: Vec2

Slider minimum handle size

progress_bar: Vec2

Progress bar size (horizontal)

Trait Implementations

impl Clone for DimensionsParams[src]

impl Debug for DimensionsParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Cast<T> for S where
    T: Conv<S>, 

impl<S, T> CastFloat<T> for S where
    T: ConvFloat<S>, 

impl<T> Conv<T> for T

impl<'a, T, X> Filter<&'a T> for X where
    T: Clone,
    X: Filter<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.