pub struct AnySelectionContainerDelegate { /* private fields */ }Expand description
Erased SelectionContainerDelegate, the type a SelectionContainer holds.
Implementations§
Source§impl AnySelectionContainerDelegate
impl AnySelectionContainerDelegate
pub fn value(self, app: &App) -> SelectionGeometry
pub fn push_handle_layers( self, app: &mut App, start_handle: Option<Ref<LayerLink>>, end_handle: Option<Ref<LayerLink>>, )
pub fn selected_content(self, app: &App) -> Option<SelectedContent>
pub fn selection(self, app: &App) -> Option<SelectedContentRange>
pub fn dispatch_selection_event( self, app: &mut App, event: &SelectionEvent, ) -> SelectionResult
pub fn content_length(self, app: &App) -> usize
pub fn add(self, app: &mut App, selectable: AnySelectable)
pub fn remove(self, app: &mut App, selectable: AnySelectable)
pub fn add_listener(self, app: &mut App, listener: Listener)
pub fn remove_listener(self, app: &mut App, listener: &Listener)
pub fn set_selection_container_context( self, app: &mut App, context: Option<BuildContext>, )
pub fn get_transform_from(self, app: &App, child: AnySelectable) -> Matrix4
pub fn get_transform_to( self, app: &App, ancestor: Option<AnyRenderObject>, ) -> Matrix4
pub fn has_size(self, app: &App) -> bool
pub fn container_size(self, app: &App) -> Size
pub fn as_selection_registrar(self) -> AnySelectionRegistrar
Source§impl AnySelectionContainerDelegate
impl AnySelectionContainerDelegate
Sourcepub fn upgrade(
self,
app: &App,
) -> Option<Retained<AnySelectionContainerDelegate>>
pub fn upgrade( self, app: &App, ) -> Option<Retained<AnySelectionContainerDelegate>>
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<AnySelectionContainerDelegate>
pub fn keep(self, app: &App) -> Retained<AnySelectionContainerDelegate>
A reference to an object something is known to keep; see
Handle::keep.
Trait Implementations§
impl Copy for AnySelectionContainerDelegate
impl Eq for AnySelectionContainerDelegate
Source§impl From<AnySelectionContainerDelegate> for HandleId
impl From<AnySelectionContainerDelegate> for HandleId
Source§fn from(handle: AnySelectionContainerDelegate) -> HandleId
fn from(handle: AnySelectionContainerDelegate) -> HandleId
Converts to this type from the input type.
Source§impl From<AnySelectionContainerDelegate> for AnySelectionRegistrar
The delegate as the registrar its container hosts: Dart’s implicit upcast of
SelectionContainerDelegate implements SelectionRegistrar.
impl From<AnySelectionContainerDelegate> for AnySelectionRegistrar
The delegate as the registrar its container hosts: Dart’s implicit upcast of
SelectionContainerDelegate implements SelectionRegistrar.
Source§fn from(delegate: AnySelectionContainerDelegate) -> AnySelectionRegistrar
fn from(delegate: AnySelectionContainerDelegate) -> AnySelectionRegistrar
Converts to this type from the input type.
Source§impl<Leaf: SelectionContainerDelegate> From<Handle<Leaf>> for AnySelectionContainerDelegate
impl<Leaf: SelectionContainerDelegate> From<Handle<Leaf>> for AnySelectionContainerDelegate
Source§fn from(handle: Handle<Leaf>) -> AnySelectionContainerDelegate
fn from(handle: Handle<Leaf>) -> AnySelectionContainerDelegate
Converts to this type from the input type.
Source§impl Hash for AnySelectionContainerDelegate
impl Hash for AnySelectionContainerDelegate
Auto Trait Implementations§
impl Forget for AnySelectionContainerDelegate
impl Freeze for AnySelectionContainerDelegate
impl Move for AnySelectionContainerDelegate
impl RefUnwindSafe for AnySelectionContainerDelegate
impl Send for AnySelectionContainerDelegate
impl Sync for AnySelectionContainerDelegate
impl Unpin for AnySelectionContainerDelegate
impl UnsafeUnpin for AnySelectionContainerDelegatewhere
NonZeroU32Inner: UnsafeUnpin,
&'static SelectionContainerDelegateVTable: UnsafeUnpin,
impl UnwindSafe for AnySelectionContainerDelegate
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.