#[repr(transparent)]pub struct NSWritingToolsCoordinatorContextScope(pub NSInteger);
NSWritingToolsCoordinator
only.Expand description
Options that indicate how much of your content Writing Tools requested.
At the start of any Writing Tools interaction, you provide the text for
the system to evaluate from your NS/UIWritingToolsCoordinator/Delegate
object. The request for your content comes with a scope constant that
indicates how much of your view’s text to provide.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSWritingToolsCoordinatorContextScope
impl NSWritingToolsCoordinatorContextScope
Sourcepub const UserSelection: Self
pub const UserSelection: Self
An option to provide only the view’s currently selected text.
With this option, include the selected text in your context object, along with some additional text before and after the selection. When performing changes inline with your view’s content, Writing Tools applies animations only to the selected text.
Sourcepub const FullDocument: Self
pub const FullDocument: Self
An option to provide all of your view’s text.
With this option, include all of the text your view manages. If your view has multiple text storage objects, create a separate context object for each one.
Sourcepub const VisibleArea: Self
pub const VisibleArea: Self
An option to provide only the text in the currently visible portion of your view.
With this option, include only the currently visible text, along with some additional text before and after the visible text.
Trait Implementations§
Source§impl Clone for NSWritingToolsCoordinatorContextScope
impl Clone for NSWritingToolsCoordinatorContextScope
Source§fn clone(&self) -> NSWritingToolsCoordinatorContextScope
fn clone(&self) -> NSWritingToolsCoordinatorContextScope
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for NSWritingToolsCoordinatorContextScope
impl Ord for NSWritingToolsCoordinatorContextScope
Source§fn cmp(&self, other: &NSWritingToolsCoordinatorContextScope) -> Ordering
fn cmp(&self, other: &NSWritingToolsCoordinatorContextScope) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NSWritingToolsCoordinatorContextScope
impl PartialEq for NSWritingToolsCoordinatorContextScope
Source§fn eq(&self, other: &NSWritingToolsCoordinatorContextScope) -> bool
fn eq(&self, other: &NSWritingToolsCoordinatorContextScope) -> bool
self
and other
values to be equal, and is used by ==
.