pub struct AnySelectable { /* private fields */ }Expand description
Erased Selectable: one identity and a static vtable, as a registrar holds selectables of
more than one concrete type.
Implementations§
Source§impl AnySelectable
impl AnySelectable
Sourcepub fn value(self, app: &App) -> SelectionGeometry
pub fn value(self, app: &App) -> SelectionGeometry
Sourcepub fn push_handle_layers(
self,
app: &mut App,
start_handle: Option<Ref<LayerLink>>,
end_handle: Option<Ref<LayerLink>>,
)
pub fn push_handle_layers( self, app: &mut App, start_handle: Option<Ref<LayerLink>>, end_handle: Option<Ref<LayerLink>>, )
Sourcepub fn selected_content(self, app: &App) -> Option<SelectedContent>
pub fn selected_content(self, app: &App) -> Option<SelectedContent>
Sourcepub fn selection(self, app: &App) -> Option<SelectedContentRange>
pub fn selection(self, app: &App) -> Option<SelectedContentRange>
Sourcepub fn dispatch_selection_event(
self,
app: &mut App,
event: &SelectionEvent,
) -> SelectionResult
pub fn dispatch_selection_event( self, app: &mut App, event: &SelectionEvent, ) -> SelectionResult
Sourcepub fn content_length(self, app: &App) -> usize
pub fn content_length(self, app: &App) -> usize
Sourcepub fn get_transform_to(
self,
app: &App,
ancestor: Option<AnyRenderObject>,
) -> Matrix4
pub fn get_transform_to( self, app: &App, ancestor: Option<AnyRenderObject>, ) -> Matrix4
Sourcepub fn size(self, app: &mut App) -> Size
pub fn size(self, app: &mut App) -> Size
See Selectable::size.
Sourcepub fn bounding_boxes(self, app: &mut App) -> Vec<Rect>
pub fn bounding_boxes(self, app: &mut App) -> Vec<Rect>
Sourcepub fn dispose_selectable(self, app: &mut App)
pub fn dispose_selectable(self, app: &mut App)
Sourcepub fn add_listener(self, app: &mut App, listener: Listener)
pub fn add_listener(self, app: &mut App, listener: Listener)
Registers listener with the selectable’s [Listenable], as Dart’s
selectable.addListener.
Sourcepub fn remove_listener(self, app: &mut App, listener: &Listener)
pub fn remove_listener(self, app: &mut App, listener: &Listener)
Removes listener from the selectable, as Dart’s selectable.removeListener.
Source§impl AnySelectable
impl AnySelectable
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnySelectable>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnySelectable>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnySelectable>
pub fn keep(self, app: &App) -> Retained<AnySelectable>
A reference to an object something is known to keep; see
Handle::keep.
Trait Implementations§
Source§impl Clone for AnySelectable
impl Clone for AnySelectable
impl Copy for AnySelectable
Source§impl Debug for AnySelectable
impl Debug for AnySelectable
impl Eq for AnySelectable
Source§impl From<AnySelectable> for HandleId
impl From<AnySelectable> for HandleId
Source§fn from(handle: AnySelectable) -> HandleId
fn from(handle: AnySelectable) -> HandleId
Converts to this type from the input type.
Source§impl<Leaf: Selectable> From<Handle<Leaf>> for AnySelectable
impl<Leaf: Selectable> From<Handle<Leaf>> for AnySelectable
Source§fn from(handle: Handle<Leaf>) -> AnySelectable
fn from(handle: Handle<Leaf>) -> AnySelectable
Converts to this type from the input type.
Source§impl Hash for AnySelectable
impl Hash for AnySelectable
Source§impl PartialEq for AnySelectable
impl PartialEq for AnySelectable
Source§impl PartialEq<AnySelectable> for &Retained<AnySelectable>
impl PartialEq<AnySelectable> for &Retained<AnySelectable>
Auto Trait Implementations§
impl Forget for AnySelectable
impl Freeze for AnySelectable
impl Move for AnySelectable
impl RefUnwindSafe for AnySelectable
impl Send for AnySelectable
impl Sync for AnySelectable
impl Unpin for AnySelectable
impl UnsafeUnpin for AnySelectablewhere
NonZeroU32Inner: UnsafeUnpin,
&'static SelectableVTable: UnsafeUnpin,
impl UnwindSafe for AnySelectable
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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§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.