pub enum LiquidShape {
Capsule,
RoundedRect(f32),
Circle,
}Expand description
The shape of a glass element (also its clip and shadow shape).
Variants§
Capsule
A pill: corner radius follows the smaller half-extent.
RoundedRect(f32)
Rounded rectangle with the radius in dp.
Circle
A circle (capsule of a square node).
Implementations§
Source§impl LiquidShape
impl LiquidShape
Sourcepub fn clip_shape(&self) -> RoundedCornerShape
pub fn clip_shape(&self) -> RoundedCornerShape
The clip shape handed to the graphics layer.
Sourcepub fn layer_shape(&self) -> LayerShape
pub fn layer_shape(&self) -> LayerShape
The layer shape (clip + shadow geometry).
Trait Implementations§
Source§impl Clone for LiquidShape
impl Clone for LiquidShape
Source§fn clone(&self) -> LiquidShape
fn clone(&self) -> LiquidShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LiquidShape
Source§impl Debug for LiquidShape
impl Debug for LiquidShape
Source§impl Default for LiquidShape
impl Default for LiquidShape
Source§fn default() -> LiquidShape
fn default() -> LiquidShape
Returns the “default value” for a type. Read more
Source§impl PartialEq for LiquidShape
impl PartialEq for LiquidShape
impl StructuralPartialEq for LiquidShape
Auto Trait Implementations§
impl Freeze for LiquidShape
impl RefUnwindSafe for LiquidShape
impl Send for LiquidShape
impl Sync for LiquidShape
impl Unpin for LiquidShape
impl UnsafeUnpin for LiquidShape
impl UnwindSafe for LiquidShape
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