pub struct AnyToggleableState { /* private fields */ }Expand description
Erased ToggleableStateMixin: one identity and a static vtable.
This is what a field or parameter Dart types as ToggleableStateMixin becomes, such as the
state a RawRadio hands its RadioBuilder. Equality is Dart’s == on
an object reference.
Implementations§
Source§impl AnyToggleableState
impl AnyToggleableState
Sourcepub fn context(self, app: &App) -> BuildContext
pub fn context(self, app: &App) -> BuildContext
See State::context.
Sourcepub fn mounted(self, app: &App) -> bool
pub fn mounted(self, app: &App) -> bool
See State::mounted.
Sourcepub fn position_controller(self, app: &App) -> Handle<AnimationController>
pub fn position_controller(self, app: &App) -> Handle<AnimationController>
Sourcepub fn position(self, app: &App) -> &Ref<CurvedAnimation>
pub fn position(self, app: &App) -> &Ref<CurvedAnimation>
Sourcepub fn reaction_controller(self, app: &App) -> Handle<AnimationController>
pub fn reaction_controller(self, app: &App) -> Handle<AnimationController>
Sourcepub fn reaction(self, app: &App) -> &Ref<CurvedAnimation>
pub fn reaction(self, app: &App) -> &Ref<CurvedAnimation>
Sourcepub fn reaction_hover_fade(self, app: &App) -> &Ref<CurvedAnimation>
pub fn reaction_hover_fade(self, app: &App) -> &Ref<CurvedAnimation>
Sourcepub fn reaction_focus_fade(self, app: &App) -> &Ref<CurvedAnimation>
pub fn reaction_focus_fade(self, app: &App) -> &Ref<CurvedAnimation>
Sourcepub fn reaction_animation_duration(self, app: &App) -> Option<Duration>
pub fn reaction_animation_duration(self, app: &App) -> Option<Duration>
Sourcepub fn is_interactive(self, app: &App) -> bool
pub fn is_interactive(self, app: &App) -> bool
Sourcepub fn on_changed(self, app: &App) -> Option<ValueChanged<Option<bool>>>
pub fn on_changed(self, app: &App) -> Option<ValueChanged<Option<bool>>>
Sourcepub fn animate_to_value(self, app: &mut App)
pub fn animate_to_value(self, app: &mut App)
Sourcepub fn down_position(self, app: &App) -> Option<Offset>
pub fn down_position(self, app: &App) -> Option<Offset>
Sourcepub fn states(self, app: &App) -> WidgetStates
pub fn states(self, app: &App) -> WidgetStates
Sourcepub fn build_toggleable(
self,
app: &mut App,
focus_node: Option<FocusNodeRef>,
on_focus_change: Option<ValueChanged<bool>>,
autofocus: bool,
mouse_cursor: Option<WidgetStatePropertyRef<MouseCursorRef>>,
size: Size,
painter: impl CustomPainter,
) -> WidgetRef
pub fn build_toggleable( self, app: &mut App, focus_node: Option<FocusNodeRef>, on_focus_change: Option<ValueChanged<bool>>, autofocus: bool, mouse_cursor: Option<WidgetStatePropertyRef<MouseCursorRef>>, size: Size, painter: impl CustomPainter, ) -> WidgetRef
Sourcepub fn build_toggleable_with_child(
self,
app: &mut App,
focus_node: Option<FocusNodeRef>,
on_focus_change: Option<ValueChanged<bool>>,
autofocus: bool,
mouse_cursor: Option<WidgetStatePropertyRef<MouseCursorRef>>,
child: WidgetRef,
) -> WidgetRef
pub fn build_toggleable_with_child( self, app: &mut App, focus_node: Option<FocusNodeRef>, on_focus_change: Option<ValueChanged<bool>>, autofocus: bool, mouse_cursor: Option<WidgetStatePropertyRef<MouseCursorRef>>, child: WidgetRef, ) -> WidgetRef
Trait Implementations§
Source§impl Clone for AnyToggleableState
impl Clone for AnyToggleableState
impl Copy for AnyToggleableState
Source§impl Debug for AnyToggleableState
impl Debug for AnyToggleableState
impl Eq for AnyToggleableState
Auto Trait Implementations§
impl Forget for AnyToggleableState
impl Freeze for AnyToggleableState
impl Move for AnyToggleableState
impl RefUnwindSafe for AnyToggleableState
impl Send for AnyToggleableState
impl Sync for AnyToggleableState
impl Unpin for AnyToggleableState
impl UnsafeUnpin for AnyToggleableStatewhere
NonZeroU32Inner: UnsafeUnpin,
&'static ToggleableStateVTable: UnsafeUnpin,
impl UnwindSafe for AnyToggleableState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.