Struct accesskit::NodeBuilder

source ·
pub struct NodeBuilder { /* private fields */ }
Expand description

Builds a Node.

Implementations§

source§

impl NodeBuilder

source

pub fn new(role: Role) -> Self

source

pub fn build(self, classes: &mut NodeClassSet) -> Node

source§

impl NodeBuilder

source

pub fn role(&self) -> Role

source

pub fn set_role(&mut self, value: Role)

source§

impl NodeBuilder

source

pub fn supports_action(&self, action: Action) -> bool

source

pub fn add_action(&mut self, action: Action)

source

pub fn remove_action(&mut self, action: Action)

source

pub fn clear_actions(&mut self)

source§

impl NodeBuilder

source

pub fn is_hovered(&self) -> bool

source

pub fn set_hovered(&mut self)

source

pub fn clear_hovered(&mut self)

source

pub fn is_hidden(&self) -> bool

Exclude this node and its descendants from the tree presented to assistive technologies, and from hit testing.

source

pub fn set_hidden(&mut self)

source

pub fn clear_hidden(&mut self)

source

pub fn is_linked(&self) -> bool

source

pub fn set_linked(&mut self)

source

pub fn clear_linked(&mut self)

source

pub fn is_multiselectable(&self) -> bool

source

pub fn set_multiselectable(&mut self)

source

pub fn clear_multiselectable(&mut self)

source

pub fn is_required(&self) -> bool

source

pub fn set_required(&mut self)

source

pub fn clear_required(&mut self)

source

pub fn is_visited(&self) -> bool

source

pub fn set_visited(&mut self)

source

pub fn clear_visited(&mut self)

source

pub fn is_busy(&self) -> bool

source

pub fn set_busy(&mut self)

source

pub fn clear_busy(&mut self)

source

pub fn is_live_atomic(&self) -> bool

source

pub fn set_live_atomic(&mut self)

source

pub fn clear_live_atomic(&mut self)

source

pub fn is_modal(&self) -> bool

If a dialog box is marked as explicitly modal.

source

pub fn set_modal(&mut self)

source

pub fn clear_modal(&mut self)

source

pub fn is_touch_transparent(&self) -> bool

This element allows touches to be passed through when a screen reader is in touch exploration mode, e.g. a virtual keyboard normally behaves this way.

source

pub fn set_touch_transparent(&mut self)

source

pub fn clear_touch_transparent(&mut self)

source

pub fn is_read_only(&self) -> bool

Use for a textbox that allows focus/selection but not input.

source

pub fn set_read_only(&mut self)

source

pub fn clear_read_only(&mut self)

source

pub fn is_disabled(&self) -> bool

Use for a control or group of controls that disallows input.

source

pub fn set_disabled(&mut self)

source

pub fn clear_disabled(&mut self)

source

pub fn is_bold(&self) -> bool

source

pub fn set_bold(&mut self)

source

pub fn clear_bold(&mut self)

source

pub fn is_italic(&self) -> bool

source

pub fn set_italic(&mut self)

source

pub fn clear_italic(&mut self)

source

pub fn clips_children(&self) -> bool

Indicates that this node clips its children, i.e. may have overflow: hidden or clip children by default.

source

pub fn set_clips_children(&mut self)

source

pub fn clear_clips_children(&mut self)

source

pub fn is_line_breaking_object(&self) -> bool

Indicates whether this node causes a hard line-break (e.g. block level elements, or <br>).

source

pub fn set_is_line_breaking_object(&mut self)

source

pub fn clear_is_line_breaking_object(&mut self)

source

pub fn is_page_breaking_object(&self) -> bool

Indicates whether this node causes a page break.

source

pub fn set_is_page_breaking_object(&mut self)

source

pub fn clear_is_page_breaking_object(&mut self)

source

pub fn is_spelling_error(&self) -> bool

source

pub fn set_is_spelling_error(&mut self)

source

pub fn clear_is_spelling_error(&mut self)

source

pub fn is_grammar_error(&self) -> bool

source

pub fn set_is_grammar_error(&mut self)

source

pub fn clear_is_grammar_error(&mut self)

source

pub fn is_search_match(&self) -> bool

source

pub fn set_is_search_match(&mut self)

source

pub fn clear_is_search_match(&mut self)

source

pub fn is_suggestion(&self) -> bool

source

pub fn set_is_suggestion(&mut self)

source

pub fn clear_is_suggestion(&mut self)

source§

impl NodeBuilder

source

pub fn children(&self) -> &[NodeId]

source

pub fn set_children(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_children(&mut self)

source§

impl NodeBuilder

source

pub fn push_child(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn controls(&self) -> &[NodeId]

source

pub fn set_controls(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_controls(&mut self)

source§

impl NodeBuilder

source

pub fn push_controlled(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn details(&self) -> &[NodeId]

source

pub fn set_details(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_details(&mut self)

source§

impl NodeBuilder

source

pub fn push_detail(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn described_by(&self) -> &[NodeId]

source

pub fn set_described_by(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_described_by(&mut self)

source§

impl NodeBuilder

source

pub fn push_described_by(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn flow_to(&self) -> &[NodeId]

source

pub fn set_flow_to(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_flow_to(&mut self)

source§

impl NodeBuilder

source

pub fn push_flow_to(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn labelled_by(&self) -> &[NodeId]

source

pub fn set_labelled_by(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_labelled_by(&mut self)

source§

impl NodeBuilder

source

pub fn push_labelled_by(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn radio_group(&self) -> &[NodeId]

On radio buttons this should be set to a list of all of the buttons in the same group as this one, including this radio button itself.

source

pub fn set_radio_group(&mut self, value: impl Into<Vec<NodeId>>)

source

pub fn clear_radio_group(&mut self)

source§

impl NodeBuilder

source

pub fn push_to_radio_group(&mut self, item: NodeId)

source§

impl NodeBuilder

source

pub fn active_descendant(&self) -> Option<NodeId>

source

pub fn set_active_descendant(&mut self, value: NodeId)

source

pub fn clear_active_descendant(&mut self)

source§

impl NodeBuilder

source

pub fn error_message(&self) -> Option<NodeId>

source

pub fn set_error_message(&mut self, value: NodeId)

source

pub fn clear_error_message(&mut self)

source§

impl NodeBuilder

source§

impl NodeBuilder

source

pub fn member_of(&self) -> Option<NodeId>

source

pub fn set_member_of(&mut self, value: NodeId)

source

pub fn clear_member_of(&mut self)

source§

impl NodeBuilder

source

pub fn next_on_line(&self) -> Option<NodeId>

source

pub fn set_next_on_line(&mut self, value: NodeId)

source

pub fn clear_next_on_line(&mut self)

source§

impl NodeBuilder

source

pub fn previous_on_line(&self) -> Option<NodeId>

source

pub fn set_previous_on_line(&mut self, value: NodeId)

source

pub fn clear_previous_on_line(&mut self)

source§

impl NodeBuilder

source

pub fn popup_for(&self) -> Option<NodeId>

source

pub fn set_popup_for(&mut self, value: NodeId)

source

pub fn clear_popup_for(&mut self)

source§

impl NodeBuilder

source

pub fn table_header(&self) -> Option<NodeId>

source

pub fn set_table_header(&mut self, value: NodeId)

source

pub fn clear_table_header(&mut self)

source§

impl NodeBuilder

source

pub fn table_row_header(&self) -> Option<NodeId>

source

pub fn set_table_row_header(&mut self, value: NodeId)

source

pub fn clear_table_row_header(&mut self)

source§

impl NodeBuilder

source§

impl NodeBuilder

source

pub fn name(&self) -> Option<&str>

source

pub fn set_name(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_name(&mut self)

source§

impl NodeBuilder

source

pub fn description(&self) -> Option<&str>

source

pub fn set_description(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_description(&mut self)

source§

impl NodeBuilder

source

pub fn value(&self) -> Option<&str>

source

pub fn set_value(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_value(&mut self)

source§

impl NodeBuilder

source

pub fn access_key(&self) -> Option<&str>

A single character, usually part of this node’s name, that can be pressed, possibly along with a platform-specific modifier, to perform this node’s default action. For menu items, the access key is only active while the menu is active, in contrast with keyboard_shortcut; a single menu item may in fact have both properties.

source

pub fn set_access_key(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_access_key(&mut self)

source§

impl NodeBuilder

source

pub fn class_name(&self) -> Option<&str>

source

pub fn set_class_name(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_class_name(&mut self)

source§

impl NodeBuilder

source

pub fn font_family(&self) -> Option<&str>

Only present when different from parent.

source

pub fn set_font_family(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_font_family(&mut self)

source§

impl NodeBuilder

source

pub fn html_tag(&self) -> Option<&str>

source

pub fn set_html_tag(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_html_tag(&mut self)

source§

impl NodeBuilder

source

pub fn inner_html(&self) -> Option<&str>

Inner HTML of an element. Only used for a top-level math element, to support third-party math accessibility products that parse MathML.

source

pub fn set_inner_html(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_inner_html(&mut self)

source§

impl NodeBuilder

source

pub fn keyboard_shortcut(&self) -> Option<&str>

A keystroke or sequence of keystrokes, complete with any required modifiers(s), that will perform this node’s default action. The value of this property should be in a human-friendly format.

source

pub fn set_keyboard_shortcut(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_keyboard_shortcut(&mut self)

source§

impl NodeBuilder

source

pub fn language(&self) -> Option<&str>

Only present when different from parent.

source

pub fn set_language(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_language(&mut self)

source§

impl NodeBuilder

source

pub fn placeholder(&self) -> Option<&str>

If a text input has placeholder text, it should be exposed through this property rather than name.

source

pub fn set_placeholder(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_placeholder(&mut self)

source§

impl NodeBuilder

source

pub fn role_description(&self) -> Option<&str>

An optional string that may override an assistive technology’s description of the node’s role. Only provide this for custom control types. The value of this property should be in a human-friendly, localized format.

source

pub fn set_role_description(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_role_description(&mut self)

source§

impl NodeBuilder

source

pub fn state_description(&self) -> Option<&str>

An optional string that may override an assistive technology’s description of the node’s state, replacing default strings such as “checked” or “selected”. Note that most platform accessibility APIs and assistive technologies do not support this feature.

source

pub fn set_state_description(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_state_description(&mut self)

source§

impl NodeBuilder

source

pub fn tooltip(&self) -> Option<&str>

If a node’s only accessible name comes from a tooltip, it should be exposed through this property rather than name.

source

pub fn set_tooltip(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_tooltip(&mut self)

source§

impl NodeBuilder

source

pub fn url(&self) -> Option<&str>

source

pub fn set_url(&mut self, value: impl Into<Box<str>>)

source

pub fn clear_url(&mut self)

source§

impl NodeBuilder

source

pub fn scroll_x(&self) -> Option<f64>

source

pub fn set_scroll_x(&mut self, value: f64)

source

pub fn clear_scroll_x(&mut self)

source§

impl NodeBuilder

source

pub fn scroll_x_min(&self) -> Option<f64>

source

pub fn set_scroll_x_min(&mut self, value: f64)

source

pub fn clear_scroll_x_min(&mut self)

source§

impl NodeBuilder

source

pub fn scroll_x_max(&self) -> Option<f64>

source

pub fn set_scroll_x_max(&mut self, value: f64)

source

pub fn clear_scroll_x_max(&mut self)

source§

impl NodeBuilder

source

pub fn scroll_y(&self) -> Option<f64>

source

pub fn set_scroll_y(&mut self, value: f64)

source

pub fn clear_scroll_y(&mut self)

source§

impl NodeBuilder

source

pub fn scroll_y_min(&self) -> Option<f64>

source

pub fn set_scroll_y_min(&mut self, value: f64)

source

pub fn clear_scroll_y_min(&mut self)

source§

impl NodeBuilder

source

pub fn scroll_y_max(&self) -> Option<f64>

source

pub fn set_scroll_y_max(&mut self, value: f64)

source

pub fn clear_scroll_y_max(&mut self)

source§

impl NodeBuilder

source

pub fn numeric_value(&self) -> Option<f64>

source

pub fn set_numeric_value(&mut self, value: f64)

source

pub fn clear_numeric_value(&mut self)

source§

impl NodeBuilder

source

pub fn min_numeric_value(&self) -> Option<f64>

source

pub fn set_min_numeric_value(&mut self, value: f64)

source

pub fn clear_min_numeric_value(&mut self)

source§

impl NodeBuilder

source

pub fn max_numeric_value(&self) -> Option<f64>

source

pub fn set_max_numeric_value(&mut self, value: f64)

source

pub fn clear_max_numeric_value(&mut self)

source§

impl NodeBuilder

source

pub fn numeric_value_step(&self) -> Option<f64>

source

pub fn set_numeric_value_step(&mut self, value: f64)

source

pub fn clear_numeric_value_step(&mut self)

source§

impl NodeBuilder

source

pub fn numeric_value_jump(&self) -> Option<f64>

source

pub fn set_numeric_value_jump(&mut self, value: f64)

source

pub fn clear_numeric_value_jump(&mut self)

source§

impl NodeBuilder

source

pub fn font_size(&self) -> Option<f64>

Font size is in pixels.

source

pub fn set_font_size(&mut self, value: f64)

source

pub fn clear_font_size(&mut self)

source§

impl NodeBuilder

source

pub fn font_weight(&self) -> Option<f64>

Font weight can take on any arbitrary numeric value. Increments of 100 in range [0, 900] represent keywords such as light, normal, bold, etc.

source

pub fn set_font_weight(&mut self, value: f64)

source

pub fn clear_font_weight(&mut self)

source§

impl NodeBuilder

source

pub fn table_row_count(&self) -> Option<usize>

source

pub fn set_table_row_count(&mut self, value: usize)

source

pub fn clear_table_row_count(&mut self)

source§

impl NodeBuilder

source§

impl NodeBuilder

source

pub fn table_row_index(&self) -> Option<usize>

source

pub fn set_table_row_index(&mut self, value: usize)

source

pub fn clear_table_row_index(&mut self)

source§

impl NodeBuilder

source§

impl NodeBuilder

source§

impl NodeBuilder

source§

impl NodeBuilder

source§

impl NodeBuilder

source§

impl NodeBuilder

source§

impl NodeBuilder

source

pub fn size_of_set(&self) -> Option<usize>

source

pub fn set_size_of_set(&mut self, value: usize)

source

pub fn clear_size_of_set(&mut self)

source§

impl NodeBuilder

source

pub fn position_in_set(&self) -> Option<usize>

source

pub fn set_position_in_set(&mut self, value: usize)

source

pub fn clear_position_in_set(&mut self)

source§

impl NodeBuilder

source

pub fn color_value(&self) -> Option<u32>

For Role::ColorWell, specifies the selected color in RGBA.

source

pub fn set_color_value(&mut self, value: u32)

source

pub fn clear_color_value(&mut self)

source§

impl NodeBuilder

source

pub fn background_color(&self) -> Option<u32>

Background color in RGBA.

source

pub fn set_background_color(&mut self, value: u32)

source

pub fn clear_background_color(&mut self)

source§

impl NodeBuilder

source

pub fn foreground_color(&self) -> Option<u32>

Foreground color in RGBA.

source

pub fn set_foreground_color(&mut self, value: u32)

source

pub fn clear_foreground_color(&mut self)

source§

impl NodeBuilder

source

pub fn overline(&self) -> Option<TextDecoration>

source

pub fn set_overline(&mut self, value: TextDecoration)

source

pub fn clear_overline(&mut self)

source§

impl NodeBuilder

source§

impl NodeBuilder

source

pub fn underline(&self) -> Option<TextDecoration>

source

pub fn set_underline(&mut self, value: TextDecoration)

source

pub fn clear_underline(&mut self)

source§

impl NodeBuilder

source

pub fn character_lengths(&self) -> &[u8]

For inline text. The length (non-inclusive) of each character in UTF-8 code units (bytes). The sum of these lengths must equal the length of value, also in bytes.

A character is defined as the smallest unit of text that can be selected. This isn’t necessarily a single Unicode scalar value (code point). This is why AccessKit can’t compute the lengths of the characters from the text itself; this information must be provided by the text editing implementation.

If this node is the last text box in a line that ends with a hard line break, that line break should be included at the end of this node’s value as either a CRLF or LF; in both cases, the line break should be counted as a single character for the sake of this slice. When the caret is at the end of such a line, the focus of the text selection should be on the line break, not after it.

source

pub fn set_character_lengths(&mut self, value: impl Into<Box<[u8]>>)

source

pub fn clear_character_lengths(&mut self)

source§

impl NodeBuilder

source

pub fn word_lengths(&self) -> &[u8]

For inline text. The length of each word in characters, as defined in character_lengths. The sum of these lengths must equal the length of character_lengths.

The end of each word is the beginning of the next word; there are no characters that are not considered part of a word. Trailing whitespace is typically considered part of the word that precedes it, while a line’s leading whitespace is considered its own word. Whether punctuation is considered a separate word or part of the preceding word depends on the particular text editing implementation. Some editors may have their own definition of a word; for example, in an IDE, words may correspond to programming language tokens.

Not all assistive technologies require information about word boundaries, and not all platform accessibility APIs even expose this information, but for assistive technologies that do use this information, users will get unpredictable results if the word boundaries exposed by the accessibility tree don’t match the editor’s behavior. This is why AccessKit does not determine word boundaries itself.

source

pub fn set_word_lengths(&mut self, value: impl Into<Box<[u8]>>)

source

pub fn clear_word_lengths(&mut self)

source§

impl NodeBuilder

source

pub fn character_positions(&self) -> Option<&[f32]>

For inline text. This is the position of each character within the node’s bounding box, in the direction given by text_direction, in the coordinate space of this node.

When present, the length of this slice should be the same as the length of character_lengths, including for lines that end with a hard line break. The position of such a line break should be the position where an end-of-paragraph marker would be rendered.

This property is optional. Without it, AccessKit can’t support some use cases, such as screen magnifiers that track the caret position or screen readers that display a highlight cursor. However, most text functionality still works without this information.

source

pub fn set_character_positions(&mut self, value: impl Into<Box<[f32]>>)

source

pub fn clear_character_positions(&mut self)

source§

impl NodeBuilder

source

pub fn character_widths(&self) -> Option<&[f32]>

For inline text. This is the advance width of each character, in the direction given by text_direction, in the coordinate space of this node.

When present, the length of this slice should be the same as the length of character_lengths, including for lines that end with a hard line break. The width of such a line break should be non-zero if selecting the line break by itself results in a visible highlight (as in Microsoft Word), or zero if not (as in Windows Notepad).

This property is optional. Without it, AccessKit can’t support some use cases, such as screen magnifiers that track the caret position or screen readers that display a highlight cursor. However, most text functionality still works without this information.

source

pub fn set_character_widths(&mut self, value: impl Into<Box<[f32]>>)

source

pub fn clear_character_widths(&mut self)

source§

impl NodeBuilder

source

pub fn is_expanded(&self) -> Option<bool>

Whether this node is expanded, collapsed, or neither.

Setting this to false means the node is collapsed; omitting it means this state isn’t applicable.

source

pub fn set_expanded(&mut self, value: bool)

source

pub fn clear_expanded(&mut self)

source§

impl NodeBuilder

source

pub fn is_selected(&self) -> Option<bool>

Indicates whether this node is selected or unselected.

The absence of this flag (as opposed to a false setting) means that the concept of “selected” doesn’t apply. When deciding whether to set the flag to false or omit it, consider whether it would be appropriate for a screen reader to announce “not selected”. The ambiguity of this flag in platform accessibility APIs has made extraneous “not selected” announcements a common annoyance.

source

pub fn set_selected(&mut self, value: bool)

source

pub fn clear_selected(&mut self)

source§

impl NodeBuilder

source

pub fn invalid(&self) -> Option<Invalid>

source

pub fn set_invalid(&mut self, value: Invalid)

source

pub fn clear_invalid(&mut self)

source

pub fn checked(&self) -> Option<Checked>

source

pub fn set_checked(&mut self, value: Checked)

source

pub fn clear_checked(&mut self)

source

pub fn live(&self) -> Option<Live>

source

pub fn set_live(&mut self, value: Live)

source

pub fn clear_live(&mut self)

source

pub fn default_action_verb(&self) -> Option<DefaultActionVerb>

source

pub fn set_default_action_verb(&mut self, value: DefaultActionVerb)

source

pub fn clear_default_action_verb(&mut self)

source

pub fn text_direction(&self) -> Option<TextDirection>

source

pub fn set_text_direction(&mut self, value: TextDirection)

source

pub fn clear_text_direction(&mut self)

source

pub fn orientation(&self) -> Option<Orientation>

source

pub fn set_orientation(&mut self, value: Orientation)

source

pub fn clear_orientation(&mut self)

source

pub fn sort_direction(&self) -> Option<SortDirection>

source

pub fn set_sort_direction(&mut self, value: SortDirection)

source

pub fn clear_sort_direction(&mut self)

source

pub fn aria_current(&self) -> Option<AriaCurrent>

source

pub fn set_aria_current(&mut self, value: AriaCurrent)

source

pub fn clear_aria_current(&mut self)

source

pub fn auto_complete(&self) -> Option<AutoComplete>

source

pub fn set_auto_complete(&mut self, value: AutoComplete)

source

pub fn clear_auto_complete(&mut self)

source

pub fn has_popup(&self) -> Option<HasPopup>

source

pub fn set_has_popup(&mut self, value: HasPopup)

source

pub fn clear_has_popup(&mut self)

source

pub fn list_style(&self) -> Option<ListStyle>

The list style type. Only available on list items.

source

pub fn set_list_style(&mut self, value: ListStyle)

source

pub fn clear_list_style(&mut self)

source

pub fn text_align(&self) -> Option<TextAlign>

source

pub fn set_text_align(&mut self, value: TextAlign)

source

pub fn clear_text_align(&mut self)

source

pub fn vertical_offset(&self) -> Option<VerticalOffset>

source

pub fn set_vertical_offset(&mut self, value: VerticalOffset)

source

pub fn clear_vertical_offset(&mut self)

source§

impl NodeBuilder

source

pub fn transform(&self) -> Option<&Affine>

An affine transform to apply to any coordinates within this node and its descendants, including the bounds property of this node. The combined transforms of this node and its ancestors define the coordinate space of this node. /// This should be None if it would be set to the identity transform, which should be the case for most nodes.

AccessKit expects the final transformed coordinates to be relative to the origin of the tree’s container (e.g. window), in physical pixels, with the y coordinate being top-down.

source

pub fn set_transform(&mut self, value: impl Into<Box<Affine>>)

source

pub fn clear_transform(&mut self)

source

pub fn bounds(&self) -> Option<Rect>

The bounding box of this node, in the node’s coordinate space. This property does not affect the coordinate space of either this node or its descendants; only the transform property affects that. This, along with the recommendation that most nodes should have a transform of None, implies that the bounds property of most nodes should be in the coordinate space of the nearest ancestor with a non-None transform, or if there is no such ancestor, the tree’s container (e.g. window).

source

pub fn set_bounds(&mut self, value: Rect)

source

pub fn clear_bounds(&mut self)

source

pub fn text_selection(&self) -> Option<&TextSelection>

source

pub fn set_text_selection(&mut self, value: impl Into<Box<TextSelection>>)

source

pub fn clear_text_selection(&mut self)

source§

impl NodeBuilder

source

pub fn custom_actions(&self) -> &[CustomAction]

source

pub fn set_custom_actions(&mut self, value: impl Into<Vec<CustomAction>>)

source

pub fn clear_custom_actions(&mut self)

source§

impl NodeBuilder

source

pub fn push_custom_action(&mut self, item: CustomAction)

Trait Implementations§

source§

impl Clone for NodeBuilder

source§

fn clone(&self) -> NodeBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NodeBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for NodeBuilder

source§

fn default() -> NodeBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for NodeBuilder

source§

fn eq(&self, other: &NodeBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for NodeBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.