pub enum Action {
Show 26 variants
Default,
Focus,
Blur,
Collapse,
Expand,
CustomAction,
Decrement,
Increment,
HideTooltip,
ShowTooltip,
InvalidateTree,
LoadInlineTextBoxes,
ReplaceSelectedText,
ScrollBackward,
ScrollDown,
ScrollForward,
ScrollLeft,
ScrollRight,
ScrollUp,
ScrollIntoView,
ScrollToPoint,
SetScrollOffset,
SetTextSelection,
SetSequentialFocusNavigationStartingPoint,
SetValue,
ShowContextMenu,
}Expand description
An action to be taken on an accessibility node.
In contrast to DefaultActionVerb, these describe what happens to the
object, e.g. “focus”.
Variants
Default
Do the default action for an object, typically this means “click”.
Focus
Blur
Collapse
Expand
CustomAction
Requires ActionRequest::data to be set to ActionData::CustomAction.
Decrement
Decrement a numeric value by one step.
Increment
Increment a numeric value by one step.
HideTooltip
ShowTooltip
InvalidateTree
Request that the tree source invalidate its entire tree.
LoadInlineTextBoxes
Load inline text boxes for this subtree, providing information about word boundaries, line layout, and individual character bounding boxes.
ReplaceSelectedText
Delete any selected text in the control’s text value and
insert the specified value in its place, like when typing or pasting.
Requires ActionRequest::data to be set to ActionData::Value.
ScrollBackward
ScrollDown
ScrollForward
ScrollLeft
ScrollRight
ScrollUp
ScrollIntoView
Scroll any scrollable containers to make the target object visible
on the screen. Optionally set ActionRequest::data to
ActionData::ScrollTargetRect.
ScrollToPoint
Scroll the given object to a specified point in the tree’s container
(e.g. window). Requires ActionRequest::data to be set to
ActionData::ScrollToPoint.
SetScrollOffset
Requires ActionRequest::data to be set to ActionData::SetScrollOffset.
SetTextSelection
Requires ActionRequest::data to be set to ActionData::SetTextSelection.
SetSequentialFocusNavigationStartingPoint
Don’t focus this node, but set it as the sequential focus navigation starting point, so that pressing Tab moves to the next element following this one, for example.
SetValue
Replace the value of the control with the specified value and
reset the selection, if applicable. Requires ActionRequest::data
to be set to ActionData::Value or ActionData::NumericValue.
ShowContextMenu
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EnumSetTypePrivate for Action
impl EnumSetTypePrivate for Action
sourceconst ALL_BITS: Self::Repr = {transmute(0x03ffffff): <Action as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x03ffffff): <Action as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
sourcefn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
sourceunsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
sourcefn serialize<S: Serializer>(
set: EnumSet<Action>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(
set: EnumSet<Action>,
ser: S
) -> Result<S::Ok, S::Error>
Serializes the EnumSet. Read more
sourcefn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Action>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Action>, D::Error>
Deserializes the EnumSet.
sourceimpl JsonSchema for Action
impl JsonSchema for Action
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
impl Copy for Action
impl EnumSetType for Action
impl Eq for Action
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more