Struct kas_theme::DimensionsParams [−][src]
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 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]
fn clone(&self) -> DimensionsParams
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DimensionsParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for DimensionsParams
impl Send for DimensionsParams
impl Sync for DimensionsParams
impl Unpin for DimensionsParams
impl UnwindSafe for DimensionsParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Cast<T> for S where
T: Conv<S>,
T: Conv<S>,
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
T: ConvFloat<S>,
pub fn cast_trunc(self) -> T
pub fn cast_nearest(self) -> T
pub fn cast_floor(self) -> T
pub fn cast_ceil(self) -> T
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
impl<T> Conv<T> for T
impl<'a, T, X> Filter<&'a T> for X where
T: Clone,
X: Filter<T>,
[src]
T: Clone,
X: Filter<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,