pub enum Bevel {
Raised,
Inset,
}Expand description
Which way the light falls across a two-tone edge.
The whole content of a bevel, once colour and thickness are deferred. The light is always assumed to come from the top left: every consumer measured agreed on that and none of them ever varied it, so it is an invariant here rather than a parameter.
Variants§
Raised
Lit from the top left: light on top and left, dark on bottom and right.
Inset
The same edge inverted, which is also the pressed state of anything
that draws itself Bevel::Raised.
Implementations§
Trait Implementations§
impl Copy for Bevel
impl Eq for Bevel
impl StructuralPartialEq for Bevel
Auto Trait Implementations§
impl Freeze for Bevel
impl RefUnwindSafe for Bevel
impl Send for Bevel
impl Sync for Bevel
impl Unpin for Bevel
impl UnsafeUnpin for Bevel
impl UnwindSafe for Bevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more