other-licenses/atk-1.0/atk/atkstate.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /* ATK - Accessibility Toolkit
michael@0 2 * Copyright 2001 Sun Microsystems Inc.
michael@0 3 *
michael@0 4 * This library is free software; you can redistribute it and/or
michael@0 5 * modify it under the terms of the GNU Library General Public
michael@0 6 * License as published by the Free Software Foundation; either
michael@0 7 * version 2 of the License, or (at your option) any later version.
michael@0 8 *
michael@0 9 * This library is distributed in the hope that it will be useful,
michael@0 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
michael@0 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
michael@0 12 * Library General Public License for more details.
michael@0 13 *
michael@0 14 * You should have received a copy of the GNU Library General Public
michael@0 15 * License along with this library; if not, write to the
michael@0 16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
michael@0 17 * Boston, MA 02111-1307, USA.
michael@0 18 */
michael@0 19
michael@0 20 #ifndef __ATK_STATE_H__
michael@0 21 #define __ATK_STATE_H__
michael@0 22
michael@0 23 #ifdef __cplusplus
michael@0 24 extern "C" {
michael@0 25 #endif /* __cplusplus */
michael@0 26
michael@0 27 #include <glib-object.h>
michael@0 28
michael@0 29 /**
michael@0 30 *AtkStateType:
michael@0 31 *@ATK_STATE_INVALID: Indicates an invalid state
michael@0 32 *@ATK_STATE_ACTIVE: Indicates a window is currently the active window
michael@0 33 *@ATK_STATE_ARMED: Indicates that the object is armed.
michael@0 34 *@ATK_STATE_BUSY: Indicates the current object is busy. This state may be used by implementors of Document to indicate that content loading is in process.
michael@0 35 *@ATK_STATE_CHECKED: Indicates this object is currently checked
michael@0 36 *@ATK_STATE_DEFUNCT: Indicates the user interface object corresponding to this object no longer exists
michael@0 37 *@ATK_STATE_EDITABLE: Indicates the user can change the contents of this object
michael@0 38 *@ATK_STATE_ENABLED: Indicates that this object is enabled. An inconsistent GtkToggleButton is an example of an object which is sensitive but not enabled.
michael@0 39 *@ATK_STATE_EXPANDABLE: Indicates this object allows progressive disclosure of its children
michael@0 40 *@ATK_STATE_EXPANDED: Indicates this object its expanded
michael@0 41 *@ATK_STATE_FOCUSABLE: Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus
michael@0 42 *@ATK_STATE_FOCUSED: Indicates this object currently has the keyboard focus
michael@0 43 *@ATK_STATE_HORIZONTAL: Indicates the orientation of this object is horizontal
michael@0 44 *@ATK_STATE_ICONIFIED: Indicates this object is minimized and is represented only by an icon
michael@0 45 *@ATK_STATE_MODAL: Indicates something must be done with this object before the user can interact with an object in a different window
michael@0 46 *@ATK_STATE_MULTI_LINE: Indicates this (text) object can contain multiple lines of text
michael@0 47 *@ATK_STATE_MULTISELECTABLE: Indicates this object allows more than one of its children to be selected at the same time
michael@0 48 *@ATK_STATE_OPAQUE: Indicates this object paints every pixel within its rectangular region.
michael@0 49 *@ATK_STATE_PRESSED: Indicates this object is currently pressed
michael@0 50 *@ATK_STATE_RESIZABLE: Indicates the size of this object is not fixed
michael@0 51 *@ATK_STATE_SELECTABLE: Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that can be selected
michael@0 52 *@ATK_STATE_SELECTED: Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected
michael@0 53 *@ATK_STATE_SENSITIVE: Indicates this object is sensitive
michael@0 54 *@ATK_STATE_SHOWING: Indicates this object, the object's parent, the object's parent's parent, and so on, are all visible
michael@0 55 *@ATK_STATE_SINGLE_LINE: Indicates this (text) object can contain only a single line of text
michael@0 56 *@ATK_STATE_STALE: Indicates that the index associated with this object has changed since the user accessed the object.
michael@0 57 *@ATK_STATE_TRANSIENT: Indicates this object is transient
michael@0 58 *@ATK_STATE_VERTICAL: Indicates the orientation of this object is vertical
michael@0 59 *@ATK_STATE_VISIBLE: Indicates this object is visible
michael@0 60 *@ATK_STATE_MANAGES_DESCENDANTS: Indicates that "active-descendant-changed" event
michael@0 61 * is sent when children become 'active' (i.e. are selected or navigated to onscreen).
michael@0 62 * Used to prevent need to enumerate all children in very large containers, like tables.
michael@0 63 *@ATK_STATE_INDETERMINATE: Indicates that a check box is in a state other than checked or not checked.
michael@0 64 *@ATK_STATE_TRUNCATED: Indicates that an object is truncated, e.g. a text value in a speradsheet cell.
michael@0 65 *@ATK_STATE_REQUIRED: Indicates that explicit user interaction with an object is required by the user interface, e.g. a required field in a "web-form" interface.
michael@0 66 *@ATK_STATE_INVALID_ENTRY: Indicates that the object has encountered an error condition due to failure of input validation. For instance, a form control may acquire this state in response to invalid or malformed user input.
michael@0 67 *@ATK_STATE_SUPPORTS_AUTOCOMPLETION: Indicates that the object may exhibit "typeahead" behavior in response to user keystrokes, e.g. one keystroke may result in the insertion of several characters into an entry, or result in the auto-selection of an item in a list. This state supplants @ATK_ROLE_AUTOCOMPLETE.
michael@0 68 *@ATK_STATE_SELECTABLE_TEXT:Indicates that the object in question supports text selection. It should only be exposed on objects which implement the Text interface, in order to distinguish this state from @ATK_STATE_SELECTABLE, which infers that the object in question is a selectable child of an object which implements Selection. While similar, text selection and subelement selection are distinct operations.
michael@0 69 *@ATK_STATE_DEFAULT: Indicates that the object is the "default" active component, i.e. the object which is activated by an end-user press of the "Enter" or "Return" key. Typically a "close" or "submit" button.
michael@0 70 *@ATK_STATE_ANIMATED: Indicates that the object changes its appearance dynamically as an inherent part of its presentation. This state may come and go if an object is only temporarily animated on the way to a 'final' onscreen presentation.
michael@0 71 *@ATK_STATE_VISITED: Indicates that the object (typically a hyperlink) has already been 'activated', and/or its backing data has already been downloaded, rendered, or otherwise "visited".
michael@0 72 *@ATK_STATE_LAST_DEFINED: Not a valid state, used for finding end of enumeration
michael@0 73 *
michael@0 74 *The possible types of states of an object
michael@0 75 **/
michael@0 76 typedef enum
michael@0 77 {
michael@0 78 ATK_STATE_INVALID,
michael@0 79 ATK_STATE_ACTIVE,
michael@0 80 ATK_STATE_ARMED,
michael@0 81 ATK_STATE_BUSY,
michael@0 82 ATK_STATE_CHECKED,
michael@0 83 ATK_STATE_DEFUNCT,
michael@0 84 ATK_STATE_EDITABLE,
michael@0 85 ATK_STATE_ENABLED,
michael@0 86 ATK_STATE_EXPANDABLE,
michael@0 87 ATK_STATE_EXPANDED,
michael@0 88 ATK_STATE_FOCUSABLE,
michael@0 89 ATK_STATE_FOCUSED,
michael@0 90 ATK_STATE_HORIZONTAL,
michael@0 91 ATK_STATE_ICONIFIED,
michael@0 92 ATK_STATE_MODAL,
michael@0 93 ATK_STATE_MULTI_LINE,
michael@0 94 ATK_STATE_MULTISELECTABLE,
michael@0 95 ATK_STATE_OPAQUE,
michael@0 96 ATK_STATE_PRESSED,
michael@0 97 ATK_STATE_RESIZABLE,
michael@0 98 ATK_STATE_SELECTABLE,
michael@0 99 ATK_STATE_SELECTED,
michael@0 100 ATK_STATE_SENSITIVE,
michael@0 101 ATK_STATE_SHOWING,
michael@0 102 ATK_STATE_SINGLE_LINE,
michael@0 103 ATK_STATE_STALE,
michael@0 104 ATK_STATE_TRANSIENT,
michael@0 105 ATK_STATE_VERTICAL,
michael@0 106 ATK_STATE_VISIBLE,
michael@0 107 ATK_STATE_MANAGES_DESCENDANTS,
michael@0 108 ATK_STATE_INDETERMINATE,
michael@0 109 ATK_STATE_TRUNCATED,
michael@0 110 ATK_STATE_REQUIRED,
michael@0 111 ATK_STATE_INVALID_ENTRY,
michael@0 112 ATK_STATE_SUPPORTS_AUTOCOMPLETION,
michael@0 113 ATK_STATE_SELECTABLE_TEXT,
michael@0 114 ATK_STATE_DEFAULT,
michael@0 115 ATK_STATE_ANIMATED,
michael@0 116 ATK_STATE_VISITED,
michael@0 117
michael@0 118 ATK_STATE_LAST_DEFINED
michael@0 119 } AtkStateType;
michael@0 120
michael@0 121 typedef guint64 AtkState;
michael@0 122
michael@0 123 AtkStateType atk_state_type_register (const gchar *name);
michael@0 124
michael@0 125 G_CONST_RETURN gchar* atk_state_type_get_name (AtkStateType type);
michael@0 126 AtkStateType atk_state_type_for_name (const gchar *name);
michael@0 127
michael@0 128 #ifdef __cplusplus
michael@0 129 }
michael@0 130 #endif /* __cplusplus */
michael@0 131
michael@0 132 #endif /* __ATK_STATE_H__ */

mercurial