pub struct SplitButtonShapes {
pub shape: OutlinedBorderRef,
pub pressed_shape: Option<OutlinedBorderRef>,
pub checked_shape: Option<OutlinedBorderRef>,
}Expand description
Compose’s SplitButtonShapes: the shapes a part morphs between as it is pressed, checked or
rested.
Fields§
§shape: OutlinedBorderRefThe resting shape.
pressed_shape: Option<OutlinedBorderRef>The shape while pressed, when the part has one.
checked_shape: Option<OutlinedBorderRef>The shape while checked, when the part has one.
Implementations§
Source§impl SplitButtonShapes
impl SplitButtonShapes
Sourcepub fn new(
shape: OutlinedBorderRef,
pressed_shape: Option<OutlinedBorderRef>,
checked_shape: Option<OutlinedBorderRef>,
) -> SplitButtonShapes
pub fn new( shape: OutlinedBorderRef, pressed_shape: Option<OutlinedBorderRef>, checked_shape: Option<OutlinedBorderRef>, ) -> SplitButtonShapes
Creates a set of shapes; Compose’s SplitButtonShapes(shape, pressedShape, checkedShape).
Trait Implementations§
Source§impl Clone for SplitButtonShapes
impl Clone for SplitButtonShapes
Source§impl Debug for SplitButtonShapes
impl Debug for SplitButtonShapes
Source§impl PartialEq for SplitButtonShapes
impl PartialEq for SplitButtonShapes
impl StructuralPartialEq for SplitButtonShapes
Auto Trait Implementations§
impl !RefUnwindSafe for SplitButtonShapes
impl !Send for SplitButtonShapes
impl !Sync for SplitButtonShapes
impl !UnwindSafe for SplitButtonShapes
impl Forget for SplitButtonShapes
impl Freeze for SplitButtonShapeswhere
*const RcInner<dyn OutlinedBorder> is !null: Freeze,
PhantomData<RcInner<dyn OutlinedBorder>>: Freeze,
impl Move for SplitButtonShapes
impl Unpin for SplitButtonShapes
impl UnsafeUnpin for SplitButtonShapeswhere
*const RcInner<dyn OutlinedBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn OutlinedBorder>>: UnsafeUnpin,
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