pub enum ButtonLayout {
Stacked,
Hidden,
}Expand description
Step-button visibility / placement. Moved up from
teksilo_widgets::spin_box::ButtonLayout so the trait config can carry
it without forcing the recipe to depend on the widget crate.
Variants§
Stacked
Up arrow on top, down arrow below, stacked vertically to the right of the field. Default, matches Qt and WinUI.
Hidden
No visible step buttons. Useful for read-only displays and for SpinBoxes driven entirely by keyboard / wheel.
Trait Implementations§
Source§impl Clone for ButtonLayout
impl Clone for ButtonLayout
Source§fn clone(&self) -> ButtonLayout
fn clone(&self) -> ButtonLayout
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 ButtonLayout
Source§impl Debug for ButtonLayout
impl Debug for ButtonLayout
Source§impl Default for ButtonLayout
impl Default for ButtonLayout
Source§fn default() -> ButtonLayout
fn default() -> ButtonLayout
Returns the “default value” for a type. Read more
impl Eq for ButtonLayout
Source§impl PartialEq for ButtonLayout
impl PartialEq for ButtonLayout
impl StructuralPartialEq for ButtonLayout
Auto Trait Implementations§
impl Freeze for ButtonLayout
impl RefUnwindSafe for ButtonLayout
impl Send for ButtonLayout
impl Sync for ButtonLayout
impl Unpin for ButtonLayout
impl UnsafeUnpin for ButtonLayout
impl UnwindSafe for ButtonLayout
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