pub struct RenderHandle<T>(/* private fields */);Expand description
Implementations§
Source§impl<T: RenderBox> RenderHandle<T>
impl<T: RenderBox> RenderHandle<T>
Sourcepub fn new_box(app: &mut App, object: T) -> RenderHandle<T>
pub fn new_box(app: &mut App, object: T) -> RenderHandle<T>
Creates a box-protocol render object in app.
Source§impl<T: 'static> RenderHandle<T>
impl<T: 'static> RenderHandle<T>
Sourcepub fn handle(self) -> Handle<T>
pub fn handle(self) -> Handle<T>
The foundation handle, for a waft_foundation::Listener::handle_method tear-off.
Sourcepub fn from_handle(handle: Handle<T>) -> RenderHandle<T>
pub fn from_handle(handle: Handle<T>) -> RenderHandle<T>
The render handle for a foundation handle, which is what such a tear-off is called with.
Source§impl<T: RenderSliver> RenderHandle<T>
impl<T: RenderSliver> RenderHandle<T>
Sourcepub fn new_sliver(app: &mut App, object: T) -> RenderHandle<T>
pub fn new_sliver(app: &mut App, object: T) -> RenderHandle<T>
Creates a sliver-protocol render object in app.
Trait Implementations§
Source§impl<T> Clone for RenderHandle<T>
impl<T> Clone for RenderHandle<T>
Source§fn clone(&self) -> RenderHandle<T>
fn clone(&self) -> RenderHandle<T>
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 moreimpl<T> Copy for RenderHandle<T>
Source§impl<T> Debug for RenderHandle<T>
impl<T> Debug for RenderHandle<T>
impl<T> Eq for RenderHandle<T>
Source§impl<T> Hash for RenderHandle<T>
impl<T> Hash for RenderHandle<T>
Source§impl HitTestTarget for RenderHandle<RenderView>
Flutter’s RenderObject.handleEvent default: the view itself does nothing with events.
impl HitTestTarget for RenderHandle<RenderView>
Flutter’s RenderObject.handleEvent default: the view itself does nothing with events.
Source§fn handle_event(
&self,
_app: &mut App,
_event: &PointerEvent,
_entry: &HitTestEntry,
)
fn handle_event( &self, _app: &mut App, _event: &PointerEvent, _entry: &HitTestEntry, )
Override this method to receive events.
Source§impl<T> PartialEq for RenderHandle<T>
impl<T> PartialEq for RenderHandle<T>
Source§impl<T> Receiver for RenderHandle<T>
impl<T> Receiver for RenderHandle<T>
Source§impl TextLayoutMetrics for RenderHandle<RenderEditable>
impl TextLayoutMetrics for RenderHandle<RenderEditable>
Source§fn get_line_at_offset(
self,
app: &mut App,
position: TextPosition,
) -> TextSelection
fn get_line_at_offset( self, app: &mut App, position: TextPosition, ) -> TextSelection
Return a
TextSelection containing the line of the given TextPosition.Source§fn get_word_boundary(self, app: &mut App, position: TextPosition) -> TextRange
fn get_word_boundary(self, app: &mut App, position: TextPosition) -> TextRange
Returns the word boundary around
position.Source§fn get_text_position_above(
self,
app: &mut App,
position: TextPosition,
) -> TextPosition
fn get_text_position_above( self, app: &mut App, position: TextPosition, ) -> TextPosition
Returns the
TextPosition above the given position. Read moreSource§fn get_text_position_below(
self,
app: &mut App,
position: TextPosition,
) -> TextPosition
fn get_text_position_below( self, app: &mut App, position: TextPosition, ) -> TextPosition
Returns the
TextPosition below the given position. Read moreAuto Trait Implementations§
impl<T> Forget for RenderHandle<T>
impl<T> Freeze for RenderHandle<T>
impl<T> Move for RenderHandle<T>
impl<T> RefUnwindSafe for RenderHandle<T>where
Handle<T>: RefUnwindSafe,
impl<T> Send for RenderHandle<T>
impl<T> Sync for RenderHandle<T>
impl<T> Unpin for RenderHandle<T>
impl<T> UnsafeUnpin for RenderHandle<T>where
Handle<T>: UnsafeUnpin,
impl<T> UnwindSafe for RenderHandle<T>where
Handle<T>: UnwindSafe,
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.