#[repr(C)]pub enum ActionData {
CustomAction(i32),
Value(Box<str>),
NumericValue(f64),
ScrollUnit(ScrollUnit),
ScrollHint(ScrollHint),
ScrollToPoint(Point),
SetScrollOffset(Point),
SetTextSelection(TextSelection),
}Available on crate feature
egui only.Variants§
CustomAction(i32)
Value(Box<str>)
NumericValue(f64)
ScrollUnit(ScrollUnit)
ScrollHint(ScrollHint)
Optional suggestion for Action::ScrollIntoView, specifying
the preferred position of the target node relative to the scrollable
container’s viewport.
ScrollToPoint(Point)
Target for Action::ScrollToPoint, in platform-native coordinates
relative to the origin of the tree’s container (e.g. window).
SetScrollOffset(Point)
Target for Action::SetScrollOffset, in the coordinate space
of the action’s target node.
SetTextSelection(TextSelection)
Trait Implementations§
Source§impl Clone for ActionData
impl Clone for ActionData
Source§fn clone(&self) -> ActionData
fn clone(&self) -> ActionData
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 moreSource§impl Debug for ActionData
impl Debug for ActionData
Source§impl PartialEq for ActionData
impl PartialEq for ActionData
impl StructuralPartialEq for ActionData
Auto Trait Implementations§
impl Forget for ActionData
impl Freeze for ActionData
impl Move for ActionData
impl RefUnwindSafe for ActionData
impl Send for ActionData
impl Sync for ActionData
impl Unpin for ActionData
impl UnsafeUnpin for ActionData
impl UnwindSafe for ActionDatawhere
BoxRaw<str>: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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