pub struct ExtendSelectionToLineBreakIntent {
pub forward: bool,
pub collapse_selection: bool,
pub collapse_at_reversal: bool,
pub continues_at_wrap: bool,
}Expand description
Extends, or moves the current selection from the current
TextSelection.extent position to the closest line break in the direction
given by forward.
See also:
ExpandSelectionToLineBreakIntent, which is similar but always increases
the size of the selection.
Fields§
§forward: bool§collapse_selection: bool§collapse_at_reversal: bool§continues_at_wrap: boolImplementations§
Source§impl ExtendSelectionToLineBreakIntent
impl ExtendSelectionToLineBreakIntent
Sourcepub const fn new(
forward: bool,
collapse_selection: bool,
) -> ExtendSelectionToLineBreakIntent
pub const fn new( forward: bool, collapse_selection: bool, ) -> ExtendSelectionToLineBreakIntent
Creates an ExtendSelectionToLineBreakIntent.
Sourcepub const fn collapse_at_reversal(
self,
collapse_at_reversal: bool,
) -> ExtendSelectionToLineBreakIntent
pub const fn collapse_at_reversal( self, collapse_at_reversal: bool, ) -> ExtendSelectionToLineBreakIntent
Dart ExtendSelectionToLineBreakIntent(collapseAtReversal:).
Sourcepub const fn continues_at_wrap(
self,
continues_at_wrap: bool,
) -> ExtendSelectionToLineBreakIntent
pub const fn continues_at_wrap( self, continues_at_wrap: bool, ) -> ExtendSelectionToLineBreakIntent
Dart ExtendSelectionToLineBreakIntent(continuesAtWrap:).
Trait Implementations§
impl Copy for ExtendSelectionToLineBreakIntent
Source§impl DirectionalCaretMovementIntent for ExtendSelectionToLineBreakIntent
impl DirectionalCaretMovementIntent for ExtendSelectionToLineBreakIntent
Source§fn collapse_selection(&self) -> bool
fn collapse_selection(&self) -> bool
Source§fn collapse_at_reversal(&self) -> bool
fn collapse_at_reversal(&self) -> bool
Whether to collapse the selection when it would otherwise reverse order. Read more
Source§fn continues_at_wrap(&self) -> bool
fn continues_at_wrap(&self) -> bool
Whether or not to continue to the next line at a wordwrap. Read more
impl Eq for ExtendSelectionToLineBreakIntent
Source§impl Intent for ExtendSelectionToLineBreakIntent
impl Intent for ExtendSelectionToLineBreakIntent
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.impl StructuralPartialEq for ExtendSelectionToLineBreakIntent
Auto Trait Implementations§
impl Forget for ExtendSelectionToLineBreakIntent
impl Freeze for ExtendSelectionToLineBreakIntent
impl Move for ExtendSelectionToLineBreakIntent
impl RefUnwindSafe for ExtendSelectionToLineBreakIntent
impl Send for ExtendSelectionToLineBreakIntent
impl Sync for ExtendSelectionToLineBreakIntent
impl Unpin for ExtendSelectionToLineBreakIntent
impl UnsafeUnpin for ExtendSelectionToLineBreakIntent
impl UnwindSafe for ExtendSelectionToLineBreakIntent
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
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.