pub struct Spinbox { /* private fields */ }Implementations§
Source§impl Spinbox
impl Spinbox
pub fn create(parent: &mut impl NativeObject) -> LvResult<Self>
pub fn create_at(parent: &mut impl NativeObject) -> LvResult<Self>
pub fn new() -> LvResult<Self>
pub fn set_value(&mut self, i: i32) -> LvResult<()>
pub fn set_rollover(&mut self, b: bool) -> LvResult<()>
pub fn set_digit_format( &mut self, digit_count: u8, separator_position: u8, ) -> LvResult<()>
pub fn set_range(&mut self, range_min: i32, range_max: i32) -> LvResult<()>
pub fn set_cursor_pos(&mut self, pos: u8) -> LvResult<()>
pub fn step_next(&mut self) -> LvResult<()>
pub fn step_prev(&mut self) -> LvResult<()>
pub fn increment(&mut self) -> LvResult<()>
pub fn decrement(&mut self) -> LvResult<()>
Trait Implementations§
Source§impl NativeObject for Spinbox
impl NativeObject for Spinbox
Source§impl Widget for Spinbox
impl Widget for Spinbox
type SpecialEvent = ()
type Part = Part
Source§fn from_raw(raw_pointer: NonNull<lv_obj_t>) -> Self
fn from_raw(raw_pointer: NonNull<lv_obj_t>) -> Self
Construct an instance of the object from a raw pointer.
Source§fn add_style(&mut self, part: Self::Part, style: &mut Style) -> LvResult<()>
fn add_style(&mut self, part: Self::Part, style: &mut Style) -> LvResult<()>
Adds a
Style to a given widget.Source§fn set_pos(&mut self, x: i16, y: i16) -> LvResult<()>
fn set_pos(&mut self, x: i16, y: i16) -> LvResult<()>
Sets a widget’s position relative to its parent.
Source§fn set_size(&mut self, w: i16, h: i16) -> LvResult<()>
fn set_size(&mut self, w: i16, h: i16) -> LvResult<()>
Sets a widget’s size. Alternatively, use
set_width() and set_height().Source§fn set_width(&mut self, w: u32) -> LvResult<()>
fn set_width(&mut self, w: u32) -> LvResult<()>
Sets a widget’s width. Alternatively, use
set_size().impl Send for Spinbox
Auto Trait Implementations§
impl Freeze for Spinbox
impl RefUnwindSafe for Spinbox
impl !Sync for Spinbox
impl Unpin for Spinbox
impl UnwindSafe for Spinbox
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.