Enum kas_widgets::GripMsg
source · pub enum GripMsg {
PressStart,
PressMove(Offset),
PressEnd(bool),
}
Expand description
A message from a GripPart
Variants§
PressStart
Widget received Event::PressStart
Some parents will call EventState::set_nav_focus
on this event.
PressMove(Offset)
Widget received Event::PressMove
Parameter: the new position of the grip relative to the track.
The grip position is not adjusted; the caller should also call
GripPart::set_offset
to do so. This is separate to allow adjustment of
the posision; e.g. Slider
pins the position to the nearest detent.
PressEnd(bool)
Widget received Event::PressEnd
Parameter: success
(see Event::PressEnd
).
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GripMsg
impl Send for GripMsg
impl Sync for GripMsg
impl Unpin for GripMsg
impl UnwindSafe for GripMsg
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
§impl<S, T> Cast<T> for Swhere
T: Conv<S>,
impl<S, T> Cast<T> for Swhere
T: Conv<S>,
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
§fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
§fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
§fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
§fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more