Struct qt_gui::q_accessible::Role

source ·
pub struct Role(/* private fields */);
Expand description

This enum defines the role of an accessible object. The roles are:

C++ enum: QAccessible::Role.

C++ documentation:

This enum defines the role of an accessible object. The roles are:

Implementations§

source§

impl Role

source

pub fn to_int(&self) -> c_int

source§

impl Role

source

pub const NoRole: Role = _

The object has no role. This usually indicates an invalid object. (C++ enum variant: NoRole = 0)

source

pub const TitleBar: Role = _

The title bar caption of a window. (C++ enum variant: TitleBar = 1)

source

pub const MenuBar: Role = _

A menu bar from which menus are opened by the user. (C++ enum variant: MenuBar = 2)

source

pub const ScrollBar: Role = _

A scroll bar, which allows the user to scroll the visible area. (C++ enum variant: ScrollBar = 3)

source

pub const Grip: Role = _

A grip that the user can drag to change the size of widgets. (C++ enum variant: Grip = 4)

source

pub const Sound: Role = _

An object that represents a sound. (C++ enum variant: Sound = 5)

source

pub const Cursor: Role = _

An object that represents the mouse cursor. (C++ enum variant: Cursor = 6)

source

pub const Caret: Role = _

An object that represents the system caret (text cursor). (C++ enum variant: Caret = 7)

source

pub const AlertMessage: Role = _

An object that is used to alert the user. (C++ enum variant: AlertMessage = 8)

source

pub const Window: Role = _

A top level window. (C++ enum variant: Window = 9)

source

pub const Client: Role = _

The client area in a window. (C++ enum variant: Client = 10)

source

pub const PopupMenu: Role = _

A menu which lists options that the user can select to perform an action. (C++ enum variant: PopupMenu = 11)

source

pub const MenuItem: Role = _

An item in a menu or menu bar. (C++ enum variant: MenuItem = 12)

source

pub const ToolTip: Role = _

A tool tip which provides information about other objects. (C++ enum variant: ToolTip = 13)

source

pub const Application: Role = _

The application’s main window. (C++ enum variant: Application = 14)

source

pub const Document: Role = _

A document, for example in an office application. (C++ enum variant: Document = 15)

source

pub const Pane: Role = _

A generic container. (C++ enum variant: Pane = 16)

source

pub const Chart: Role = _

An object that displays a graphical representation of data. (C++ enum variant: Chart = 17)

source

pub const Dialog: Role = _

A dialog box. (C++ enum variant: Dialog = 18)

source

pub const Border: Role = _

An object that represents a border. (C++ enum variant: Border = 19)

source

pub const Grouping: Role = _

An object that represents a logical grouping of other objects. (C++ enum variant: Grouping = 20)

source

pub const Separator: Role = _

A separator that divides space into logical areas. (C++ enum variant: Separator = 21)

source

pub const ToolBar: Role = _

A tool bar, which groups widgets that the user accesses frequently. (C++ enum variant: ToolBar = 22)

source

pub const StatusBar: Role = _

A status bar. (C++ enum variant: StatusBar = 23)

source

pub const Table: Role = _

A table representing data in a grid of rows and columns. (C++ enum variant: Table = 24)

source

pub const ColumnHeader: Role = _

A header for a column of data. (C++ enum variant: ColumnHeader = 25)

source

pub const RowHeader: Role = _

A header for a row of data. (C++ enum variant: RowHeader = 26)

source

pub const Column: Role = _

A column of cells, usually within a table. (C++ enum variant: Column = 27)

source

pub const Row: Role = _

A row of cells, usually within a table. (C++ enum variant: Row = 28)

source

pub const Cell: Role = _

A cell in a table. (C++ enum variant: Cell = 29)

A link to something else. (C++ enum variant: Link = 30)

source

pub const HelpBalloon: Role = _

An object that displays help in a separate, short lived window. (C++ enum variant: HelpBalloon = 31)

source

pub const Assistant: Role = _

An object that provids interactive help. (C++ enum variant: Assistant = 32)

source

pub const List: Role = _

A list of items, from which the user can select one or more items. (C++ enum variant: List = 33)

source

pub const ListItem: Role = _

An item in a list of items. (C++ enum variant: ListItem = 34)

source

pub const Tree: Role = _

A list of items in a tree structure. (C++ enum variant: Tree = 35)

source

pub const TreeItem: Role = _

An item in a tree structure. (C++ enum variant: TreeItem = 36)

source

pub const PageTab: Role = _

A page tab that the user can select to switch to a different page in a dialog. (C++ enum variant: PageTab = 37)

source

pub const PropertyPage: Role = _

A property page where the user can change options and settings. (C++ enum variant: PropertyPage = 38)

source

pub const Indicator: Role = _

An indicator that represents a current value or item. (C++ enum variant: Indicator = 39)

source

pub const Graphic: Role = _

A graphic or picture, e.g. an icon. (C++ enum variant: Graphic = 40)

source

pub const StaticText: Role = _

Static text, such as labels for other widgets. (C++ enum variant: StaticText = 41)

source

pub const EditableText: Role = _

Editable text such as a line or text edit. (C++ enum variant: EditableText = 42)

source

pub const Button: Role = _

A button. (C++ enum variant: Button = 43)

source

pub const PushButton: Role = _

C++ enum variant: PushButton = 43

source

pub const CheckBox: Role = _

An object that represents an option that can be checked or unchecked. Some options provide a “mixed” state, e.g. neither checked nor unchecked. (C++ enum variant: CheckBox = 44)

source

pub const RadioButton: Role = _

An object that represents an option that is mutually exclusive with other options. (C++ enum variant: RadioButton = 45)

source

pub const ComboBox: Role = _

A list of choices that the user can select from. (C++ enum variant: ComboBox = 46)

source

pub const ProgressBar: Role = _

The object displays the progress of an operation in progress. (C++ enum variant: ProgressBar = 48)

source

pub const Dial: Role = _

An object that represents a dial or knob. (C++ enum variant: Dial = 49)

source

pub const HotkeyField: Role = _

A hotkey field that allows the user to enter a key sequence. (C++ enum variant: HotkeyField = 50)

source

pub const Slider: Role = _

A slider that allows the user to select a value within a given range. (C++ enum variant: Slider = 51)

source

pub const SpinBox: Role = _

A spin box widget that allows the user to enter a value within a given range. (C++ enum variant: SpinBox = 52)

source

pub const Canvas: Role = _

An object that displays graphics that the user can interact with. (C++ enum variant: Canvas = 53)

source

pub const Animation: Role = _

An object that displays an animation. (C++ enum variant: Animation = 54)

source

pub const Equation: Role = _

An object that represents a mathematical equation. (C++ enum variant: Equation = 55)

source

pub const ButtonDropDown: Role = _

A button that drops down a list of items. (C++ enum variant: ButtonDropDown = 56)

source

pub const ButtonMenu: Role = _

A button that drops down a menu. (C++ enum variant: ButtonMenu = 57)

source

pub const ButtonDropGrid: Role = _

A button that drops down a grid. (C++ enum variant: ButtonDropGrid = 58)

source

pub const Whitespace: Role = _

Blank space between other objects. (C++ enum variant: Whitespace = 59)

source

pub const PageTabList: Role = _

A list of page tabs. (C++ enum variant: PageTabList = 60)

source

pub const Clock: Role = _

A clock displaying time. (C++ enum variant: Clock = 61)

source

pub const Splitter: Role = _

A splitter distributing available space between its child widgets. (C++ enum variant: Splitter = 62)

source

pub const LayeredPane: Role = _

An object that can contain layered children, e.g. in a stack. (C++ enum variant: LayeredPane = 128)

source

pub const Terminal: Role = _

A terminal or command line interface. (C++ enum variant: Terminal = 129)

source

pub const Desktop: Role = _

The object represents the desktop or workspace. (C++ enum variant: Desktop = 130)

source

pub const Paragraph: Role = _

A paragraph of text (usually found in documents). (C++ enum variant: Paragraph = 131)

source

pub const WebDocument: Role = _

HTML document, usually in a browser. (C++ enum variant: WebDocument = 132)

source

pub const Section: Role = _

A section (in a document). (C++ enum variant: Section = 133)

source

pub const ColorChooser: Role = _

A dialog that lets the user choose a color. (C++ enum variant: ColorChooser = 1028)

source

pub const Footer: Role = _

A footer in a page (usually in documents). (C++ enum variant: Footer = 1038)

source

pub const Form: Role = _

A web form containing controls. (C++ enum variant: Form = 1040)

source

pub const Heading: Role = _

A heading in a document. (C++ enum variant: Heading = 1044)

source

pub const Note: Role = _

A section whose content is parenthetic or ancillary to the main content of the resource. (C++ enum variant: Note = 1051)

source

pub const ComplementaryContent: Role = _

A part of the document or web page that is complementary to the main content, usually a landmark (see WAI-ARIA). (C++ enum variant: ComplementaryContent = 1068)

source

pub const UserRole: Role = _

The first value to be used for user defined roles. (C++ enum variant: UserRole = 65535)

source

pub const Notification: Role = _

An object that represents a notification (e.g. in the system tray). This role only has an effect on Linux. (C++ enum variant: Notification = 134)

Trait Implementations§

source§

impl Clone for Role

source§

fn clone(&self) -> Role

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 Role

source§

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

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

impl From<Role> for c_int

source§

fn from(value: Role) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Role

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Role

source§

fn eq(&self, other: &Role) -> 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 Copy for Role

source§

impl Eq for Role

source§

impl StructuralEq for Role

source§

impl StructuralPartialEq for Role

Auto Trait Implementations§

§

impl RefUnwindSafe for Role

§

impl Send for Role

§

impl Sync for Role

§

impl Unpin for Role

§

impl UnwindSafe for Role

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, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. 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> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
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.