pub struct Slider { /* private fields */ }Available on crate feature
winio only.Expand description
A simple button.
Implementations§
Source§impl Slider
impl Slider
Sourcepub fn tick_pos(&self) -> Result<TickPosition, Error>
pub fn tick_pos(&self) -> Result<TickPosition, Error>
The tick position.
Sourcepub fn set_tick_pos(&mut self, v: TickPosition) -> Result<(), Error>
pub fn set_tick_pos(&mut self, v: TickPosition) -> Result<(), Error>
Set the tick position.
Trait Implementations§
Source§impl AsWidget for Slider
impl AsWidget for Slider
Source§fn as_widget(&self) -> BorrowedWidget<'_>
fn as_widget(&self) -> BorrowedWidget<'_>
Get the widget handle.
Source§impl Component for Slider
impl Component for Slider
Source§type Event = SliderEvent
type Event = SliderEvent
The output event type to the parent.
Source§type Init<'a> = BorrowedContainer<'a>
type Init<'a> = BorrowedContainer<'a>
Initial parameter type.
Source§type Message = SliderMessage
type Message = SliderMessage
The input message type to update.
Source§async fn init(
init: <Slider as Component>::Init<'_>,
_sender: &ComponentSender<Slider>,
) -> Result<Slider, Error>
async fn init( init: <Slider as Component>::Init<'_>, _sender: &ComponentSender<Slider>, ) -> Result<Slider, Error>
Create the initial component.
Source§async fn update(
&mut self,
message: Self::Message,
sender: &ComponentSender<Self>,
) -> Result<bool, Self::Error>
async fn update( &mut self, message: Self::Message, sender: &ComponentSender<Self>, ) -> Result<bool, Self::Error>
Respond to the message. Return true if need render.
Source§fn render(&mut self, sender: &ComponentSender<Self>) -> Result<(), Self::Error>
fn render(&mut self, sender: &ComponentSender<Self>) -> Result<(), Self::Error>
Render the widgets.
Source§impl Layoutable for Slider
impl Layoutable for Slider
Auto Trait Implementations§
impl Freeze for Slider
impl RefUnwindSafe for Slider
impl !Send for Slider
impl !Sync for Slider
impl Unpin for Slider
impl UnsafeUnpin for Slider
impl UnwindSafe for Slider
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more