Enum kas_core::theme::FrameStyle
source · [−]pub enum FrameStyle {
Frame,
Popup,
MenuEntry,
NavFocus,
Button,
EditBox,
}Expand description
Style of a frame
A “frame” is an element surrounding another element.
Variants
Frame
A frame for grouping content
Popup
A frame around pop-ups
MenuEntry
Border around a pop-up menu entry
NavFocus
Frame used to indicate navigation focus
Button
Border of a button
EditBox
Box used to contain editable text
Trait Implementations
sourceimpl Clone for FrameStyle
impl Clone for FrameStyle
sourcefn clone(&self) -> FrameStyle
fn clone(&self) -> FrameStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FrameStyle
impl Debug for FrameStyle
sourceimpl Hash for FrameStyle
impl Hash for FrameStyle
sourceimpl Ord for FrameStyle
impl Ord for FrameStyle
sourcefn cmp(&self, other: &FrameStyle) -> Ordering
fn cmp(&self, other: &FrameStyle) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FrameStyle> for FrameStyle
impl PartialEq<FrameStyle> for FrameStyle
sourcefn eq(&self, other: &FrameStyle) -> bool
fn eq(&self, other: &FrameStyle) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl PartialOrd<FrameStyle> for FrameStyle
impl PartialOrd<FrameStyle> for FrameStyle
sourcefn partial_cmp(&self, other: &FrameStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &FrameStyle) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for FrameStyle
impl Eq for FrameStyle
impl StructuralEq for FrameStyle
impl StructuralPartialEq for FrameStyle
Auto Trait Implementations
impl RefUnwindSafe for FrameStyle
impl Send for FrameStyle
impl Sync for FrameStyle
impl Unpin for FrameStyle
impl UnwindSafe for FrameStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
sourcefn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self to T Read more
sourcefn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self to T Read more
sourceimpl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
sourcefn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
sourcefn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
sourcefn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
sourcefn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
sourcefn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
sourcefn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
sourcefn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.