pub enum RadiusValue {
Literal(f32),
Token(RadiusToken),
}Expand description
A corner radius that is either a literal or a named theme token.
A literal is the same under every theme. A token resolves against the theme that is current when the node paints, so switching the theme repaints it.
Variants§
Literal(f32)
A fixed radius in logical pixels.
Token(RadiusToken)
A radius looked up in the current theme.
Implementations§
Source§impl RadiusValue
impl RadiusValue
Trait Implementations§
Source§impl Clone for RadiusValue
impl Clone for RadiusValue
impl Copy for RadiusValue
Source§impl Debug for RadiusValue
impl Debug for RadiusValue
Source§impl Default for RadiusValue
impl Default for RadiusValue
Source§fn default() -> RadiusValue
fn default() -> RadiusValue
A radius of zero, which gives square corners.
Source§impl From<RadiusToken> for RadiusValue
impl From<RadiusToken> for RadiusValue
Source§fn from(token: RadiusToken) -> RadiusValue
fn from(token: RadiusToken) -> RadiusValue
Converts to this type from the input type.
Source§impl From<RadiusValue> for Value<RadiusValue>
impl From<RadiusValue> for Value<RadiusValue>
Source§fn from(value: RadiusValue) -> Value<RadiusValue>
fn from(value: RadiusValue) -> Value<RadiusValue>
Converts to this type from the input type.
Source§impl From<f32> for RadiusValue
impl From<f32> for RadiusValue
Source§fn from(radius: f32) -> RadiusValue
fn from(radius: f32) -> RadiusValue
Converts to this type from the input type.
Source§impl PartialEq for RadiusValue
impl PartialEq for RadiusValue
impl StructuralPartialEq for RadiusValue
Auto Trait Implementations§
impl Forget for RadiusValue
impl Freeze for RadiusValue
impl Move for RadiusValue
impl RefUnwindSafe for RadiusValue
impl Send for RadiusValue
impl Sync for RadiusValue
impl Unpin for RadiusValue
impl UnsafeUnpin for RadiusValue
impl UnwindSafe for RadiusValue
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