pub enum InteractionAnchor {
Resource,
SemanticControl {
id: String,
},
Text {
region: String,
ranges: Vec<InteractionTextRange>,
},
Grid {
sheet: String,
ranges: Vec<InteractionGridRange>,
},
Objects {
ids: Vec<String>,
},
ListItems {
ids: Vec<String>,
},
Timeline {
track: Option<String>,
start_ms: u64,
end_ms: u64,
},
}Expand description
Application-native target of an interaction. Every variant is semantic: receivers turn it into their current geometry and may fall back to the enclosing resource when an anchor is off-screen or no longer exists.
Variants§
Resource
The whole resource is the narrowest truthful target available.
SemanticControl
A durable node in the app’s semantic/accessibility tree.
Text
One or more ranges in stable document blocks.
Grid
One or more cell rectangles in a stable sheet identity.
Objects
Stable object ids, e.g. shapes, slides, clips, or document blocks.
ListItems
Stable rows/items, e.g. filesystem resource addresses.
Timeline
A semantic media interval; times are content time, never screen space.
Implementations§
Source§impl InteractionAnchor
impl InteractionAnchor
pub fn serialize<__S>(
__self: &InteractionAnchor,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> InteractionAnchor
impl<'de> InteractionAnchor
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<InteractionAnchor, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for InteractionAnchor
impl Clone for InteractionAnchor
Source§impl Debug for InteractionAnchor
impl Debug for InteractionAnchor
Source§impl<'de> Deserialize<'de> for InteractionAnchor
impl<'de> Deserialize<'de> for InteractionAnchor
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InteractionAnchor
Source§impl PartialEq for InteractionAnchor
impl PartialEq for InteractionAnchor
Source§impl Serialize for InteractionAnchor
impl Serialize for InteractionAnchor
impl StructuralPartialEq for InteractionAnchor
Auto Trait Implementations§
impl Forget for InteractionAnchor
impl Freeze for InteractionAnchor
impl Move for InteractionAnchor
impl RefUnwindSafe for InteractionAnchor
impl Send for InteractionAnchor
impl Sync for InteractionAnchor
impl Unpin for InteractionAnchor
impl UnsafeUnpin for InteractionAnchor
impl UnwindSafe for InteractionAnchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more