Struct qt_gui::q_accessible::State
source · #[repr(C)]pub struct State { /* private fields */ }
Expand description
This structure defines bit flags that indicate the state of an accessible object. The values are:
C++ class: QAccessible::State
.
This structure defines bit flags that indicate the state of an accessible object. The values are:
Constant | Description |
---|---|
active | The object is the active window or the active sub-element in a container (that would get focus when focusing the container). |
adjustable | The object represents an adjustable value, e.g. sliders. |
animated | The object's appearance changes frequently. |
busy | The object cannot accept input at the moment. |
checkable | The object is checkable. |
checked | The object's check box is checked. |
checkStateMixed | The third state of checkboxes (half checked in tri-state check boxes). |
collapsed | The object is collapsed, e.g. a closed listview item, or an iconified window. |
defaultButton | The object represents the default button in a dialog. |
defunct | The object no longer exists. |
editable | The object has a text carret (and often implements the text interface). |
expandable | The object is expandable, mostly used for cells in a tree view. |
expanded | The object is expanded, currently its children are visible. |
extSelectable | The object supports extended selection. |
focusable | The object can receive focus. Only objects in the active window can receive focus. |
focused | The object has keyboard focus. |
hasPopup | The object opens a popup. |
hotTracked | The object's appearance is sensitive to the mouse cursor position. |
invalid | The object is no longer valid (because it has been deleted). |
invalidEntry | Input validation current input invalid. |
invisible | The object is not visible to the user. |
linked | The object is linked to another object, e.g. a hyperlink. |
marqueed | The object displays scrolling contents, e.g. a log view. |
modal | The object blocks input from other objects. |
movable | The object can be moved. |
multiLine | The object has multiple lines of text (word wrap), as opposed to a single line. |
multiSelectable | The object supports multiple selected items. |
offscreen | The object is clipped by the visible area. Objects that are off screen are also invisible. |
passwordEdit | The object is a password field, e.g. a line edit for entering a Password. |
playsSound | The object produces sound when interacted with. |
pressed | The object is pressed. |
readOnly | The object can usually be edited, but is explicitly set to read-only. |
searchEdit | The object is a line edit that is the input for search queries. |
selectable | The object is selectable. |
selectableText | The object has text which can be selected. This is different from selectable which refers to the object's children. |
selected | The object is selected, this is independent of text selection. |
selfVoicing | The object describes itself through speech or sound. |
sizeable | The object can be resized, e.g. top-level windows. |
summaryElement | The object summarizes the state of the window and should be treated with priority. |
supportsAutoCompletion | The object has auto-completion, for example in line edits or combo boxes. |
traversed | The object is linked and has been visited. |
updatesFrequently | The object changes frequently and needs to be refreshed when accessing it. |
disabled | The object is unavailable to the user, e.g. a disabled widget. |
Implementations of QAccessibleInterface::state() return a combination of these flags.
Implementations§
source§impl State
impl State
sourcepub unsafe fn check_state_mixed(&self) -> u64
pub unsafe fn check_state_mixed(&self) -> u64
Returns the value of the checkStateMixed
field.
sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<State>>) -> Ref<State>
pub unsafe fn copy_from(&self, other: impl CastInto<Ref<State>>) -> Ref<State>
This structure defines bit flags that indicate the state of an accessible object. The values are:
Calls C++ function: QAccessible::State& QAccessible::State::operator=(const QAccessible::State& other)
.
This structure defines bit flags that indicate the state of an accessible object. The values are:
Constant | Description |
---|---|
active | The object is the active window or the active sub-element in a container (that would get focus when focusing the container). |
adjustable | The object represents an adjustable value, e.g. sliders. |
animated | The object's appearance changes frequently. |
busy | The object cannot accept input at the moment. |
checkable | The object is checkable. |
checked | The object's check box is checked. |
checkStateMixed | The third state of checkboxes (half checked in tri-state check boxes). |
collapsed | The object is collapsed, e.g. a closed listview item, or an iconified window. |
defaultButton | The object represents the default button in a dialog. |
defunct | The object no longer exists. |
editable | The object has a text carret (and often implements the text interface). |
expandable | The object is expandable, mostly used for cells in a tree view. |
expanded | The object is expanded, currently its children are visible. |
extSelectable | The object supports extended selection. |
focusable | The object can receive focus. Only objects in the active window can receive focus. |
focused | The object has keyboard focus. |
hasPopup | The object opens a popup. |
hotTracked | The object's appearance is sensitive to the mouse cursor position. |
invalid | The object is no longer valid (because it has been deleted). |
invalidEntry | Input validation current input invalid. |
invisible | The object is not visible to the user. |
linked | The object is linked to another object, e.g. a hyperlink. |
marqueed | The object displays scrolling contents, e.g. a log view. |
modal | The object blocks input from other objects. |
movable | The object can be moved. |
multiLine | The object has multiple lines of text (word wrap), as opposed to a single line. |
multiSelectable | The object supports multiple selected items. |
offscreen | The object is clipped by the visible area. Objects that are off screen are also invisible. |
passwordEdit | The object is a password field, e.g. a line edit for entering a Password. |
playsSound | The object produces sound when interacted with. |
pressed | The object is pressed. |
readOnly | The object can usually be edited, but is explicitly set to read-only. |
searchEdit | The object is a line edit that is the input for search queries. |
selectable | The object is selectable. |
selectableText | The object has text which can be selected. This is different from selectable which refers to the object's children. |
selected | The object is selected, this is independent of text selection. |
selfVoicing | The object describes itself through speech or sound. |
sizeable | The object can be resized, e.g. top-level windows. |
summaryElement | The object summarizes the state of the window and should be treated with priority. |
supportsAutoCompletion | The object has auto-completion, for example in line edits or combo boxes. |
traversed | The object is linked and has been visited. |
updatesFrequently | The object changes frequently and needs to be refreshed when accessing it. |
disabled | The object is unavailable to the user, e.g. a disabled widget. |
Implementations of QAccessibleInterface::state() return a combination of these flags.
Returns the value of the defaultButton
field.
sourcepub unsafe fn expandable(&self) -> u64
pub unsafe fn expandable(&self) -> u64
Returns the value of the expandable
field.
sourcepub unsafe fn ext_selectable(&self) -> u64
pub unsafe fn ext_selectable(&self) -> u64
Returns the value of the extSelectable
field.
sourcepub unsafe fn hot_tracked(&self) -> u64
pub unsafe fn hot_tracked(&self) -> u64
Returns the value of the hotTracked
field.
sourcepub unsafe fn multi_line(&self) -> u64
pub unsafe fn multi_line(&self) -> u64
Returns the value of the multiLine
field.
sourcepub unsafe fn multi_selectable(&self) -> u64
pub unsafe fn multi_selectable(&self) -> u64
Returns the value of the multiSelectable
field.
sourcepub unsafe fn new() -> CppBox<State>
pub unsafe fn new() -> CppBox<State>
Constructs a new QAccessible::State with all states set to false.
Calls C++ function: [constructor] void QAccessible::State::State()
.
Constructs a new QAccessible::State with all states set to false.
sourcepub unsafe fn new_copy(other: impl CastInto<Ref<State>>) -> CppBox<State>
pub unsafe fn new_copy(other: impl CastInto<Ref<State>>) -> CppBox<State>
This structure defines bit flags that indicate the state of an accessible object. The values are:
Calls C++ function: [constructor] void QAccessible::State::State(const QAccessible::State& other)
.
This structure defines bit flags that indicate the state of an accessible object. The values are:
Constant | Description |
---|---|
active | The object is the active window or the active sub-element in a container (that would get focus when focusing the container). |
adjustable | The object represents an adjustable value, e.g. sliders. |
animated | The object's appearance changes frequently. |
busy | The object cannot accept input at the moment. |
checkable | The object is checkable. |
checked | The object's check box is checked. |
checkStateMixed | The third state of checkboxes (half checked in tri-state check boxes). |
collapsed | The object is collapsed, e.g. a closed listview item, or an iconified window. |
defaultButton | The object represents the default button in a dialog. |
defunct | The object no longer exists. |
editable | The object has a text carret (and often implements the text interface). |
expandable | The object is expandable, mostly used for cells in a tree view. |
expanded | The object is expanded, currently its children are visible. |
extSelectable | The object supports extended selection. |
focusable | The object can receive focus. Only objects in the active window can receive focus. |
focused | The object has keyboard focus. |
hasPopup | The object opens a popup. |
hotTracked | The object's appearance is sensitive to the mouse cursor position. |
invalid | The object is no longer valid (because it has been deleted). |
invalidEntry | Input validation current input invalid. |
invisible | The object is not visible to the user. |
linked | The object is linked to another object, e.g. a hyperlink. |
marqueed | The object displays scrolling contents, e.g. a log view. |
modal | The object blocks input from other objects. |
movable | The object can be moved. |
multiLine | The object has multiple lines of text (word wrap), as opposed to a single line. |
multiSelectable | The object supports multiple selected items. |
offscreen | The object is clipped by the visible area. Objects that are off screen are also invisible. |
passwordEdit | The object is a password field, e.g. a line edit for entering a Password. |
playsSound | The object produces sound when interacted with. |
pressed | The object is pressed. |
readOnly | The object can usually be edited, but is explicitly set to read-only. |
searchEdit | The object is a line edit that is the input for search queries. |
selectable | The object is selectable. |
selectableText | The object has text which can be selected. This is different from selectable which refers to the object's children. |
selected | The object is selected, this is independent of text selection. |
selfVoicing | The object describes itself through speech or sound. |
sizeable | The object can be resized, e.g. top-level windows. |
summaryElement | The object summarizes the state of the window and should be treated with priority. |
supportsAutoCompletion | The object has auto-completion, for example in line edits or combo boxes. |
traversed | The object is linked and has been visited. |
updatesFrequently | The object changes frequently and needs to be refreshed when accessing it. |
disabled | The object is unavailable to the user, e.g. a disabled widget. |
Implementations of QAccessibleInterface::state() return a combination of these flags.
sourcepub unsafe fn password_edit(&self) -> u64
pub unsafe fn password_edit(&self) -> u64
Returns the value of the passwordEdit
field.
sourcepub unsafe fn search_edit(&self) -> u64
pub unsafe fn search_edit(&self) -> u64
Returns the value of the searchEdit
field.
sourcepub unsafe fn selectable(&self) -> u64
pub unsafe fn selectable(&self) -> u64
Returns the value of the selectable
field.
sourcepub unsafe fn selectable_text(&self) -> u64
pub unsafe fn selectable_text(&self) -> u64
Returns the value of the selectableText
field.
sourcepub unsafe fn self_voicing(&self) -> u64
pub unsafe fn self_voicing(&self) -> u64
Returns the value of the selfVoicing
field.
sourcepub unsafe fn set_active(&self, value: u64)
pub unsafe fn set_active(&self, value: u64)
Sets the value of the active
field.
sourcepub unsafe fn set_animated(&self, value: u64)
pub unsafe fn set_animated(&self, value: u64)
Sets the value of the animated
field.
sourcepub unsafe fn set_check_state_mixed(&self, value: u64)
pub unsafe fn set_check_state_mixed(&self, value: u64)
Sets the value of the checkStateMixed
field.
sourcepub unsafe fn set_checkable(&self, value: u64)
pub unsafe fn set_checkable(&self, value: u64)
Sets the value of the checkable
field.
sourcepub unsafe fn set_checked(&self, value: u64)
pub unsafe fn set_checked(&self, value: u64)
Sets the value of the checked
field.
sourcepub unsafe fn set_collapsed(&self, value: u64)
pub unsafe fn set_collapsed(&self, value: u64)
Sets the value of the collapsed
field.
Sets the value of the defaultButton
field.
sourcepub unsafe fn set_disabled(&self, value: u64)
pub unsafe fn set_disabled(&self, value: u64)
Sets the value of the disabled
field.
sourcepub unsafe fn set_editable(&self, value: u64)
pub unsafe fn set_editable(&self, value: u64)
Sets the value of the editable
field.
sourcepub unsafe fn set_expandable(&self, value: u64)
pub unsafe fn set_expandable(&self, value: u64)
Sets the value of the expandable
field.
sourcepub unsafe fn set_expanded(&self, value: u64)
pub unsafe fn set_expanded(&self, value: u64)
Sets the value of the expanded
field.
sourcepub unsafe fn set_ext_selectable(&self, value: u64)
pub unsafe fn set_ext_selectable(&self, value: u64)
Sets the value of the extSelectable
field.
sourcepub unsafe fn set_focusable(&self, value: u64)
pub unsafe fn set_focusable(&self, value: u64)
Sets the value of the focusable
field.
sourcepub unsafe fn set_focused(&self, value: u64)
pub unsafe fn set_focused(&self, value: u64)
Sets the value of the focused
field.
sourcepub unsafe fn set_has_popup(&self, value: u64)
pub unsafe fn set_has_popup(&self, value: u64)
Sets the value of the hasPopup
field.
sourcepub unsafe fn set_hot_tracked(&self, value: u64)
pub unsafe fn set_hot_tracked(&self, value: u64)
Sets the value of the hotTracked
field.
sourcepub unsafe fn set_invalid(&self, value: u64)
pub unsafe fn set_invalid(&self, value: u64)
Sets the value of the invalid
field.
sourcepub unsafe fn set_invisible(&self, value: u64)
pub unsafe fn set_invisible(&self, value: u64)
Sets the value of the invisible
field.
sourcepub unsafe fn set_linked(&self, value: u64)
pub unsafe fn set_linked(&self, value: u64)
Sets the value of the linked
field.
sourcepub unsafe fn set_marqueed(&self, value: u64)
pub unsafe fn set_marqueed(&self, value: u64)
Sets the value of the marqueed
field.
sourcepub unsafe fn set_movable(&self, value: u64)
pub unsafe fn set_movable(&self, value: u64)
Sets the value of the movable
field.
sourcepub unsafe fn set_multi_line(&self, value: u64)
pub unsafe fn set_multi_line(&self, value: u64)
Sets the value of the multiLine
field.
sourcepub unsafe fn set_multi_selectable(&self, value: u64)
pub unsafe fn set_multi_selectable(&self, value: u64)
Sets the value of the multiSelectable
field.
sourcepub unsafe fn set_offscreen(&self, value: u64)
pub unsafe fn set_offscreen(&self, value: u64)
Sets the value of the offscreen
field.
sourcepub unsafe fn set_password_edit(&self, value: u64)
pub unsafe fn set_password_edit(&self, value: u64)
Sets the value of the passwordEdit
field.
sourcepub unsafe fn set_pressed(&self, value: u64)
pub unsafe fn set_pressed(&self, value: u64)
Sets the value of the pressed
field.
sourcepub unsafe fn set_read_only(&self, value: u64)
pub unsafe fn set_read_only(&self, value: u64)
Sets the value of the readOnly
field.
sourcepub unsafe fn set_search_edit(&self, value: u64)
pub unsafe fn set_search_edit(&self, value: u64)
Sets the value of the searchEdit
field.
sourcepub unsafe fn set_selectable(&self, value: u64)
pub unsafe fn set_selectable(&self, value: u64)
Sets the value of the selectable
field.
sourcepub unsafe fn set_selectable_text(&self, value: u64)
pub unsafe fn set_selectable_text(&self, value: u64)
Sets the value of the selectableText
field.
sourcepub unsafe fn set_selected(&self, value: u64)
pub unsafe fn set_selected(&self, value: u64)
Sets the value of the selected
field.
sourcepub unsafe fn set_self_voicing(&self, value: u64)
pub unsafe fn set_self_voicing(&self, value: u64)
Sets the value of the selfVoicing
field.
sourcepub unsafe fn set_sizeable(&self, value: u64)
pub unsafe fn set_sizeable(&self, value: u64)
Sets the value of the sizeable
field.
sourcepub unsafe fn set_supports_auto_completion(&self, value: u64)
pub unsafe fn set_supports_auto_completion(&self, value: u64)
Sets the value of the supportsAutoCompletion
field.
sourcepub unsafe fn set_traversed(&self, value: u64)
pub unsafe fn set_traversed(&self, value: u64)
Sets the value of the traversed
field.
sourcepub unsafe fn supports_auto_completion(&self) -> u64
pub unsafe fn supports_auto_completion(&self) -> u64
Returns the value of the supportsAutoCompletion
field.
Trait Implementations§
source§impl CppDeletable for State
impl CppDeletable for State
source§unsafe fn delete(&self)
unsafe fn delete(&self)
This structure defines bit flags that indicate the state of an accessible object. The values are:
Calls C++ function: [destructor] void QAccessible::State::~State()
.
This structure defines bit flags that indicate the state of an accessible object. The values are:
Constant | Description |
---|---|
active | The object is the active window or the active sub-element in a container (that would get focus when focusing the container). |
adjustable | The object represents an adjustable value, e.g. sliders. |
animated | The object's appearance changes frequently. |
busy | The object cannot accept input at the moment. |
checkable | The object is checkable. |
checked | The object's check box is checked. |
checkStateMixed | The third state of checkboxes (half checked in tri-state check boxes). |
collapsed | The object is collapsed, e.g. a closed listview item, or an iconified window. |
defaultButton | The object represents the default button in a dialog. |
defunct | The object no longer exists. |
editable | The object has a text carret (and often implements the text interface). |
expandable | The object is expandable, mostly used for cells in a tree view. |
expanded | The object is expanded, currently its children are visible. |
extSelectable | The object supports extended selection. |
focusable | The object can receive focus. Only objects in the active window can receive focus. |
focused | The object has keyboard focus. |
hasPopup | The object opens a popup. |
hotTracked | The object's appearance is sensitive to the mouse cursor position. |
invalid | The object is no longer valid (because it has been deleted). |
invalidEntry | Input validation current input invalid. |
invisible | The object is not visible to the user. |
linked | The object is linked to another object, e.g. a hyperlink. |
marqueed | The object displays scrolling contents, e.g. a log view. |
modal | The object blocks input from other objects. |
movable | The object can be moved. |
multiLine | The object has multiple lines of text (word wrap), as opposed to a single line. |
multiSelectable | The object supports multiple selected items. |
offscreen | The object is clipped by the visible area. Objects that are off screen are also invisible. |
passwordEdit | The object is a password field, e.g. a line edit for entering a Password. |
playsSound | The object produces sound when interacted with. |
pressed | The object is pressed. |
readOnly | The object can usually be edited, but is explicitly set to read-only. |
searchEdit | The object is a line edit that is the input for search queries. |
selectable | The object is selectable. |
selectableText | The object has text which can be selected. This is different from selectable which refers to the object's children. |
selected | The object is selected, this is independent of text selection. |
selfVoicing | The object describes itself through speech or sound. |
sizeable | The object can be resized, e.g. top-level windows. |
summaryElement | The object summarizes the state of the window and should be treated with priority. |
supportsAutoCompletion | The object has auto-completion, for example in line edits or combo boxes. |
traversed | The object is linked and has been visited. |
updatesFrequently | The object changes frequently and needs to be refreshed when accessing it. |
disabled | The object is unavailable to the user, e.g. a disabled widget. |
Implementations of QAccessibleInterface::state() return a combination of these flags.
source§impl PartialEq<Ref<State>> for State
impl PartialEq<Ref<State>> for State
source§fn eq(&self, second: &Ref<State>) -> bool
fn eq(&self, second: &Ref<State>) -> bool
Returns true
if page layout lhs is equal to page layout rhs, i.e. if all the attributes are exactly equal.
Calls C++ function: bool operator==(const QAccessible::State& first, const QAccessible::State& second)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(const QPageLayout &lhs, const QPageLayout &rhs)
:
Returns true
if page layout lhs is equal to page layout rhs, i.e. if all the attributes are exactly equal.
Note that this is a strict equality, especially for page size where the QPageSize ID, name and size must exactly match, and the margins where the units must match.
See also QPageLayout::isEquivalentTo().