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
Frame used to indicate navigation focus
Button
Border of a button
EditBox
Box used to contain editable text
Trait Implementations§
source§impl Clone for FrameStyle
impl Clone for FrameStyle
source§fn clone(&self) -> FrameStyle
fn clone(&self) -> FrameStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FrameStyle
impl Debug for FrameStyle
source§impl Hash for FrameStyle
impl Hash for FrameStyle
source§impl Ord for FrameStyle
impl Ord for FrameStyle
source§fn cmp(&self, other: &FrameStyle) -> Ordering
fn cmp(&self, other: &FrameStyle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FrameStyle> for FrameStyle
impl PartialEq<FrameStyle> for FrameStyle
source§fn 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 ==
.source§impl PartialOrd<FrameStyle> for FrameStyle
impl PartialOrd<FrameStyle> for FrameStyle
source§fn partial_cmp(&self, other: &FrameStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &FrameStyle) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl 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§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.