pub struct SelectionArea<'a, Message> { /* private fields */ }Available on crate feature
selectable-text only.Expand description
Lets the SelectableTexts inside it be selected together. Convert it
into an Element to render.
Implementations§
Source§impl<'a, Message> SelectionArea<'a, Message>
impl<'a, Message> SelectionArea<'a, Message>
Sourcepub fn double_click(self, interval: Duration) -> Self
pub fn double_click(self, interval: Duration) -> Self
How soon a press must follow the last to count as a double or triple
click. Defaults to DOUBLE_CLICK.
Trait Implementations§
Source§impl<Message> Debug for SelectionArea<'_, Message>
impl<Message> Debug for SelectionArea<'_, Message>
Source§impl<'a, Message: 'a> From<SelectionArea<'a, Message>> for Element<'a, Message>
impl<'a, Message: 'a> From<SelectionArea<'a, Message>> for Element<'a, Message>
Source§fn from(area: SelectionArea<'a, Message>) -> Self
fn from(area: SelectionArea<'a, Message>) -> Self
Converts to this type from the input type.
Source§impl<Message> Widget<Message, Theme, ()> for SelectionArea<'_, Message>
impl<Message> Widget<Message, Theme, ()> for SelectionArea<'_, Message>
Source§fn operate(
&mut self,
tree: &mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
operation: &mut dyn Operation,
)
fn operate( &mut self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation, )
Source§fn update(
&mut self,
tree: &mut Tree,
event: &Event,
layout: Layout<'_>,
cursor: Cursor,
renderer: &Renderer,
clipboard: &mut dyn Clipboard,
shell: &mut Shell<'_, Message>,
viewport: &Rectangle,
)
fn update( &mut self, tree: &mut Tree, event: &Event, layout: Layout<'_>, cursor: Cursor, renderer: &Renderer, clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle, )
Source§fn draw(
&self,
tree: &Tree,
renderer: &mut Renderer,
theme: &Theme,
style: &Style,
layout: Layout<'_>,
cursor: Cursor,
viewport: &Rectangle,
)
fn draw( &self, tree: &Tree, renderer: &mut Renderer, theme: &Theme, style: &Style, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle, )
Draws the
Widget using the associated Renderer.Source§fn mouse_interaction(
&self,
tree: &Tree,
layout: Layout<'_>,
cursor: Cursor,
viewport: &Rectangle,
renderer: &Renderer,
) -> Interaction
fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle, renderer: &Renderer, ) -> Interaction
Auto Trait Implementations§
impl<'a, Message> !RefUnwindSafe for SelectionArea<'a, Message>
impl<'a, Message> !Send for SelectionArea<'a, Message>
impl<'a, Message> !Sync for SelectionArea<'a, Message>
impl<'a, Message> !UnwindSafe for SelectionArea<'a, Message>
impl<'a, Message> Forget for SelectionArea<'a, Message>
impl<'a, Message> Freeze for SelectionArea<'a, Message>where
*const dyn Widget<Message, Theme, ()> + 'a is !null: Freeze,
PhantomData<dyn Widget<Message, Theme, ()> + 'a>: Freeze,
&'static str: Freeze,
String: Freeze,
*const u8 is !null: Freeze,
PhantomData<(Chord, Action)>: Freeze,
*const dyn Fn(String) -> Message + 'a is !null: Freeze,
PhantomData<dyn Fn(String) -> Message + 'a>: Freeze,
impl<'a, Message> Move for SelectionArea<'a, Message>
impl<'a, Message> Unpin for SelectionArea<'a, Message>
impl<'a, Message> UnsafeUnpin for SelectionArea<'a, Message>where
*const dyn Widget<Message, Theme, ()> + 'a is !null: UnsafeUnpin,
PhantomData<dyn Widget<Message, Theme, ()> + 'a>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(Chord, Action)>: UnsafeUnpin,
*const dyn Fn(String) -> Message + 'a is !null: UnsafeUnpin,
PhantomData<dyn Fn(String) -> Message + 'a>: UnsafeUnpin,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.