-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Atk bindings
--   
--   Bindings for Atk, autogenerated by haskell-gi.
@package gi-atk
@version 2.0.18

module GI.Atk.Constants

-- | A macro that should be defined by the user prior to including the
--   atk/atk.h header. The definition should be one of the predefined ATK
--   version macros: ATK_VERSION_2_12,
--   ATK_VERSION_2_14,...
--   
--   This macro defines the earliest version of ATK that the package is
--   required to be able to compile against.
--   
--   If the compiler is configured to warn about the use of deprecated
--   functions, then using functions that were deprecated in version
--   VERSION_MIN_REQUIRED or earlier will cause warnings (but using
--   functions deprecated in later releases will not).
--   
--   Since: 2.14
pattern VERSION_MIN_REQUIRED :: () => () => Int32

-- | Like getMinorVersion, but from the headers used at application
--   compile time, rather than from the library linked against at
--   application run time.
--   
--   Since: 2.7.4
pattern MINOR_VERSION :: () => () => Int32

-- | Like getMicroVersion, but from the headers used at application
--   compile time, rather than from the library linked against at
--   application run time.
--   
--   Since: 2.7.4
pattern MICRO_VERSION :: () => () => Int32

-- | Like getMajorVersion, but from the headers used at application
--   compile time, rather than from the library linked against at
--   application run time.
--   
--   Since: 2.7.4
pattern MAJOR_VERSION :: () => () => Int32

-- | Like getInterfaceAge, but from the headers used at application
--   compile time, rather than from the library linked against at
--   application run time.
--   
--   Since: 2.7.4
pattern INTERFACE_AGE :: () => () => Int32

-- | Like getBinaryAge, but from the headers used at application
--   compile time, rather than from the library linked against at
--   application run time.
--   
--   Since: 2.7.4
pattern BINARY_AGE :: () => () => Int32

module GI.Atk.Enums

-- | Specifies how xy coordinates are to be interpreted. Used by functions
--   such as componentGetPosition and textGetCharacterExtents
data CoordType

-- | specifies xy coordinates relative to the screen
CoordTypeScreen :: CoordType

-- | specifies xy coordinates relative to the widget's top-level window
CoordTypeWindow :: CoordType

-- | specifies xy coordinates relative to the widget's immediate parent.
--   Since: 2.30
CoordTypeParent :: CoordType

-- | Catch-all for unknown values
AnotherCoordType :: Int -> CoordType

-- | Specifies the type of a keyboard evemt.
data KeyEventType

-- | specifies a key press event
KeyEventTypePress :: KeyEventType

-- | specifies a key release event
KeyEventTypeRelease :: KeyEventType

-- | Not a valid value; specifies end of enumeration
KeyEventTypeLastDefined :: KeyEventType

-- | Catch-all for unknown values
AnotherKeyEventType :: Int -> KeyEventType

-- | Describes the layer of a component
--   
--   These enumerated "layer values" are used when determining which UI
--   rendering layer a component is drawn into, which can help in making
--   determinations of when components occlude one another.
data Layer

-- | The object does not have a layer
LayerInvalid :: Layer

-- | This layer is reserved for the desktop background
LayerBackground :: Layer

-- | This layer is used for Canvas components
LayerCanvas :: Layer

-- | This layer is normally used for components
LayerWidget :: Layer

-- | This layer is used for layered components
LayerMdi :: Layer

-- | This layer is used for popup components, such as menus
LayerPopup :: Layer

-- | This layer is reserved for future use.
LayerOverlay :: Layer

-- | This layer is used for toplevel windows.
LayerWindow :: Layer

-- | Catch-all for unknown values
AnotherLayer :: Int -> Layer

-- | Describes the type of the relation
data RelationType

-- | Not used, represens "no relationship" or an error condition.
RelationTypeNull :: RelationType

-- | Indicates an object controlled by one or more target objects.
RelationTypeControlledBy :: RelationType

-- | Indicates an object is an controller for one or more target objects.
RelationTypeControllerFor :: RelationType

-- | Indicates an object is a label for one or more target objects.
RelationTypeLabelFor :: RelationType

-- | Indicates an object is labelled by one or more target objects.
RelationTypeLabelledBy :: RelationType

-- | Indicates an object is a member of a group of one or more target
--   objects.
RelationTypeMemberOf :: RelationType

-- | Indicates an object is a cell in a treetable which is displayed
--   because a cell in the same column is expanded and identifies that
--   cell.
RelationTypeNodeChildOf :: RelationType

-- | Indicates that the object has content that flows logically to another
--   AtkObject in a sequential way, (for instance text-flow).
RelationTypeFlowsTo :: RelationType

-- | Indicates that the object has content that flows logically from
--   another AtkObject in a sequential way, (for instance text-flow).
RelationTypeFlowsFrom :: RelationType

-- | Indicates a subwindow attached to a component but otherwise has no
--   connection in the UI heirarchy to that component.
RelationTypeSubwindowOf :: RelationType

-- | Indicates that the object visually embeds another object's content,
--   i.e. this object's content flows around another's content.
RelationTypeEmbeds :: RelationType

-- | Reciprocal of RelationTypeEmbeds, indicates that this object's
--   content is visualy embedded in another object.
RelationTypeEmbeddedBy :: RelationType

-- | Indicates that an object is a popup for another object.
RelationTypePopupFor :: RelationType

-- | Indicates that an object is a parent window of another object.
RelationTypeParentWindowOf :: RelationType

-- | Reciprocal of RelationTypeDescriptionFor. Indicates that one or
--   more target objects provide descriptive information about this object.
--   This relation type is most appropriate for information that is not
--   essential as its presentation may be user-configurable and/or limited
--   to an on-demand mechanism such as an assistive technology command. For
--   brief, essential information such as can be found in a widget's
--   on-screen label, use RelationTypeLabelledBy. For an on-screen
--   error message, use RelationTypeErrorMessage. For lengthy
--   extended descriptive information contained in an on-screen object,
--   consider using RelationTypeDetails as assistive technologies
--   may provide a means for the user to navigate to objects containing
--   detailed descriptions so that their content can be more closely
--   reviewed.
RelationTypeDescribedBy :: RelationType

-- | Reciprocal of RelationTypeDescribedBy. Indicates that this
--   object provides descriptive information about the target object(s).
--   See also RelationTypeDetailsFor and
--   RelationTypeErrorFor.
RelationTypeDescriptionFor :: RelationType

-- | Indicates an object is a cell in a treetable and is expanded to
--   display other cells in the same column.
RelationTypeNodeParentOf :: RelationType

-- | Reciprocal of RelationTypeDetailsFor. Indicates that this
--   object has a detailed or extended description, the contents of which
--   can be found in the target object(s). This relation type is most
--   appropriate for information that is sufficiently lengthy as to make
--   navigation to the container of that information desirable. For less
--   verbose information suitable for announcement only, see
--   RelationTypeDescribedBy. If the detailed information describes
--   an error condition, RelationTypeErrorFor should be used
--   instead. since: ATK-2.26.
RelationTypeDetails :: RelationType

-- | Reciprocal of RelationTypeDetails. Indicates that this object
--   provides a detailed or extended description about the target
--   object(s). See also RelationTypeDescriptionFor and
--   RelationTypeErrorFor. since: ATK-2.26.
RelationTypeDetailsFor :: RelationType

-- | Reciprocal of RelationTypeErrorFor. Indicates that this object
--   has one or more errors, the nature of which is described in the
--   contents of the target object(s). Objects that have this relation type
--   should also contain StateTypeInvalidEntry in their
--   StateSet. since: ATK-2.26.
RelationTypeErrorMessage :: RelationType

-- | Reciprocal of RelationTypeErrorMessage. Indicates that this
--   object contains an error message describing an invalid condition in
--   the target object(s). since: ATK_2.26.
RelationTypeErrorFor :: RelationType

-- | Not used, this value indicates the end of the enumeration.
RelationTypeLastDefined :: RelationType

-- | Catch-all for unknown values
AnotherRelationType :: Int -> RelationType

-- | Describes the role of an object
--   
--   These are the built-in enumerated roles that UI components can have in
--   ATK. Other roles may be added at runtime, so an AtkRole >=
--   RoleLastDefined is not necessarily an error.
data Role

-- | Invalid role
RoleInvalid :: Role

-- | A label which represents an accelerator
RoleAcceleratorLabel :: Role

-- | An object which is an alert to the user. Assistive Technologies
--   typically respond to ATK_ROLE_ALERT by reading the entire onscreen
--   contents of containers advertising this role. Should be used for
--   warning dialogs, etc.
RoleAlert :: Role

-- | An object which is an animated image
RoleAnimation :: Role

-- | An arrow in one of the four cardinal directions
RoleArrow :: Role

-- | An object that displays a calendar and allows the user to select a
--   date
RoleCalendar :: Role

-- | An object that can be drawn into and is used to trap events
RoleCanvas :: Role

-- | A choice that can be checked or unchecked and provides a separate
--   indicator for the current state
RoleCheckBox :: Role

-- | A menu item with a check box
RoleCheckMenuItem :: Role

-- | A specialized dialog that lets the user choose a color
RoleColorChooser :: Role

-- | The header for a column of data
RoleColumnHeader :: Role

-- | A collapsible list of choices the user can select from
RoleComboBox :: Role

-- | An object whose purpose is to allow a user to edit a date
RoleDateEditor :: Role

-- | An inconifed internal frame within a DESKTOP_PANE
RoleDesktopIcon :: Role

-- | A pane that supports internal frames and iconified versions of those
--   internal frames
RoleDesktopFrame :: Role

-- | An object whose purpose is to allow a user to set a value
RoleDial :: Role

-- | A top level window with title bar and a border
RoleDialog :: Role

-- | A pane that allows the user to navigate through and select the
--   contents of a directory
RoleDirectoryPane :: Role

-- | An object used for drawing custom user interface elements
RoleDrawingArea :: Role

-- | A specialized dialog that lets the user choose a file
RoleFileChooser :: Role

-- | A object that fills up space in a user interface
RoleFiller :: Role

-- | A specialized dialog that lets the user choose a font
RoleFontChooser :: Role

-- | A top level window with a title bar, border, menubar, etc.
RoleFrame :: Role

-- | A pane that is guaranteed to be painted on top of all panes beneath it
RoleGlassPane :: Role

-- | A document container for HTML, whose children represent the document
--   content
RoleHtmlContainer :: Role

-- | A small fixed size picture, typically used to decorate components
RoleIcon :: Role

-- | An object whose primary purpose is to display an image
RoleImage :: Role

-- | A frame-like object that is clipped by a desktop pane
RoleInternalFrame :: Role

-- | An object used to present an icon or short string in an interface
RoleLabel :: Role

-- | A specialized pane that allows its children to be drawn in layers,
--   providing a form of stacking order
RoleLayeredPane :: Role

-- | An object that presents a list of objects to the user and allows the
--   user to select one or more of them
RoleList :: Role

-- | An object that represents an element of a list
RoleListItem :: Role

-- | An object usually found inside a menu bar that contains a list of
--   actions the user can choose from
RoleMenu :: Role

-- | An object usually drawn at the top of the primary dialog box of an
--   application that contains a list of menus the user can choose from
RoleMenuBar :: Role

-- | An object usually contained in a menu that presents an action the user
--   can choose
RoleMenuItem :: Role

-- | A specialized pane whose primary use is inside a DIALOG
RoleOptionPane :: Role

-- | An object that is a child of a page tab list
RolePageTab :: Role

-- | An object that presents a series of panels (or page tabs), one at a
--   time, through some mechanism provided by the object
RolePageTabList :: Role

-- | A generic container that is often used to group objects
RolePanel :: Role

-- | A text object uses for passwords, or other places where the text
--   content is not shown visibly to the user
RolePasswordText :: Role

-- | A temporary window that is usually used to offer the user a list of
--   choices, and then hides when the user selects one of those choices
RolePopupMenu :: Role

-- | An object used to indicate how much of a task has been completed
RoleProgressBar :: Role

-- | An object the user can manipulate to tell the application to do
--   something
RolePushButton :: Role

-- | A specialized check box that will cause other radio buttons in the
--   same group to become unchecked when this one is checked
RoleRadioButton :: Role

-- | A check menu item which belongs to a group. At each instant exactly
--   one of the radio menu items from a group is selected
RoleRadioMenuItem :: Role

-- | A specialized pane that has a glass pane and a layered pane as its
--   children
RoleRootPane :: Role

-- | The header for a row of data
RoleRowHeader :: Role

-- | An object usually used to allow a user to incrementally view a large
--   amount of data.
RoleScrollBar :: Role

-- | An object that allows a user to incrementally view a large amount of
--   information
RoleScrollPane :: Role

-- | An object usually contained in a menu to provide a visible and logical
--   separation of the contents in a menu
RoleSeparator :: Role

-- | An object that allows the user to select from a bounded range
RoleSlider :: Role

-- | A specialized panel that presents two other panels at the same time
RoleSplitPane :: Role

-- | An object used to get an integer or floating point number from the
--   user
RoleSpinButton :: Role

-- | An object which reports messages of minor importance to the user
RoleStatusbar :: Role

-- | An object used to represent information in terms of rows and columns
RoleTable :: Role

-- | A cell in a table
RoleTableCell :: Role

-- | The header for a column of a table
RoleTableColumnHeader :: Role

-- | The header for a row of a table
RoleTableRowHeader :: Role

-- | A menu item used to tear off and reattach its menu
RoleTearOffMenuItem :: Role

-- | An object that represents an accessible terminal. (Since: 0.6)
RoleTerminal :: Role

-- | An interactive widget that supports multiple lines of text and
--   optionally accepts user input, but whose purpose is not to solicit
--   user input. Thus ATK_ROLE_TEXT is appropriate for the text view in a
--   plain text editor but inappropriate for an input field in a dialog box
--   or web form. For widgets whose purpose is to solicit input from the
--   user, see ATK_ROLE_ENTRY and ATK_ROLE_PASSWORD_TEXT. For generic
--   objects which display a brief amount of textual information, see
--   ATK_ROLE_STATIC.
RoleText :: Role

-- | A specialized push button that can be checked or unchecked, but does
--   not provide a separate indicator for the current state
RoleToggleButton :: Role

-- | A bar or palette usually composed of push buttons or toggle buttons
RoleToolBar :: Role

-- | An object that provides information about another object
RoleToolTip :: Role

-- | An object used to represent hierarchical information to the user
RoleTree :: Role

-- | An object capable of expanding and collapsing rows as well as showing
--   multiple columns of data. (Since: 0.7)
RoleTreeTable :: Role

-- | The object contains some Accessible information, but its role is not
--   known
RoleUnknown :: Role

-- | An object usually used in a scroll pane
RoleViewport :: Role

-- | A top level window with no title or border.
RoleWindow :: Role

-- | An object that serves as a document header. (Since: 1.1.1)
RoleHeader :: Role

-- | An object that serves as a document footer. (Since: 1.1.1)
RoleFooter :: Role

-- | An object which is contains a paragraph of text content. (Since:
--   1.1.1)
RoleParagraph :: Role

-- | An object which describes margins and tab stops, etc. for text objects
--   which it controls (should have CONTROLLER_FOR relation to such).
--   (Since: 1.1.1)
RoleRuler :: Role

-- | The object is an application object, which may contain
--   aTKROLEFRAME objects or other types of accessibles.
--   The root accessible of any application's ATK hierarchy should have
--   ATK_ROLE_APPLICATION. (Since: 1.1.4)
RoleApplication :: Role

-- | The object is a dialog or list containing items for insertion into an
--   entry widget, for instance a list of words for completion of a text
--   entry. (Since: 1.3)
RoleAutocomplete :: Role

-- | The object is an editable text object in a toolbar. (Since: 1.5)
RoleEditBar :: Role

-- | The object is an embedded container within a document or panel. This
--   role is a grouping "hint" indicating that the contained objects share
--   a context. (Since: 1.7.2)
RoleEmbedded :: Role

-- | The object is a component whose textual content may be entered or
--   modified by the user, provided aTKSTATEEDITABLE is
--   present. (Since: 1.11)
RoleEntry :: Role

-- | The object is a graphical depiction of quantitative data. It may
--   contain multiple subelements whose attributes and/or description may
--   be queried to obtain both the quantitative data and information about
--   how the data is being presented. The LABELLED_BY relation is
--   particularly important in interpreting objects of this type, as is the
--   accessible-description property. (Since: 1.11)
RoleChart :: Role

-- | The object contains descriptive information, usually textual, about
--   another user interface element such as a table, chart, or image.
--   (Since: 1.11)
RoleCaption :: Role

-- | The object is a visual frame or container which contains a view of
--   document content. Document frames may occur within another Document
--   instance, in which case the second document may be said to be embedded
--   in the containing instance. HTML frames are often ROLE_DOCUMENT_FRAME.
--   Either this object, or a singleton descendant, should implement the
--   Document interface. (Since: 1.11)
RoleDocumentFrame :: Role

-- | The object serves as a heading for content which follows it in a
--   document. The 'heading level' of the heading, if availabe, may be
--   obtained by querying the object's attributes.
RoleHeading :: Role

-- | The object is a containing instance which encapsulates a page of
--   information. aTKROLEPAGE is used in documents and
--   content which support a paginated navigation model. (Since: 1.11)
RolePage :: Role

-- | The object is a containing instance of document content which
--   constitutes a particular 'logical' section of the document. The type
--   of content within a section, and the nature of the section division
--   itself, may be obtained by querying the object's attributes. Sections
--   may be nested. (Since: 1.11)
RoleSection :: Role

-- | The object is redundant with another object in the hierarchy, and is
--   exposed for purely technical reasons. Objects of this role should
--   normally be ignored by clients. (Since: 1.11)
RoleRedundantObject :: Role

-- | The object is a container for form controls, for instance as part of a
--   web form or user-input form within a document. This role is primarily
--   a tag/convenience for clients when navigating complex documents, it is
--   not expected that ordinary GUI containers will always have
--   ATK_ROLE_FORM. (Since: 1.12.0)
RoleForm :: Role

-- | The object is a hypertext anchor, i.e. a "link" in a hypertext
--   document. Such objects are distinct from 'inline' content which may
--   also use the Hypertext/Hyperlink interfaces to indicate the
--   range/location within a text object where an inline or embedded object
--   lies. (Since: 1.12.1)
RoleLink :: Role

-- | The object is a window or similar viewport which is used to allow
--   composition or input of a 'complex character', in other words it is an
--   "input method window." (Since: 1.12.1)
RoleInputMethodWindow :: Role

-- | A row in a table. (Since: 2.1.0)
RoleTableRow :: Role

-- | An object that represents an element of a tree. (Since: 2.1.0)
RoleTreeItem :: Role

-- | A document frame which contains a spreadsheet. (Since: 2.1.0)
RoleDocumentSpreadsheet :: Role

-- | A document frame which contains a presentation or slide content.
--   (Since: 2.1.0)
RoleDocumentPresentation :: Role

-- | A document frame which contains textual content, such as found in a
--   word processing application. (Since: 2.1.0)
RoleDocumentText :: Role

-- | A document frame which contains HTML or other markup suitable for
--   display in a web browser. (Since: 2.1.0)
RoleDocumentWeb :: Role

-- | A document frame which contains email content to be displayed or
--   composed either in plain text or HTML. (Since: 2.1.0)
RoleDocumentEmail :: Role

-- | An object found within a document and designed to present a comment,
--   note, or other annotation. In some cases, this object might not be
--   visible until activated. (Since: 2.1.0)
RoleComment :: Role

-- | A non-collapsible list of choices the user can select from. (Since:
--   2.1.0)
RoleListBox :: Role

-- | A group of related widgets. This group typically has a label. (Since:
--   2.1.0)
RoleGrouping :: Role

-- | An image map object. Usually a graphic with multiple hotspots, where
--   each hotspot can be activated resulting in the loading of another
--   document or section of a document. (Since: 2.1.0)
RoleImageMap :: Role

-- | A transitory object designed to present a message to the user,
--   typically at the desktop level rather than inside a particular
--   application. (Since: 2.1.0)
RoleNotification :: Role

-- | An object designed to present a message to the user within an existing
--   window. (Since: 2.1.0)
RoleInfoBar :: Role

-- | A bar that serves as a level indicator to, for instance, show the
--   strength of a password or the state of a battery. (Since: 2.7.3)
RoleLevelBar :: Role

-- | A bar that serves as the title of a window or a dialog. (Since: 2.12)
RoleTitleBar :: Role

-- | An object which contains a text section that is quoted from another
--   source. (Since: 2.12)
RoleBlockQuote :: Role

-- | An object which represents an audio element. (Since: 2.12)
RoleAudio :: Role

-- | An object which represents a video element. (Since: 2.12)
RoleVideo :: Role

-- | A definition of a term or concept. (Since: 2.12)
RoleDefinition :: Role

-- | A section of a page that consists of a composition that forms an
--   independent part of a document, page, or site. Examples: A blog entry,
--   a news story, a forum post. (Since: 2.12)
RoleArticle :: Role

-- | A region of a web page intended as a navigational landmark. This is
--   designed to allow Assistive Technologies to provide quick navigation
--   among key regions within a document. (Since: 2.12)
RoleLandmark :: Role

-- | A text widget or container holding log content, such as chat history
--   and error logs. In this role there is a relationship between the
--   arrival of new items in the log and the reading order. The log
--   contains a meaningful sequence and new information is added only to
--   the end of the log, not at arbitrary points. (Since: 2.12)
RoleLog :: Role

-- | A container where non-essential information changes frequently. Common
--   usages of marquee include stock tickers and ad banners. The primary
--   difference between a marquee and a log is that logs usually have a
--   meaningful order or sequence of important content changes. (Since:
--   2.12)
RoleMarquee :: Role

-- | A text widget or container that holds a mathematical expression.
--   (Since: 2.12)
RoleMath :: Role

-- | A widget whose purpose is to display a rating, such as the number of
--   stars associated with a song in a media player. Objects of this role
--   should also implement AtkValue. (Since: 2.12)
RoleRating :: Role

-- | An object containing a numerical counter which indicates an amount of
--   elapsed time from a start point, or the time remaining until an end
--   point. (Since: 2.12)
RoleTimer :: Role

-- | An object that represents a list of term-value groups. A term-value
--   group represents a individual description and consist of one or more
--   names (ATK_ROLE_DESCRIPTION_TERM) followed by one or more values
--   (ATK_ROLE_DESCRIPTION_VALUE). For each list, there should not be more
--   than one group with the same term name. (Since: 2.12)
RoleDescriptionList :: Role

-- | An object that represents a term or phrase with a corresponding
--   definition. (Since: 2.12)
RoleDescriptionTerm :: Role

-- | An object that represents the description, definition or value of a
--   term. (Since: 2.12)
RoleDescriptionValue :: Role

-- | A generic non-container object whose purpose is to display a brief
--   amount of information to the user and whose role is known by the
--   implementor but lacks semantic value for the user. Examples in which
--   RoleStatic is appropriate include the message displayed in a
--   message box and an image used as an alternative means to display text.
--   RoleStatic should not be applied to widgets which are
--   traditionally interactive, objects which display a significant amount
--   of content, or any object which has an accessible relation pointing to
--   another object. Implementors should expose the displayed information
--   through the accessible name of the object. If doing so seems
--   inappropriate, it may indicate that a different role should be used.
--   For labels which describe another widget, see RoleLabel. For
--   text views, see RoleText. For generic containers, see
--   RolePanel. For objects whose role is not known by the
--   implementor, see RoleUnknown. (Since: 2.16)
RoleStatic :: Role

-- | An object that represents a mathematical fraction. (Since: 2.16)
RoleMathFraction :: Role

-- | An object that represents a mathematical expression displayed with a
--   radical. (Since: 2.16)
RoleMathRoot :: Role

-- | An object that contains text that is displayed as a subscript. (Since:
--   2.16)
RoleSubscript :: Role

-- | An object that contains text that is displayed as a superscript.
--   (Since: 2.16)
RoleSuperscript :: Role

-- | An object that contains the text of a footnote. (Since: 2.26)
RoleFootnote :: Role

-- | Content previously deleted or proposed to be deleted, e.g. in revision
--   history or a content view providing suggestions from reviewers.
--   (Since: 2.34)
RoleContentDeletion :: Role

-- | Content previously inserted or proposed to be inserted, e.g. in
--   revision history or a content view providing suggestions from
--   reviewers. (Since: 2.34)
RoleContentInsertion :: Role

-- | not a valid role, used for finding end of the enumeration
RoleLastDefined :: Role

-- | Catch-all for unknown values
AnotherRole :: Int -> Role

-- | Specifies where an object should be placed on the screen when using
--   scroll_to.
--   
--   Since: 2.30
data ScrollType

-- | Scroll the object vertically and horizontally to the top left corner
--   of the window.
ScrollTypeTopLeft :: ScrollType

-- | Scroll the object vertically and horizontally to the bottom right
--   corner of the window.
ScrollTypeBottomRight :: ScrollType

-- | Scroll the object vertically to the top edge of the window.
ScrollTypeTopEdge :: ScrollType

-- | Scroll the object vertically to the bottom edge of the window.
ScrollTypeBottomEdge :: ScrollType

-- | Scroll the object vertically and horizontally to the left edge of the
--   window.
ScrollTypeLeftEdge :: ScrollType

-- | Scroll the object vertically and horizontally to the right edge of the
--   window.
ScrollTypeRightEdge :: ScrollType

-- | Scroll the object vertically and horizontally so that as much as
--   possible of the object becomes visible. The exact placement is
--   determined by the application.
ScrollTypeAnywhere :: ScrollType

-- | Catch-all for unknown values
AnotherScrollType :: Int -> ScrollType

-- | The possible types of states of an object
data StateType

-- | Indicates an invalid state - probably an error condition.
StateTypeInvalid :: StateType

-- | Indicates a window is currently the active window, or an object is the
--   active subelement within a container or table. ATK_STATE_ACTIVE should
--   not be used for objects which have ATK_STATE_FOCUSABLE or
--   ATK_STATE_SELECTABLE: Those objects should use ATK_STATE_FOCUSED and
--   ATK_STATE_SELECTED respectively. ATK_STATE_ACTIVE is a means to
--   indicate that an object which is not focusable and not selectable is
--   the currently-active item within its parent container.
StateTypeActive :: StateType

-- | Indicates that the object is 'armed', i.e. will be activated by if a
--   pointer button-release event occurs within its bounds. Buttons often
--   enter this state when a pointer click occurs within their bounds, as a
--   precursor to activation. ATK_STATE_ARMED has been deprecated since
--   ATK-2.16 and should not be used in newly-written code.
StateTypeArmed :: StateType

-- | Indicates the current object is busy, i.e. onscreen representation is
--   in the process of changing, or the object is temporarily unavailable
--   for interaction due to activity already in progress. This state may be
--   used by implementors of Document to indicate that content loading is
--   underway. It also may indicate other 'pending' conditions; clients may
--   wish to interrogate this object when the ATK_STATE_BUSY flag is
--   removed.
StateTypeBusy :: StateType

-- | Indicates this object is currently checked, for instance a checkbox is
--   'non-empty'.
StateTypeChecked :: StateType

-- | Indicates that this object no longer has a valid backing widget (for
--   instance, if its peer object has been destroyed)
StateTypeDefunct :: StateType

-- | Indicates that this object can contain text, and that the user can
--   change the textual contents of this object by editing those contents
--   directly. For an object which is expected to be editable due to its
--   type, but which cannot be edited due to the application or platform
--   preventing the user from doing so, that object's StateSet
--   should lack ATK_STATE_EDITABLE and should contain ATK_STATE_READ_ONLY.
StateTypeEditable :: StateType

-- | Indicates that this object is enabled, i.e. that it currently reflects
--   some application state. Objects that are "greyed out" may lack this
--   state, and may lack the STATE_SENSITIVE if direct user interaction
--   cannot cause them to acquire STATE_ENABLED. See also:
--   ATK_STATE_SENSITIVE
StateTypeEnabled :: StateType

-- | Indicates this object allows progressive disclosure of its children
StateTypeExpandable :: StateType

-- | Indicates this object its expanded - see ATK_STATE_EXPANDABLE above
StateTypeExpanded :: StateType

-- | 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
StateTypeFocusable :: StateType

-- | Indicates this object currently has the keyboard focus
StateTypeFocused :: StateType

-- | Indicates the orientation of this object is horizontal; used, for
--   instance, by objects of ATK_ROLE_SCROLL_BAR. For objects where
--   vertical/horizontal orientation is especially meaningful.
StateTypeHorizontal :: StateType

-- | Indicates this object is minimized and is represented only by an icon
StateTypeIconified :: StateType

-- | Indicates something must be done with this object before the user can
--   interact with an object in a different window
StateTypeModal :: StateType

-- | Indicates this (text) object can contain multiple lines of text
StateTypeMultiLine :: StateType

-- | Indicates this object allows more than one of its children to be
--   selected at the same time, or in the case of text objects, that the
--   object supports non-contiguous text selections.
StateTypeMultiselectable :: StateType

-- | Indicates this object paints every pixel within its rectangular
--   region.
StateTypeOpaque :: StateType

-- | Indicates this object is currently pressed.
StateTypePressed :: StateType

-- | Indicates the size of this object is not fixed
StateTypeResizable :: StateType

-- | 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
StateTypeSelectable :: StateType

-- | 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
StateTypeSelected :: StateType

-- | Indicates this object is sensitive, e.g. to user interaction.
--   STATE_SENSITIVE usually accompanies STATE_ENABLED for user-actionable
--   controls, but may be found in the absence of STATE_ENABLED if the
--   current visible state of the control is "disconnected" from the
--   application state. In such cases, direct user interaction can often
--   result in the object gaining STATE_SENSITIVE, for instance if a user
--   makes an explicit selection using an object whose current state is
--   ambiguous or undefined. see STATE_ENABLED,
--   STATE_INDETERMINATE.
StateTypeSensitive :: StateType

-- | Indicates this object, the object's parent, the object's parent's
--   parent, and so on, are all 'shown' to the end-user, i.e. subject to
--   "exposure" if blocking or obscuring objects do not interpose between
--   this object and the top of the window stack.
StateTypeShowing :: StateType

-- | Indicates this (text) object can contain only a single line of text
StateTypeSingleLine :: StateType

-- | Indicates that the information returned for this object may no longer
--   be synchronized with the application state. This is implied if the
--   object has STATE_TRANSIENT, and can also occur towards the end of the
--   object peer's lifecycle. It can also be used to indicate that the
--   index associated with this object has changed since the user accessed
--   the object (in lieu of "index-in-parent-changed" events).
StateTypeStale :: StateType

-- | Indicates this object is transient, i.e. a snapshot which may not emit
--   events when its state changes. Data from objects with
--   ATK_STATE_TRANSIENT should not be cached, since there may be no
--   notification given when the cached data becomes obsolete.
StateTypeTransient :: StateType

-- | Indicates the orientation of this object is vertical
StateTypeVertical :: StateType

-- | Indicates this object is visible, e.g. has been explicitly marked for
--   exposure to the user. **note**: StateTypeVisible is no
--   guarantee that the object is actually unobscured on the screen, only
--   that it is 'potentially' visible, barring obstruction, being scrolled
--   or clipped out of the field of view, or having an ancestor container
--   that has not yet made visible. A widget is potentially onscreen if it
--   has both StateTypeVisible and StateTypeShowing. The
--   absence of StateTypeVisible and StateTypeShowing is
--   semantically equivalent to saying that an object is 'hidden'. See also
--   StateTypeTruncated, which applies if an object with
--   StateTypeVisible and StateTypeShowing set lies within a
--   viewport which means that its contents are clipped, e.g. a truncated
--   spreadsheet cell or an image within a scrolling viewport. Mostly
--   useful for screen-review and magnification algorithms.
StateTypeVisible :: StateType

-- | Indicates that "active-descendant-changed" event is sent when children
--   become 'active' (i.e. are selected or navigated to onscreen). Used to
--   prevent need to enumerate all children in very large containers, like
--   tables. The presence of STATE_MANAGES_DESCENDANTS is an indication to
--   the client. that the children should not, and need not, be enumerated
--   by the client. Objects implementing this state are expected to provide
--   relevant state notifications to listening clients, for instance
--   notifications of visibility changes and activation of their contained
--   child objects, without the client having previously requested
--   references to those children.
StateTypeManagesDescendants :: StateType

-- | Indicates that the value, or some other quantifiable property, of this
--   AtkObject cannot be fully determined. In the case of a large data set
--   in which the total number of items in that set is unknown (e.g. 1 of
--   999+), implementors should expose the currently-known set size (999)
--   along with this state. In the case of a check box, this state should
--   be used to indicate that the check box is a tri-state check box which
--   is currently neither checked nor unchecked.
StateTypeIndeterminate :: StateType

-- | Indicates that an object is truncated, e.g. a text value in a
--   speradsheet cell.
StateTypeTruncated :: StateType

-- | Indicates that explicit user interaction with an object is required by
--   the user interface, e.g. a required field in a "web-form" interface.
StateTypeRequired :: StateType

-- | 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.
StateTypeInvalidEntry :: StateType

-- | Indicates that the object in question implements some form of
--   ¨typeahead¨ or pre-selection behavior whereby entering the first
--   character of one or more sub-elements causes those elements to scroll
--   into view or become selected. Subsequent character input may narrow
--   the selection further as long as one or more sub-elements match the
--   string. This state is normally only useful and encountered on objects
--   that implement Selection. In some cases the typeahead behavior may
--   result in full or partial ¨completion¨ of the data in the input field,
--   in which case these input events may trigger text-changed events from
--   the AtkText interface. This state supplants
--   aTKROLEAUTOCOMPLETE.
StateTypeSupportsAutocompletion :: StateType

-- | 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
--   aTKSTATESELECTABLE, 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.
StateTypeSelectableText :: StateType

-- | 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.
StateTypeDefault :: StateType

-- | 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. **note**: some applications, notably content viewers,
--   may not be able to detect all kinds of animated content. Therefore the
--   absence of this state should not be taken as definitive evidence that
--   the object's visual representation is static; this state is advisory.
StateTypeAnimated :: StateType

-- | Indicates that the object (typically a hyperlink) has already been
--   'activated', and/or its backing data has already been downloaded,
--   rendered, or otherwise "visited".
StateTypeVisited :: StateType

-- | Indicates this object has the potential to be checked, such as a
--   checkbox or toggle-able table cell. since: ATK-2.12
StateTypeCheckable :: StateType

-- | Indicates that the object has a popup context menu or sub-level menu
--   which may or may not be showing. This means that activation renders
--   conditional content. Note that ordinary tooltips are not considered
--   popups in this context. since: ATK-2.12
StateTypeHasPopup :: StateType

-- | Indicates this object has a tooltip. since: ATK-2.16
StateTypeHasTooltip :: StateType

-- | Indicates that a widget which is ENABLED and SENSITIVE has a value
--   which can be read, but not modified, by the user. Note that this state
--   should only be applied to widget types whose value is normally
--   directly user modifiable, such as check boxes, radio buttons, spin
--   buttons, text input fields, and combo boxes, as a means to convey that
--   the expected interaction with that widget is not possible. When the
--   expected interaction with a widget does not include modification by
--   the user, as is the case with labels and containers,
--   ATK_STATE_READ_ONLY should not be applied. See also
--   ATK_STATE_EDITABLE. since: ATK-2-16
StateTypeReadOnly :: StateType

-- | Not a valid state, used for finding end of enumeration
StateTypeLastDefined :: StateType

-- | Catch-all for unknown values
AnotherStateType :: Int -> StateType

-- | Describes the text attributes supported
data TextAttribute

-- | Invalid attribute, like bad spelling or grammar.
TextAttributeInvalid :: TextAttribute

-- | The pixel width of the left margin
TextAttributeLeftMargin :: TextAttribute

-- | The pixel width of the right margin
TextAttributeRightMargin :: TextAttribute

-- | The number of pixels that the text is indented
TextAttributeIndent :: TextAttribute

-- | Either "true" or "false" indicating whether text is visible or not
TextAttributeInvisible :: TextAttribute

-- | Either "true" or "false" indicating whether text is editable or not
TextAttributeEditable :: TextAttribute

-- | Pixels of blank space to leave above each newline-terminated line.
TextAttributePixelsAboveLines :: TextAttribute

-- | Pixels of blank space to leave below each newline-terminated line.
TextAttributePixelsBelowLines :: TextAttribute

-- | Pixels of blank space to leave between wrapped lines inside the same
--   newline-terminated line (paragraph).
TextAttributePixelsInsideWrap :: TextAttribute

-- | "true" or "false" whether to make the background color for each
--   character the height of the highest font used on the current line, or
--   the height of the font used for the current character.
TextAttributeBgFullHeight :: TextAttribute

-- | Number of pixels that the characters are risen above the baseline
TextAttributeRise :: TextAttribute

-- | "none", "single", "double", "low", or "error"
TextAttributeUnderline :: TextAttribute

-- | "true" or "false" whether the text is strikethrough
TextAttributeStrikethrough :: TextAttribute

-- | The size of the characters in points. eg: 10
TextAttributeSize :: TextAttribute

-- | The scale of the characters. The value is a string representation of a
--   double
TextAttributeScale :: TextAttribute

-- | The weight of the characters.
TextAttributeWeight :: TextAttribute

-- | The language used
TextAttributeLanguage :: TextAttribute

-- | The font family name
TextAttributeFamilyName :: TextAttribute

-- | The background color. The value is an RGB value of the format
--   "u,u,u"
TextAttributeBgColor :: TextAttribute

-- | The foreground color. The value is an RGB value of the format
--   "u,u,u"
TextAttributeFgColor :: TextAttribute

-- | "true" if a GdkBitmap is set for stippling the
--   background color.
TextAttributeBgStipple :: TextAttribute

-- | "true" if a GdkBitmap is set for stippling the
--   foreground color.
TextAttributeFgStipple :: TextAttribute

-- | The wrap mode of the text, if any. Values are "none", "char", "word",
--   or "word_char".
TextAttributeWrapMode :: TextAttribute

-- | The direction of the text, if set. Values are "none", "ltr" or "rtl"
TextAttributeDirection :: TextAttribute

-- | The justification of the text, if set. Values are "left", "right",
--   "center" or "fill"
TextAttributeJustification :: TextAttribute

-- | The stretch of the text, if set. Values are "ultra_condensed",
--   "extra_condensed", "condensed", "semi_condensed", "normal",
--   "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded"
TextAttributeStretch :: TextAttribute

-- | The capitalization variant of the text, if set. Values are "normal" or
--   "small_caps"
TextAttributeVariant :: TextAttribute

-- | The slant style of the text, if set. Values are "normal", "oblique" or
--   "italic"
TextAttributeStyle :: TextAttribute

-- | not a valid text attribute, used for finding end of enumeration
TextAttributeLastDefined :: TextAttribute

-- | Catch-all for unknown values
AnotherTextAttribute :: Int -> TextAttribute

-- | Text boundary types used for specifying boundaries for regions of
--   text. This enumeration is deprecated since 2.9.4 and should not be
--   used. Use AtkTextGranularity with
--   atk_text_get_string_at_offset instead.
data TextBoundary

-- | Boundary is the boundary between characters (including non-printing
--   characters)
TextBoundaryChar :: TextBoundary

-- | Boundary is the start (i.e. first character) of a word.
TextBoundaryWordStart :: TextBoundary

-- | Boundary is the end (i.e. last character) of a word.
TextBoundaryWordEnd :: TextBoundary

-- | Boundary is the first character in a sentence.
TextBoundarySentenceStart :: TextBoundary

-- | Boundary is the last (terminal) character in a sentence; in languages
--   which use "sentence stop" punctuation such as English, the boundary is
--   thus the '.', '?', or similar terminal punctuation character.
TextBoundarySentenceEnd :: TextBoundary

-- | Boundary is the initial character of the content or a character
--   immediately following a newline, linefeed, or return character.
TextBoundaryLineStart :: TextBoundary

-- | Boundary is the linefeed, or return character.
TextBoundaryLineEnd :: TextBoundary

-- | Catch-all for unknown values
AnotherTextBoundary :: Int -> TextBoundary

-- | Describes the type of clipping required.
data TextClipType

-- | No clipping to be done
TextClipTypeNone :: TextClipType

-- | Text clipped by min coordinate is omitted
TextClipTypeMin :: TextClipType

-- | Text clipped by max coordinate is omitted
TextClipTypeMax :: TextClipType

-- | Only text fully within mix/max bound is retained
TextClipTypeBoth :: TextClipType

-- | Catch-all for unknown values
AnotherTextClipType :: Int -> TextClipType

-- | Text granularity types used for specifying the granularity of the
--   region of text we are interested in.
data TextGranularity

-- | Granularity is defined by the boundaries between characters (including
--   non-printing characters)
TextGranularityChar :: TextGranularity

-- | Granularity is defined by the boundaries of a word, starting at the
--   beginning of the current word and finishing at the beginning of the
--   following one, if present.
TextGranularityWord :: TextGranularity

-- | Granularity is defined by the boundaries of a sentence, starting at
--   the beginning of the current sentence and finishing at the beginning
--   of the following one, if present.
TextGranularitySentence :: TextGranularity

-- | Granularity is defined by the boundaries of a line, starting at the
--   beginning of the current line and finishing at the beginning of the
--   following one, if present.
TextGranularityLine :: TextGranularity

-- | Granularity is defined by the boundaries of a paragraph, starting at
--   the beginning of the current paragraph and finishing at the beginning
--   of the following one, if present.
TextGranularityParagraph :: TextGranularity

-- | Catch-all for unknown values
AnotherTextGranularity :: Int -> TextGranularity

-- | Default types for a given value. Those are defined in order to easily
--   get localized strings to describe a given value or a given subrange,
--   using valueTypeGetLocalizedName.
data ValueType

-- | No description available in the introspection data.
ValueTypeVeryWeak :: ValueType

-- | No description available in the introspection data.
ValueTypeWeak :: ValueType

-- | No description available in the introspection data.
ValueTypeAcceptable :: ValueType

-- | No description available in the introspection data.
ValueTypeStrong :: ValueType

-- | No description available in the introspection data.
ValueTypeVeryStrong :: ValueType

-- | No description available in the introspection data.
ValueTypeVeryLow :: ValueType

-- | No description available in the introspection data.
ValueTypeLow :: ValueType

-- | No description available in the introspection data.
ValueTypeMedium :: ValueType

-- | No description available in the introspection data.
ValueTypeHigh :: ValueType

-- | No description available in the introspection data.
ValueTypeVeryHigh :: ValueType

-- | No description available in the introspection data.
ValueTypeVeryBad :: ValueType

-- | No description available in the introspection data.
ValueTypeBad :: ValueType

-- | No description available in the introspection data.
ValueTypeGood :: ValueType

-- | No description available in the introspection data.
ValueTypeVeryGood :: ValueType

-- | No description available in the introspection data.
ValueTypeBest :: ValueType

-- | No description available in the introspection data.
ValueTypeLastDefined :: ValueType

-- | Catch-all for unknown values
AnotherValueType :: Int -> ValueType
instance GHC.Classes.Eq GI.Atk.Enums.CoordType
instance GHC.Show.Show GI.Atk.Enums.CoordType
instance GHC.Classes.Eq GI.Atk.Enums.KeyEventType
instance GHC.Show.Show GI.Atk.Enums.KeyEventType
instance GHC.Classes.Eq GI.Atk.Enums.Layer
instance GHC.Show.Show GI.Atk.Enums.Layer
instance GHC.Classes.Eq GI.Atk.Enums.RelationType
instance GHC.Show.Show GI.Atk.Enums.RelationType
instance GHC.Classes.Eq GI.Atk.Enums.Role
instance GHC.Show.Show GI.Atk.Enums.Role
instance GHC.Classes.Eq GI.Atk.Enums.ScrollType
instance GHC.Show.Show GI.Atk.Enums.ScrollType
instance GHC.Classes.Eq GI.Atk.Enums.StateType
instance GHC.Show.Show GI.Atk.Enums.StateType
instance GHC.Classes.Eq GI.Atk.Enums.TextAttribute
instance GHC.Show.Show GI.Atk.Enums.TextAttribute
instance GHC.Classes.Eq GI.Atk.Enums.TextBoundary
instance GHC.Show.Show GI.Atk.Enums.TextBoundary
instance GHC.Classes.Eq GI.Atk.Enums.TextClipType
instance GHC.Show.Show GI.Atk.Enums.TextClipType
instance GHC.Classes.Eq GI.Atk.Enums.TextGranularity
instance GHC.Show.Show GI.Atk.Enums.TextGranularity
instance GHC.Classes.Eq GI.Atk.Enums.ValueType
instance GHC.Show.Show GI.Atk.Enums.ValueType
instance GHC.Enum.Enum GI.Atk.Enums.CoordType
instance GHC.Classes.Ord GI.Atk.Enums.CoordType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.CoordType
instance GHC.Enum.Enum GI.Atk.Enums.KeyEventType
instance GHC.Classes.Ord GI.Atk.Enums.KeyEventType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.KeyEventType
instance GHC.Enum.Enum GI.Atk.Enums.Layer
instance GHC.Classes.Ord GI.Atk.Enums.Layer
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.Layer
instance GHC.Enum.Enum GI.Atk.Enums.RelationType
instance GHC.Classes.Ord GI.Atk.Enums.RelationType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.RelationType
instance GHC.Enum.Enum GI.Atk.Enums.Role
instance GHC.Classes.Ord GI.Atk.Enums.Role
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.Role
instance GHC.Enum.Enum GI.Atk.Enums.ScrollType
instance GHC.Classes.Ord GI.Atk.Enums.ScrollType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.ScrollType
instance GHC.Enum.Enum GI.Atk.Enums.StateType
instance GHC.Classes.Ord GI.Atk.Enums.StateType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.StateType
instance GHC.Enum.Enum GI.Atk.Enums.TextAttribute
instance GHC.Classes.Ord GI.Atk.Enums.TextAttribute
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.TextAttribute
instance GHC.Enum.Enum GI.Atk.Enums.TextBoundary
instance GHC.Classes.Ord GI.Atk.Enums.TextBoundary
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.TextBoundary
instance GHC.Enum.Enum GI.Atk.Enums.TextClipType
instance GHC.Classes.Ord GI.Atk.Enums.TextClipType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.TextClipType
instance GHC.Enum.Enum GI.Atk.Enums.TextGranularity
instance GHC.Classes.Ord GI.Atk.Enums.TextGranularity
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.TextGranularity
instance GHC.Enum.Enum GI.Atk.Enums.ValueType
instance GHC.Classes.Ord GI.Atk.Enums.ValueType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.Atk.Enums.ValueType

module GI.Atk.Flags

-- | Describes the type of link
data HyperlinkStateFlags

-- | Link is inline
HyperlinkStateFlagsInline :: HyperlinkStateFlags

-- | Catch-all for unknown values
AnotherHyperlinkStateFlags :: Int -> HyperlinkStateFlags
instance GHC.Classes.Eq GI.Atk.Flags.HyperlinkStateFlags
instance GHC.Show.Show GI.Atk.Flags.HyperlinkStateFlags
instance GHC.Enum.Enum GI.Atk.Flags.HyperlinkStateFlags
instance GHC.Classes.Ord GI.Atk.Flags.HyperlinkStateFlags
instance Data.GI.Base.BasicTypes.BoxedFlags GI.Atk.Flags.HyperlinkStateFlags
instance Data.GI.Base.BasicTypes.IsGFlag GI.Atk.Flags.HyperlinkStateFlags

-- | Action should be implemented by instances of Object
--   classes with which the user can interact directly, i.e. buttons,
--   checkboxes, scrollbars, e.g. components which are not "passive"
--   providers of UI information.
--   
--   Exceptions: when the user interaction is already covered by another
--   appropriate interface such as EditableText (insert/delete text,
--   etc.) or Value (set value) then these actions should not be
--   exposed by Action as well.
--   
--   Though most UI interactions on components should be invocable via
--   keyboard as well as mouse, there will generally be a close mapping
--   between "mouse actions" that are possible on a component and the
--   AtkActions. Where mouse and keyboard actions are redundant in effect,
--   Action should expose only one action rather than exposing
--   redundant actions if possible. By convention we have been using "mouse
--   centric" terminology for Action names.
module GI.Atk.Interfaces.Action

-- | Memory-managed wrapper type.
newtype Action
Action :: ManagedPtr Action -> Action

-- | A convenience alias for Nothing :: Maybe Action.
noAction :: Maybe Action

-- | Type class for types which implement Action.
class ManagedPtrNewtype a => IsAction a

-- | Perform the specified action on the object.
actionDoAction :: (HasCallStack, MonadIO m, IsAction a) => a -> Int32 -> m Bool

-- | Returns a description of the specified action of the object.
actionGetDescription :: (HasCallStack, MonadIO m, IsAction a) => a -> Int32 -> m (Maybe Text)

-- | Gets the keybinding which can be used to activate this action, if one
--   exists. The string returned should contain localized, human-readable,
--   key sequences as they would appear when displayed on screen. It must
--   be in the format "mnemonic;sequence;shortcut".
--   
--   
--   
- The mnemonic key activates the object if it is presently enabled
--   onscreen. This typically corresponds to the underlined letter within
--   the widget. Example: "n" in a traditional "New..." menu item or the
--   "a" in "Apply" for a button.
--   
- The sequence is the full list of keys which invoke the action even
--   if the relevant element is not currently shown on screen. For
--   instance, for a menu item the sequence is the keybindings used to open
--   the parent menus before invoking. The sequence string is
--   colon-delimited. Example: "Alt+F:N" in a traditional "New..." menu
--   item.
--   
- The shortcut, if it exists, will invoke the same action without
--   showing the component or its enclosing menus or dialogs. Example:
--   "Ctrl+N" in a traditional "New..." menu item.
--   
--   
--   Example: For a traditional "New..." menu item, the expected return
--   value would be: "N;Alt+F:N;Ctrl+N" for the English locale and
--   "N;Alt+D:N;Strg+N" for the German locale. If, hypothetically, this
--   menu item lacked a mnemonic, it would be represented by ";;Ctrl+N" and
--   ";;Strg+N" respectively.
actionGetKeybinding :: (HasCallStack, MonadIO m, IsAction a) => a -> Int32 -> m (Maybe Text)

-- | Returns the localized name of the specified action of the object.
actionGetLocalizedName :: (HasCallStack, MonadIO m, IsAction a) => a -> Int32 -> m (Maybe Text)

-- | Gets the number of accessible actions available on the object. If
--   there are more than one, the first one is considered the "default"
--   action of the object.
actionGetNActions :: (HasCallStack, MonadIO m, IsAction a) => a -> m Int32

-- | Returns a non-localized string naming the specified action of the
--   object. This name is generally not descriptive of the end result of
--   the action, but instead names the 'interaction type' which the object
--   supports. By convention, the above strings should be used to represent
--   the actions which correspond to the common point-and-click interaction
--   techniques of the same name: i.e. "click", "press", "release", "drag",
--   "drop", "popup", etc. The "popup" action should be used to pop up a
--   context menu for the object, if one exists.
--   
--   For technical reasons, some toolkits cannot guarantee that the
--   reported action is actually 'bound' to a nontrivial user event; i.e.
--   the result of some actions via actionDoAction may be NIL.
actionGetName :: (HasCallStack, MonadIO m, IsAction a) => a -> Int32 -> m (Maybe Text)

-- | Sets a description of the specified action of the object.
actionSetDescription :: (HasCallStack, MonadIO m, IsAction a) => a -> Int32 -> Text -> m Bool
instance GI.Atk.Interfaces.Action.IsAction GI.Atk.Interfaces.Action.Action
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Interfaces.Action.Action

-- | The AtkDocument interface should be supported by any object whose
--   content is a representation or view of a document. The AtkDocument
--   interface should appear on the toplevel container for the document
--   content; however AtkDocument instances may be nested (i.e. an
--   AtkDocument may be a descendant of another AtkDocument) in those cases
--   where one document contains "embedded content" which can reasonably be
--   considered a document in its own right.
module GI.Atk.Interfaces.Document

-- | Memory-managed wrapper type.
newtype Document
Document :: ManagedPtr Document -> Document

-- | A convenience alias for Nothing :: Maybe
--   Document.
noDocument :: Maybe Document

-- | Type class for types which can be safely cast to Document, for
--   instance with toDocument.
class GObject o => IsDocument o

-- | Cast to Document, for types for which this is known to be safe.
--   For general casts, use castTo.
toDocument :: (MonadIO m, IsDocument o) => o -> m Document

-- | Retrieves the value of the given attributeName inside
--   document.
--   
--   Since: 1.12
documentGetAttributeValue :: (HasCallStack, MonadIO m, IsDocument a) => a -> Text -> m (Maybe Text)

-- | Gets an AtkAttributeSet which describes document-wide attributes as
--   name-value pairs.
--   
--   Since: 1.12
documentGetAttributes :: (HasCallStack, MonadIO m, IsDocument a) => a -> m [Ptr ()]

-- | Retrieves the current page number inside document.
--   
--   Since: 2.12
documentGetCurrentPageNumber :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Int32

-- | Gets a gpointer that points to an instance of the DOM.
--   It is up to the caller to check atk_document_get_type to determine how
--   to cast this pointer.

-- | Deprecated: Since 2.12. document is already a
--   representation ofthe document. Use it directly, or one of its
--   children, as aninstance of the DOM.
documentGetDocument :: (HasCallStack, MonadIO m, IsDocument a) => a -> m (Ptr ())

-- | Gets a string indicating the document type.

-- | Deprecated: Since 2.12. Please use documentGetAttributes
--   toask for the document type if it applies.
documentGetDocumentType :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Text

-- | Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of
--   the content of this document instance. Individual text substrings or
--   images within this document may have a different locale, see
--   atk_text_get_attributes and atk_image_get_image_locale.

-- | Deprecated: (Since version 2.7.90)Please use
--   objectGetObjectLocale instead.
documentGetLocale :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Text

-- | Retrieves the total number of pages inside document.
--   
--   Since: 2.12
documentGetPageCount :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Int32

-- | Sets the value for the given attributeName inside
--   document.
--   
--   Since: 1.12
documentSetAttributeValue :: (HasCallStack, MonadIO m, IsDocument a) => a -> Text -> Text -> m Bool

-- | Type for the callback on the (unwrapped) C side.
type C_DocumentLoadCompleteCallback = Ptr () -> Ptr () -> IO ()

-- | The 'load-complete' signal is emitted when a pending load of a static
--   document has completed. This signal is to be expected by ATK clients
--   if and when AtkDocument implementors expose ATK_STATE_BUSY. If the
--   state of an AtkObject which implements AtkDocument does not include
--   ATK_STATE_BUSY, it should be safe for clients to assume that the
--   AtkDocument's static contents are fully loaded into the container.
--   (Dynamic document contents should be exposed via other signals.)
type DocumentLoadCompleteCallback = IO ()

-- | Connect a signal handler for the “load-complete” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after document #loadComplete callback
--   
afterDocumentLoadComplete :: (IsDocument a, MonadIO m) => a -> DocumentLoadCompleteCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_DocumentLoadComplete :: DocumentLoadCompleteCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_DocumentLoadCompleteCallback.
mk_DocumentLoadCompleteCallback :: C_DocumentLoadCompleteCallback -> IO (FunPtr C_DocumentLoadCompleteCallback)

-- | A convenience synonym for Nothing :: Maybe
--   DocumentLoadCompleteCallback.
noDocumentLoadCompleteCallback :: Maybe DocumentLoadCompleteCallback

-- | Connect a signal handler for the “load-complete” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on document #loadComplete callback
--   
onDocumentLoadComplete :: (IsDocument a, MonadIO m) => a -> DocumentLoadCompleteCallback -> m SignalHandlerId

-- | Wrap a DocumentLoadCompleteCallback into a
--   C_DocumentLoadCompleteCallback.
wrap_DocumentLoadCompleteCallback :: DocumentLoadCompleteCallback -> C_DocumentLoadCompleteCallback

-- | Type for the callback on the (unwrapped) C side.
type C_DocumentLoadStoppedCallback = Ptr () -> Ptr () -> IO ()

-- | The 'load-stopped' signal is emitted when a pending load of document
--   contents is cancelled, paused, or otherwise interrupted by the user or
--   application logic. It should not however be emitted while waiting for
--   a resource (for instance while blocking on a file or network read)
--   unless a user-significant timeout has occurred.
type DocumentLoadStoppedCallback = IO ()

-- | Connect a signal handler for the “load-stopped” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after document #loadStopped callback
--   
afterDocumentLoadStopped :: (IsDocument a, MonadIO m) => a -> DocumentLoadStoppedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_DocumentLoadStopped :: DocumentLoadStoppedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_DocumentLoadStoppedCallback.
mk_DocumentLoadStoppedCallback :: C_DocumentLoadStoppedCallback -> IO (FunPtr C_DocumentLoadStoppedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   DocumentLoadStoppedCallback.
noDocumentLoadStoppedCallback :: Maybe DocumentLoadStoppedCallback

-- | Connect a signal handler for the “load-stopped” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on document #loadStopped callback
--   
onDocumentLoadStopped :: (IsDocument a, MonadIO m) => a -> DocumentLoadStoppedCallback -> m SignalHandlerId

-- | Wrap a DocumentLoadStoppedCallback into a
--   C_DocumentLoadStoppedCallback.
wrap_DocumentLoadStoppedCallback :: DocumentLoadStoppedCallback -> C_DocumentLoadStoppedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_DocumentPageChangedCallback = Ptr () -> Int32 -> Ptr () -> IO ()

-- | The 'page-changed' signal is emitted when the current page of a
--   document changes, e.g. pressing page up/down in a document viewer.
--   
--   Since: 2.12
type DocumentPageChangedCallback = Int32 " /@pageNumber@/: the new page number. If this value is unknown or not applicable, -1 should be provided. " -> IO ()

-- | Connect a signal handler for the “page-changed” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after document #pageChanged callback
--   
afterDocumentPageChanged :: (IsDocument a, MonadIO m) => a -> DocumentPageChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_DocumentPageChanged :: DocumentPageChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_DocumentPageChangedCallback.
mk_DocumentPageChangedCallback :: C_DocumentPageChangedCallback -> IO (FunPtr C_DocumentPageChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   DocumentPageChangedCallback.
noDocumentPageChangedCallback :: Maybe DocumentPageChangedCallback

-- | Connect a signal handler for the “page-changed” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on document #pageChanged callback
--   
onDocumentPageChanged :: (IsDocument a, MonadIO m) => a -> DocumentPageChangedCallback -> m SignalHandlerId

-- | Wrap a DocumentPageChangedCallback into a
--   C_DocumentPageChangedCallback.
wrap_DocumentPageChangedCallback :: DocumentPageChangedCallback -> C_DocumentPageChangedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_DocumentReloadCallback = Ptr () -> Ptr () -> IO ()

-- | The 'reload' signal is emitted when the contents of a document is
--   refreshed from its source. Once 'reload' has been emitted, a matching
--   'load-complete' or 'load-stopped' signal should follow, which clients
--   may await before interrogating ATK for the latest document content.
type DocumentReloadCallback = IO ()

-- | Connect a signal handler for the “reload” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after document #reload callback
--   
afterDocumentReload :: (IsDocument a, MonadIO m) => a -> DocumentReloadCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_DocumentReload :: DocumentReloadCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_DocumentReloadCallback.
mk_DocumentReloadCallback :: C_DocumentReloadCallback -> IO (FunPtr C_DocumentReloadCallback)

-- | A convenience synonym for Nothing :: Maybe
--   DocumentReloadCallback.
noDocumentReloadCallback :: Maybe DocumentReloadCallback

-- | Connect a signal handler for the “reload” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on document #reload callback
--   
onDocumentReload :: (IsDocument a, MonadIO m) => a -> DocumentReloadCallback -> m SignalHandlerId

-- | Wrap a DocumentReloadCallback into a
--   C_DocumentReloadCallback.
wrap_DocumentReloadCallback :: DocumentReloadCallback -> C_DocumentReloadCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Document.Document a) => GI.Atk.Interfaces.Document.IsDocument a
instance GI.Atk.Interfaces.Document.IsDocument GI.Atk.Interfaces.Document.Document
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Document.Document
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Document.Document

-- | EditableText should be implemented by UI components which
--   contain text which the user can edit, via the Object
--   corresponding to that component (see Object).
--   
--   EditableText is a subclass of Text, and as such, an
--   object which implements EditableText is by definition an
--   Text implementor as well.
--   
--   See also: Text
module GI.Atk.Interfaces.EditableText

-- | Memory-managed wrapper type.
newtype EditableText
EditableText :: ManagedPtr EditableText -> EditableText

-- | A convenience alias for Nothing :: Maybe
--   EditableText.
noEditableText :: Maybe EditableText

-- | Type class for types which implement EditableText.
class ManagedPtrNewtype a => IsEditableText a

-- | Copy text from startPos up to, but not including
--   endPos to the clipboard.
editableTextCopyText :: (HasCallStack, MonadIO m, IsEditableText a) => a -> Int32 -> Int32 -> m ()

-- | Copy text from startPos up to, but not including
--   endPos to the clipboard and then delete from the
--   widget.
editableTextCutText :: (HasCallStack, MonadIO m, IsEditableText a) => a -> Int32 -> Int32 -> m ()

-- | Delete text startPos up to, but not including
--   endPos.
editableTextDeleteText :: (HasCallStack, MonadIO m, IsEditableText a) => a -> Int32 -> Int32 -> m ()

-- | Insert text at a given position.
editableTextInsertText :: (HasCallStack, MonadIO m, IsEditableText a) => a -> Text -> Int32 -> Int32 -> m ()

-- | Paste text from clipboard to specified position.
editableTextPasteText :: (HasCallStack, MonadIO m, IsEditableText a) => a -> Int32 -> m ()

-- | Sets the attributes for a specified range. See the ATK_ATTRIBUTE
--   macros (such as ATK_ATTRIBUTE_LEFT_MARGIN) for
--   examples of attributes that can be set. Note that other attributes
--   that do not have corresponding ATK_ATTRIBUTE macros may also be set
--   for certain text widgets.
editableTextSetRunAttributes :: (HasCallStack, MonadIO m, IsEditableText a) => a -> [Ptr ()] -> Int32 -> Int32 -> m Bool

-- | Set text contents of text.
editableTextSetTextContents :: (HasCallStack, MonadIO m, IsEditableText a) => a -> Text -> m ()
instance GI.Atk.Interfaces.EditableText.IsEditableText GI.Atk.Interfaces.EditableText.EditableText
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Interfaces.EditableText.EditableText

-- | Image should be implemented by Object subtypes on behalf
--   of components which display image/pixmap information onscreen, and
--   which provide information (other than just widget borders, etc.) via
--   that image content. For instance, icons, buttons with icons, toolbar
--   elements, and image viewing panes typically should implement
--   Image.
--   
--   Image primarily provides two types of information: coordinate
--   information (useful for screen review mode of screenreaders, and for
--   use by onscreen magnifiers), and descriptive information. The
--   descriptive information is provided for alternative, text-only
--   presentation of the most significant information present in the image.
module GI.Atk.Interfaces.Image

-- | Memory-managed wrapper type.
newtype Image
Image :: ManagedPtr Image -> Image

-- | A convenience alias for Nothing :: Maybe Image.
noImage :: Maybe Image

-- | Type class for types which implement Image.
class ManagedPtrNewtype a => IsImage a

-- | Get a textual description of this image.
imageGetImageDescription :: (HasCallStack, MonadIO m, IsImage a) => a -> m Text

-- | Retrieves the locale identifier associated to the Image.
--   
--   Since: 1.12
imageGetImageLocale :: (HasCallStack, MonadIO m, IsImage a) => a -> m (Maybe Text)

-- | Gets the position of the image in the form of a point specifying the
--   images top-left corner.
imageGetImagePosition :: (HasCallStack, MonadIO m, IsImage a) => a -> CoordType -> m (Int32, Int32)

-- | Get the width and height in pixels for the specified image. The values
--   of width and height are returned as -1
--   if the values cannot be obtained (for instance, if the object is not
--   onscreen).
imageGetImageSize :: (HasCallStack, MonadIO m, IsImage a) => a -> m (Int32, Int32)

-- | Sets the textual description for this image.
imageSetImageDescription :: (HasCallStack, MonadIO m, IsImage a) => a -> Text -> m Bool
instance GI.Atk.Interfaces.Image.IsImage GI.Atk.Interfaces.Image.Image
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Interfaces.Image.Image

-- | The AtkImplementor interface is implemented by objects for which
--   AtkObject peers may be obtained via calls to
--   iface->(ref_accessible)(implementor);
module GI.Atk.Interfaces.ImplementorIface

-- | Memory-managed wrapper type.
newtype ImplementorIface
ImplementorIface :: ManagedPtr ImplementorIface -> ImplementorIface

-- | A convenience alias for Nothing :: Maybe
--   ImplementorIface.
noImplementorIface :: Maybe ImplementorIface

-- | Type class for types which implement ImplementorIface.
class ManagedPtrNewtype a => IsImplementorIface a
instance GI.Atk.Interfaces.ImplementorIface.IsImplementorIface GI.Atk.Interfaces.ImplementorIface.ImplementorIface
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Interfaces.ImplementorIface.ImplementorIface

-- | An interface whereby an object allows its backing content to be
--   streamed to clients. Typical implementors would be images or icons,
--   HTML content, or multimedia display/rendering widgets.
--   
--   Negotiation of content type is allowed. Clients may examine the
--   backing data and transform, convert, or parse the content in order to
--   present it in an alternate form to end-users.
--   
--   The AtkStreamableContent interface is particularly useful for saving,
--   printing, or post-processing entire documents, or for persisting
--   alternate views of a document. If document content itself is being
--   serialized, stored, or converted, then use of the AtkStreamableContent
--   interface can help address performance issues. Unlike most ATK
--   interfaces, this interface is not strongly tied to the current
--   user-agent view of the a particular document, but may in some cases
--   give access to the underlying model data.
module GI.Atk.Interfaces.StreamableContent

-- | Memory-managed wrapper type.
newtype StreamableContent
StreamableContent :: ManagedPtr StreamableContent -> StreamableContent

-- | A convenience alias for Nothing :: Maybe
--   StreamableContent.
noStreamableContent :: Maybe StreamableContent

-- | Type class for types which implement StreamableContent.
class ManagedPtrNewtype a => IsStreamableContent a

-- | Gets the character string of the specified mime type. The first mime
--   type is at position 0, the second at position 1, and so on.
streamableContentGetMimeType :: (HasCallStack, MonadIO m, IsStreamableContent a) => a -> Int32 -> m Text

-- | Gets the number of mime types supported by this object.
streamableContentGetNMimeTypes :: (HasCallStack, MonadIO m, IsStreamableContent a) => a -> m Int32

-- | Gets the content in the specified mime type.
streamableContentGetStream :: (HasCallStack, MonadIO m, IsStreamableContent a) => a -> Text -> m IOChannel

-- | Get a string representing a URI in IETF standard format (see
--   http://www.ietf.org/rfc/rfc2396.txt) from which the object's content
--   may be streamed in the specified mime-type, if one is available. If
--   mime_type is NULL, the URI for the default (and possibly only)
--   mime-type is returned.
--   
--   Note that it is possible for get_uri to return NULL but for get_stream
--   to work nonetheless, since not all GIOChannels connect to URIs.
--   
--   Since: 1.12
streamableContentGetUri :: (HasCallStack, MonadIO m, IsStreamableContent a) => a -> Text -> m (Maybe Text)
instance GI.Atk.Interfaces.StreamableContent.IsStreamableContent GI.Atk.Interfaces.StreamableContent.StreamableContent
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Interfaces.StreamableContent.StreamableContent

-- | An interface used for objects which implement linking between multiple
--   resource or content locations, or multiple 'markers' within a single
--   document. A Hypertext instance is associated with one or more
--   Hyperlinks, which are associated with particular offsets within the
--   Hypertext's included content. While this interface is derived from
--   Text, there is no requirement that Hypertext instances have textual
--   content; they may implement Image as well, and Hyperlinks need not
--   have non-zero text offsets.
module GI.Atk.Interfaces.Hypertext

-- | Memory-managed wrapper type.
newtype Hypertext
Hypertext :: ManagedPtr Hypertext -> Hypertext

-- | A convenience alias for Nothing :: Maybe
--   Hypertext.
noHypertext :: Maybe Hypertext

-- | Type class for types which can be safely cast to Hypertext, for
--   instance with toHypertext.
class GObject o => IsHypertext o

-- | Cast to Hypertext, for types for which this is known to be
--   safe. For general casts, use castTo.
toHypertext :: (MonadIO m, IsHypertext o) => o -> m Hypertext

-- | Gets the link in this hypertext document at index
--   linkIndex
hypertextGetLink :: (HasCallStack, MonadIO m, IsHypertext a) => a -> Int32 -> m Hyperlink

-- | Gets the index into the array of hyperlinks that is associated with
--   the character specified by charIndex.
hypertextGetLinkIndex :: (HasCallStack, MonadIO m, IsHypertext a) => a -> Int32 -> m Int32

-- | Gets the number of links within this hypertext document.
hypertextGetNLinks :: (HasCallStack, MonadIO m, IsHypertext a) => a -> m Int32

-- | Type for the callback on the (unwrapped) C side.
type C_HypertextLinkSelectedCallback = Ptr () -> Int32 -> Ptr () -> IO ()

-- | The "link-selected" signal is emitted by an AtkHyperText object when
--   one of the hyperlinks associated with the object is selected.
type HypertextLinkSelectedCallback = Int32 " /@arg1@/: the index of the hyperlink which is selected " -> IO ()

-- | Connect a signal handler for the “link-selected” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after hypertext #linkSelected callback
--   
afterHypertextLinkSelected :: (IsHypertext a, MonadIO m) => a -> HypertextLinkSelectedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_HypertextLinkSelected :: HypertextLinkSelectedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_HypertextLinkSelectedCallback.
mk_HypertextLinkSelectedCallback :: C_HypertextLinkSelectedCallback -> IO (FunPtr C_HypertextLinkSelectedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   HypertextLinkSelectedCallback.
noHypertextLinkSelectedCallback :: Maybe HypertextLinkSelectedCallback

-- | Connect a signal handler for the “link-selected” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on hypertext #linkSelected callback
--   
onHypertextLinkSelected :: (IsHypertext a, MonadIO m) => a -> HypertextLinkSelectedCallback -> m SignalHandlerId

-- | Wrap a HypertextLinkSelectedCallback into a
--   C_HypertextLinkSelectedCallback.
wrap_HypertextLinkSelectedCallback :: HypertextLinkSelectedCallback -> C_HypertextLinkSelectedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Hypertext.Hypertext a) => GI.Atk.Interfaces.Hypertext.IsHypertext a
instance GI.Atk.Interfaces.Hypertext.IsHypertext GI.Atk.Interfaces.Hypertext.Hypertext
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Hypertext.Hypertext
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Hypertext.Hypertext

-- | AtkHyperlinkImpl allows AtkObjects to refer to their associated
--   AtkHyperlink instance, if one exists. AtkHyperlinkImpl differs from
--   AtkHyperlink in that AtkHyperlinkImpl is an interface, whereas
--   AtkHyperlink is a object type. The AtkHyperlinkImpl interface allows a
--   client to query an AtkObject for the availability of an associated
--   AtkHyperlink instance, and obtain that instance. It is thus
--   particularly useful in cases where embedded content or inline content
--   within a text object is present, since the embedding text object
--   implements AtkHypertext and the inline/embedded objects are exposed as
--   children which implement AtkHyperlinkImpl, in addition to their being
--   obtainable via AtkHypertext:getLink followed by
--   AtkHyperlink:getObject.
--   
--   The AtkHyperlinkImpl interface should be supported by objects exposed
--   within the hierarchy as children of an AtkHypertext container which
--   correspond to "links" or embedded content within the text. HTML
--   anchors are not, for instance, normally exposed this way, but embedded
--   images and components which appear inline in the content of a text
--   object are. The AtkHyperlinkIface interface allows a means of
--   determining which children are hyperlinks in this sense of the word,
--   and for obtaining their corresponding AtkHyperlink object, from which
--   the embedding range, URI, etc. can be obtained.
--   
--   To some extent this interface exists because, for historical reasons,
--   AtkHyperlink was defined as an object type, not an interface. Thus, in
--   order to interact with AtkObjects via AtkHyperlink semantics, a new
--   interface was required.
module GI.Atk.Interfaces.HyperlinkImpl

-- | Memory-managed wrapper type.
newtype HyperlinkImpl
HyperlinkImpl :: ManagedPtr HyperlinkImpl -> HyperlinkImpl

-- | A convenience alias for Nothing :: Maybe
--   HyperlinkImpl.
noHyperlinkImpl :: Maybe HyperlinkImpl

-- | Type class for types which implement HyperlinkImpl.
class ManagedPtrNewtype a => IsHyperlinkImpl a

-- | Gets the hyperlink associated with this object.
--   
--   Since: 1.12
hyperlinkImplGetHyperlink :: (HasCallStack, MonadIO m, IsHyperlinkImpl a) => a -> m Hyperlink
instance GI.Atk.Interfaces.HyperlinkImpl.IsHyperlinkImpl GI.Atk.Interfaces.HyperlinkImpl.HyperlinkImpl
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Interfaces.HyperlinkImpl.HyperlinkImpl

-- | A set of utility functions for thread locking. This interface and all
--   his related methods are deprecated since 2.12.
module GI.Atk.Objects.Misc

-- | Memory-managed wrapper type.
newtype Misc
Misc :: ManagedPtr Misc -> Misc

-- | Type class for types which can be safely cast to Misc, for
--   instance with toMisc.
class GObject o => IsMisc o

-- | Cast to Misc, for types for which this is known to be safe. For
--   general casts, use castTo.
toMisc :: (MonadIO m, IsMisc o) => o -> m Misc

-- | A convenience alias for Nothing :: Maybe Misc.
noMisc :: Maybe Misc

-- | Obtain the singleton instance of AtkMisc for this application.
--   
--   Since: 1.13

-- | Deprecated: Since 2.12.
miscGetInstance :: (HasCallStack, MonadIO m) => m Misc

-- | Take the thread mutex for the GUI toolkit, if one exists. (This method
--   is implemented by the toolkit ATK implementation layer; for instance,
--   for GTK+, GAIL implements this via GDK_THREADS_ENTER).
--   
--   Since: 1.13

-- | Deprecated: Since 2.12.
miscThreadsEnter :: (HasCallStack, MonadIO m, IsMisc a) => a -> m ()

-- | Release the thread mutex for the GUI toolkit, if one exists. This
--   method, and atk_misc_threads_enter, are needed in some situations by
--   threaded application code which services ATK requests, since
--   fulfilling ATK requests often requires calling into the GUI toolkit.
--   If a long-running or potentially blocking call takes place inside such
--   a block, it should be bracketed by
--   atk_misc_threads_leave/atk_misc_threads_enter calls. (This method is
--   implemented by the toolkit ATK implementation layer; for instance, for
--   GTK+, GAIL implements this via GDK_THREADS_LEAVE).
--   
--   Since: 1.13

-- | Deprecated: Since 2.12.
miscThreadsLeave :: (HasCallStack, MonadIO m, IsMisc a) => a -> m ()
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Misc.Misc a) => GI.Atk.Objects.Misc.IsMisc a
instance GI.Atk.Objects.Misc.IsMisc GI.Atk.Objects.Misc.Misc
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Misc.Misc
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Misc.Misc

-- | An AtkNoOpObject is an AtkObject which purports to implement all ATK
--   interfaces. It is the type of AtkObject which is created if an
--   accessible object is requested for an object type for which no factory
--   type is specified.
module GI.Atk.Objects.NoOpObject

-- | Memory-managed wrapper type.
newtype NoOpObject
NoOpObject :: ManagedPtr NoOpObject -> NoOpObject

-- | Type class for types which can be safely cast to NoOpObject,
--   for instance with toNoOpObject.
class GObject o => IsNoOpObject o

-- | Cast to NoOpObject, for types for which this is known to be
--   safe. For general casts, use castTo.
toNoOpObject :: (MonadIO m, IsNoOpObject o) => o -> m NoOpObject

-- | A convenience alias for Nothing :: Maybe
--   NoOpObject.
noNoOpObject :: Maybe NoOpObject

-- | Provides a default (non-functioning stub) Object. Application
--   maintainers should not use this method.
noOpObjectNew :: (HasCallStack, MonadIO m, IsObject a) => a -> m NoOpObject
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.NoOpObject.NoOpObject a) => GI.Atk.Objects.NoOpObject.IsNoOpObject a
instance GI.Atk.Objects.NoOpObject.IsNoOpObject GI.Atk.Objects.NoOpObject.NoOpObject
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Objects.Object.IsObject GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Action.IsAction GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Component.IsComponent GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Document.IsDocument GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.EditableText.IsEditableText GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Hypertext.IsHypertext GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Image.IsImage GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Selection.IsSelection GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Table.IsTable GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.TableCell.IsTableCell GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Text.IsText GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Value.IsValue GI.Atk.Objects.NoOpObject.NoOpObject
instance GI.Atk.Interfaces.Window.IsWindow GI.Atk.Objects.NoOpObject.NoOpObject

-- | An ATK object which encapsulates a link or set of links (for instance
--   in the case of client-side image maps) in a hypertext document. It may
--   implement the AtkAction interface. AtkHyperlink may also be used to
--   refer to inline embedded content, since it allows specification of a
--   start and end offset within the host AtkHypertext object.
module GI.Atk.Objects.Hyperlink

-- | Memory-managed wrapper type.
newtype Hyperlink
Hyperlink :: ManagedPtr Hyperlink -> Hyperlink

-- | Type class for types which can be safely cast to Hyperlink, for
--   instance with toHyperlink.
class GObject o => IsHyperlink o

-- | Cast to Hyperlink, for types for which this is known to be
--   safe. For general casts, use castTo.
toHyperlink :: (MonadIO m, IsHyperlink o) => o -> m Hyperlink

-- | A convenience alias for Nothing :: Maybe
--   Hyperlink.
noHyperlink :: Maybe Hyperlink

-- | Gets the index with the hypertext document at which this link ends.
hyperlinkGetEndIndex :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> m Int32

-- | Gets the number of anchors associated with this hyperlink.
hyperlinkGetNAnchors :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> m Int32

-- | Returns the item associated with this hyperlinks nth anchor. For
--   instance, the returned Object will implement Text if
--   link_ is a text hyperlink, Image if
--   link_ is an image hyperlink etc.
--   
--   Multiple anchors are primarily used by client-side image maps.
hyperlinkGetObject :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> Int32 -> m Object

-- | Gets the index with the hypertext document at which this link begins.
hyperlinkGetStartIndex :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> m Int32

-- | Get a the URI associated with the anchor specified by
--   i of link_.
--   
--   Multiple anchors are primarily used by client-side image maps.
hyperlinkGetUri :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> Int32 -> m Text

-- | Indicates whether the link currently displays some or all of its
--   content inline. Ordinary HTML links will usually return False,
--   but an inline &lt;src&gt; HTML element will return
--   True.
hyperlinkIsInline :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> m Bool

-- | Determines whether this AtkHyperlink is selected
--   
--   Since: 1.4

-- | Deprecated: (Since version 1.8)Please use ATK_STATE_FOCUSABLE for
--   all links,and ATK_STATE_FOCUSED for focused links.
hyperlinkIsSelectedLink :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> m Bool

-- | Since the document that a link is associated with may have changed
--   this method returns True if the link is still valid (with
--   respect to the document it references) and False otherwise.
hyperlinkIsValid :: (HasCallStack, MonadIO m, IsHyperlink a) => a -> m Bool

-- | Get the value of the “end-index” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get hyperlink #endIndex
--   
getHyperlinkEndIndex :: (MonadIO m, IsHyperlink o) => o -> m Int32

-- | Get the value of the “number-of-anchors” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get hyperlink #numberOfAnchors
--   
getHyperlinkNumberOfAnchors :: (MonadIO m, IsHyperlink o) => o -> m Int32

-- | Get the value of the “selected-link” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get hyperlink #selectedLink
--   
getHyperlinkSelectedLink :: (MonadIO m, IsHyperlink o) => o -> m Bool

-- | Get the value of the “start-index” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get hyperlink #startIndex
--   
getHyperlinkStartIndex :: (MonadIO m, IsHyperlink o) => o -> m Int32

-- | Type for the callback on the (unwrapped) C side.
type C_HyperlinkLinkActivatedCallback = Ptr () -> Ptr () -> IO ()

-- | The signal link-activated is emitted when a link is activated.
type HyperlinkLinkActivatedCallback = IO ()

-- | Connect a signal handler for the “link-activated” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after hyperlink #linkActivated callback
--   
afterHyperlinkLinkActivated :: (IsHyperlink a, MonadIO m) => a -> HyperlinkLinkActivatedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_HyperlinkLinkActivated :: HyperlinkLinkActivatedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_HyperlinkLinkActivatedCallback.
mk_HyperlinkLinkActivatedCallback :: C_HyperlinkLinkActivatedCallback -> IO (FunPtr C_HyperlinkLinkActivatedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   HyperlinkLinkActivatedCallback.
noHyperlinkLinkActivatedCallback :: Maybe HyperlinkLinkActivatedCallback

-- | Connect a signal handler for the “link-activated” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on hyperlink #linkActivated callback
--   
onHyperlinkLinkActivated :: (IsHyperlink a, MonadIO m) => a -> HyperlinkLinkActivatedCallback -> m SignalHandlerId

-- | Wrap a HyperlinkLinkActivatedCallback into a
--   C_HyperlinkLinkActivatedCallback.
wrap_HyperlinkLinkActivatedCallback :: HyperlinkLinkActivatedCallback -> C_HyperlinkLinkActivatedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Hyperlink.Hyperlink a) => GI.Atk.Objects.Hyperlink.IsHyperlink a
instance GI.Atk.Objects.Hyperlink.IsHyperlink GI.Atk.Objects.Hyperlink.Hyperlink
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Hyperlink.Hyperlink
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Hyperlink.Hyperlink
instance GI.Atk.Interfaces.Action.IsAction GI.Atk.Objects.Hyperlink.Hyperlink

-- | This object class is derived from AtkObject. It can be used as a basis
--   for implementing accessible objects for GObjects which are not derived
--   from GtkWidget. One example of its use is in providing an accessible
--   object for GnomeCanvasItem in the GAIL library.
module GI.Atk.Objects.GObjectAccessible

-- | Memory-managed wrapper type.
newtype GObjectAccessible
GObjectAccessible :: ManagedPtr GObjectAccessible -> GObjectAccessible

-- | Type class for types which can be safely cast to
--   GObjectAccessible, for instance with
--   toGObjectAccessible.
class GObject o => IsGObjectAccessible o

-- | Cast to GObjectAccessible, for types for which this is known to
--   be safe. For general casts, use castTo.
toGObjectAccessible :: (MonadIO m, IsGObjectAccessible o) => o -> m GObjectAccessible

-- | A convenience alias for Nothing :: Maybe
--   GObjectAccessible.
noGObjectAccessible :: Maybe GObjectAccessible

-- | Gets the accessible object for the specified obj.
gObjectAccessibleForObject :: (HasCallStack, MonadIO m, IsObject a) => a -> m Object

-- | Gets the GObject for which obj is the accessible
--   object.
gObjectAccessibleGetObject :: (HasCallStack, MonadIO m, IsGObjectAccessible a) => a -> m Object
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.GObjectAccessible.GObjectAccessible a) => GI.Atk.Objects.GObjectAccessible.IsGObjectAccessible a
instance GI.Atk.Objects.GObjectAccessible.IsGObjectAccessible GI.Atk.Objects.GObjectAccessible.GObjectAccessible
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.GObjectAccessible.GObjectAccessible
instance GI.Atk.Objects.Object.IsObject GI.Atk.Objects.GObjectAccessible.GObjectAccessible
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.GObjectAccessible.GObjectAccessible

-- | Window should be implemented by the UI elements that represent
--   a top-level window, such as the main window of an application or
--   dialog.
module GI.Atk.Interfaces.Window

-- | Memory-managed wrapper type.
newtype Window
Window :: ManagedPtr Window -> Window

-- | A convenience alias for Nothing :: Maybe Window.
noWindow :: Maybe Window

-- | Type class for types which can be safely cast to Window, for
--   instance with toWindow.
class GObject o => IsWindow o

-- | Cast to Window, for types for which this is known to be safe.
--   For general casts, use castTo.
toWindow :: (MonadIO m, IsWindow o) => o -> m Window

-- | Type for the callback on the (unwrapped) C side.
type C_WindowActivateCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::activate is emitted when a
--   window becomes the active window of the application or session.
--   
--   Since: 2.2
type WindowActivateCallback = IO ()

-- | Connect a signal handler for the “activate” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #activate callback
--   
afterWindowActivate :: (IsWindow a, MonadIO m) => a -> WindowActivateCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowActivate :: WindowActivateCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowActivateCallback.
mk_WindowActivateCallback :: C_WindowActivateCallback -> IO (FunPtr C_WindowActivateCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowActivateCallback.
noWindowActivateCallback :: Maybe WindowActivateCallback

-- | Connect a signal handler for the “activate” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #activate callback
--   
onWindowActivate :: (IsWindow a, MonadIO m) => a -> WindowActivateCallback -> m SignalHandlerId

-- | Wrap a WindowActivateCallback into a
--   C_WindowActivateCallback.
wrap_WindowActivateCallback :: WindowActivateCallback -> C_WindowActivateCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowCreateCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::create is emitted when a new
--   window is created.
--   
--   Since: 2.2
type WindowCreateCallback = IO ()

-- | Connect a signal handler for the “create” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #create callback
--   
afterWindowCreate :: (IsWindow a, MonadIO m) => a -> WindowCreateCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowCreate :: WindowCreateCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowCreateCallback.
mk_WindowCreateCallback :: C_WindowCreateCallback -> IO (FunPtr C_WindowCreateCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowCreateCallback.
noWindowCreateCallback :: Maybe WindowCreateCallback

-- | Connect a signal handler for the “create” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #create callback
--   
onWindowCreate :: (IsWindow a, MonadIO m) => a -> WindowCreateCallback -> m SignalHandlerId

-- | Wrap a WindowCreateCallback into a
--   C_WindowCreateCallback.
wrap_WindowCreateCallback :: WindowCreateCallback -> C_WindowCreateCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowDeactivateCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::deactivate is emitted when a
--   window is no longer the active window of the application or session.
--   
--   Since: 2.2
type WindowDeactivateCallback = IO ()

-- | Connect a signal handler for the “deactivate” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after window #deactivate callback
--   
afterWindowDeactivate :: (IsWindow a, MonadIO m) => a -> WindowDeactivateCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowDeactivate :: WindowDeactivateCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowDeactivateCallback.
mk_WindowDeactivateCallback :: C_WindowDeactivateCallback -> IO (FunPtr C_WindowDeactivateCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowDeactivateCallback.
noWindowDeactivateCallback :: Maybe WindowDeactivateCallback

-- | Connect a signal handler for the “deactivate” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on window #deactivate callback
--   
onWindowDeactivate :: (IsWindow a, MonadIO m) => a -> WindowDeactivateCallback -> m SignalHandlerId

-- | Wrap a WindowDeactivateCallback into a
--   C_WindowDeactivateCallback.
wrap_WindowDeactivateCallback :: WindowDeactivateCallback -> C_WindowDeactivateCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowDestroyCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::destroy is emitted when a
--   window is destroyed.
--   
--   Since: 2.2
type WindowDestroyCallback = IO ()

-- | Connect a signal handler for the “destroy” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #destroy callback
--   
afterWindowDestroy :: (IsWindow a, MonadIO m) => a -> WindowDestroyCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowDestroy :: WindowDestroyCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowDestroyCallback.
mk_WindowDestroyCallback :: C_WindowDestroyCallback -> IO (FunPtr C_WindowDestroyCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowDestroyCallback.
noWindowDestroyCallback :: Maybe WindowDestroyCallback

-- | Connect a signal handler for the “destroy” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #destroy callback
--   
onWindowDestroy :: (IsWindow a, MonadIO m) => a -> WindowDestroyCallback -> m SignalHandlerId

-- | Wrap a WindowDestroyCallback into a
--   C_WindowDestroyCallback.
wrap_WindowDestroyCallback :: WindowDestroyCallback -> C_WindowDestroyCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowMaximizeCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::maximize is emitted when a
--   window is maximized.
--   
--   Since: 2.2
type WindowMaximizeCallback = IO ()

-- | Connect a signal handler for the “maximize” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #maximize callback
--   
afterWindowMaximize :: (IsWindow a, MonadIO m) => a -> WindowMaximizeCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowMaximize :: WindowMaximizeCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowMaximizeCallback.
mk_WindowMaximizeCallback :: C_WindowMaximizeCallback -> IO (FunPtr C_WindowMaximizeCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowMaximizeCallback.
noWindowMaximizeCallback :: Maybe WindowMaximizeCallback

-- | Connect a signal handler for the “maximize” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #maximize callback
--   
onWindowMaximize :: (IsWindow a, MonadIO m) => a -> WindowMaximizeCallback -> m SignalHandlerId

-- | Wrap a WindowMaximizeCallback into a
--   C_WindowMaximizeCallback.
wrap_WindowMaximizeCallback :: WindowMaximizeCallback -> C_WindowMaximizeCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowMinimizeCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::minimize is emitted when a
--   window is minimized.
--   
--   Since: 2.2
type WindowMinimizeCallback = IO ()

-- | Connect a signal handler for the “minimize” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #minimize callback
--   
afterWindowMinimize :: (IsWindow a, MonadIO m) => a -> WindowMinimizeCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowMinimize :: WindowMinimizeCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowMinimizeCallback.
mk_WindowMinimizeCallback :: C_WindowMinimizeCallback -> IO (FunPtr C_WindowMinimizeCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowMinimizeCallback.
noWindowMinimizeCallback :: Maybe WindowMinimizeCallback

-- | Connect a signal handler for the “minimize” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #minimize callback
--   
onWindowMinimize :: (IsWindow a, MonadIO m) => a -> WindowMinimizeCallback -> m SignalHandlerId

-- | Wrap a WindowMinimizeCallback into a
--   C_WindowMinimizeCallback.
wrap_WindowMinimizeCallback :: WindowMinimizeCallback -> C_WindowMinimizeCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowMoveCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::move is emitted when a
--   window is moved.
--   
--   Since: 2.2
type WindowMoveCallback = IO ()

-- | Connect a signal handler for the “move” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #move callback
--   
afterWindowMove :: (IsWindow a, MonadIO m) => a -> WindowMoveCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowMove :: WindowMoveCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowMoveCallback.
mk_WindowMoveCallback :: C_WindowMoveCallback -> IO (FunPtr C_WindowMoveCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowMoveCallback.
noWindowMoveCallback :: Maybe WindowMoveCallback

-- | Connect a signal handler for the “move” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #move callback
--   
onWindowMove :: (IsWindow a, MonadIO m) => a -> WindowMoveCallback -> m SignalHandlerId

-- | Wrap a WindowMoveCallback into a C_WindowMoveCallback.
wrap_WindowMoveCallback :: WindowMoveCallback -> C_WindowMoveCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowResizeCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::resize is emitted when a
--   window is resized.
--   
--   Since: 2.2
type WindowResizeCallback = IO ()

-- | Connect a signal handler for the “resize” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #resize callback
--   
afterWindowResize :: (IsWindow a, MonadIO m) => a -> WindowResizeCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowResize :: WindowResizeCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowResizeCallback.
mk_WindowResizeCallback :: C_WindowResizeCallback -> IO (FunPtr C_WindowResizeCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowResizeCallback.
noWindowResizeCallback :: Maybe WindowResizeCallback

-- | Connect a signal handler for the “resize” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #resize callback
--   
onWindowResize :: (IsWindow a, MonadIO m) => a -> WindowResizeCallback -> m SignalHandlerId

-- | Wrap a WindowResizeCallback into a
--   C_WindowResizeCallback.
wrap_WindowResizeCallback :: WindowResizeCallback -> C_WindowResizeCallback

-- | Type for the callback on the (unwrapped) C side.
type C_WindowRestoreCallback = Ptr () -> Ptr () -> IO ()

-- | The signal Window::restore is emitted when a
--   window is restored.
--   
--   Since: 2.2
type WindowRestoreCallback = IO ()

-- | Connect a signal handler for the “restore” signal, to be run
--   after the default handler. When overloading is enabled, this is
--   equivalent to
--   
--   
--   after window #restore callback
--   
afterWindowRestore :: (IsWindow a, MonadIO m) => a -> WindowRestoreCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_WindowRestore :: WindowRestoreCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_WindowRestoreCallback.
mk_WindowRestoreCallback :: C_WindowRestoreCallback -> IO (FunPtr C_WindowRestoreCallback)

-- | A convenience synonym for Nothing :: Maybe
--   WindowRestoreCallback.
noWindowRestoreCallback :: Maybe WindowRestoreCallback

-- | Connect a signal handler for the “restore” signal, to be run
--   before the default handler. When overloading is enabled, this
--   is equivalent to
--   
--   
--   on window #restore callback
--   
onWindowRestore :: (IsWindow a, MonadIO m) => a -> WindowRestoreCallback -> m SignalHandlerId

-- | Wrap a WindowRestoreCallback into a
--   C_WindowRestoreCallback.
wrap_WindowRestoreCallback :: WindowRestoreCallback -> C_WindowRestoreCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Window.Window a) => GI.Atk.Interfaces.Window.IsWindow a
instance GI.Atk.Interfaces.Window.IsWindow GI.Atk.Interfaces.Window.Window
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Window.Window
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Window.Window
instance GI.Atk.Objects.Object.IsObject GI.Atk.Interfaces.Window.Window

-- | Being Table a component which present elements ordered via rows
--   and columns, an TableCell is the interface which each of those
--   elements, so "cells" should implement.
--   
--   See also Table.
module GI.Atk.Interfaces.TableCell

-- | Memory-managed wrapper type.
newtype TableCell
TableCell :: ManagedPtr TableCell -> TableCell

-- | A convenience alias for Nothing :: Maybe
--   TableCell.
noTableCell :: Maybe TableCell

-- | Type class for types which can be safely cast to TableCell, for
--   instance with toTableCell.
class GObject o => IsTableCell o

-- | Cast to TableCell, for types for which this is known to be
--   safe. For general casts, use castTo.
toTableCell :: (MonadIO m, IsTableCell o) => o -> m TableCell

-- | Returns the column headers as an array of cell accessibles.
--   
--   Since: 2.12
tableCellGetColumnHeaderCells :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m [Object]

-- | Returns the number of columns occupied by this cell accessible.
--   
--   Since: 2.12
tableCellGetColumnSpan :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m Int32

-- | Retrieves the tabular position of this cell.
--   
--   Since: 2.12
tableCellGetPosition :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m (Bool, Int32, Int32)

-- | Gets the row and column indexes and span of this cell accessible.
--   
--   Note: If the object does not implement this function, then, by
--   default, atk will implement this function by calling get_row_span and
--   get_column_span on the object.
--   
--   Since: 2.12
tableCellGetRowColumnSpan :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m (Bool, Int32, Int32, Int32, Int32)

-- | Returns the row headers as an array of cell accessibles.
--   
--   Since: 2.12
tableCellGetRowHeaderCells :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m [Object]

-- | Returns the number of rows occupied by this cell accessible.
--   
--   Since: 2.12
tableCellGetRowSpan :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m Int32

-- | Returns a reference to the accessible of the containing table.
--   
--   Since: 2.12
tableCellGetTable :: (HasCallStack, MonadIO m, IsTableCell a) => a -> m Object
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.TableCell.TableCell a) => GI.Atk.Interfaces.TableCell.IsTableCell a
instance GI.Atk.Interfaces.TableCell.IsTableCell GI.Atk.Interfaces.TableCell.TableCell
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.TableCell.TableCell
instance GI.Atk.Objects.Object.IsObject GI.Atk.Interfaces.TableCell.TableCell
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.TableCell.TableCell

-- | Table should be implemented by components which present
--   elements ordered via rows and columns. It may also be used to present
--   tree-structured information if the nodes of the trees can be said to
--   contain multiple "columns". Individual elements of an Table are
--   typically referred to as "cells". Those cells should implement the
--   interface TableCell, but Atk doesn't require
--   them to be direct children of the current Table. They can be
--   grand-children, grand-grand-children etc. Table provides the
--   API needed to get a individual cell based on the row and column
--   numbers.
--   
--   Children of Table are frequently "lightweight" objects, that
--   is, they may not have backing widgets in the host UI toolkit. They are
--   therefore often transient.
--   
--   Since tables are often very complex, Table includes provision
--   for offering simplified summary information, as well as row and column
--   headers and captions. Headers and captions are
--   AtkObjects which may implement other interfaces
--   (Text, Image, etc.) as appropriate. Table
--   summaries may themselves be (simplified) AtkTables,
--   etc.
--   
--   Note for implementors: in the past, Table required that all the
--   cells should be direct children of Table, and provided some
--   index based methods to request the cells. The practice showed that
--   that forcing made Table implementation complex, and hard to
--   expose other kind of children, like rows or captions. Right now,
--   index-based methods are deprecated.
module GI.Atk.Interfaces.Table

-- | Memory-managed wrapper type.
newtype Table
Table :: ManagedPtr Table -> Table

-- | A convenience alias for Nothing :: Maybe Table.
noTable :: Maybe Table

-- | Type class for types which can be safely cast to Table, for
--   instance with toTable.
class GObject o => IsTable o

-- | Cast to Table, for types for which this is known to be safe.
--   For general casts, use castTo.
toTable :: (MonadIO m, IsTable o) => o -> m Table

-- | Adds the specified column to the selection.
tableAddColumnSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool

-- | Adds the specified row to the selection.
tableAddRowSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool

-- | Gets the caption for the table.
tableGetCaption :: (HasCallStack, MonadIO m, IsTable a) => a -> m (Maybe Object)

-- | Gets a gint representing the column at the specified
--   index_.

-- | Deprecated: Since 2.12.
tableGetColumnAtIndex :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32

-- | Gets the description text of the specified column in
--   the table
tableGetColumnDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Text

-- | Gets the number of columns occupied by the accessible object at the
--   specified row and column in the
--   table.
tableGetColumnExtentAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Int32

-- | Gets the column header of a specified column in an accessible table.
tableGetColumnHeader :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m (Maybe Object)

-- | Gets a gint representing the index at the specified
--   row and column.

-- | Deprecated: Since 2.12. Use tableRefAt in order to get
--   theaccessible that represents the cell at (row,
--   column)
tableGetIndexAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Int32

-- | Gets the number of columns in the table.
tableGetNColumns :: (HasCallStack, MonadIO m, IsTable a) => a -> m Int32

-- | Gets the number of rows in the table.
tableGetNRows :: (HasCallStack, MonadIO m, IsTable a) => a -> m Int32

-- | Gets a gint representing the row at the specified
--   index_.

-- | Deprecated: since 2.12.
tableGetRowAtIndex :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32

-- | Gets the description text of the specified row in the table
tableGetRowDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m (Maybe Text)

-- | Gets the number of rows occupied by the accessible object at a
--   specified row and column in the
--   table.
tableGetRowExtentAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Int32

-- | Gets the row header of a specified row in an accessible table.
tableGetRowHeader :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m (Maybe Object)

-- | Gets the selected columns of the table by initializing **selected with
--   the selected column numbers. This array should be freed by the caller.
tableGetSelectedColumns :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32

-- | Gets the selected rows of the table by initializing **selected with
--   the selected row numbers. This array should be freed by the caller.
tableGetSelectedRows :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32

-- | Gets the summary description of the table.
tableGetSummary :: (HasCallStack, MonadIO m, IsTable a) => a -> m Object

-- | Gets a boolean value indicating whether the specified
--   column is selected
tableIsColumnSelected :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool

-- | Gets a boolean value indicating whether the specified
--   row is selected
tableIsRowSelected :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool

-- | Gets a boolean value indicating whether the accessible object at the
--   specified row and column is selected
tableIsSelected :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Bool

-- | Get a reference to the table cell at row,
--   column. This cell should implement the interface
--   TableCell
tableRefAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Object

-- | Adds the specified column to the selection.
tableRemoveColumnSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool

-- | Removes the specified row from the selection.
tableRemoveRowSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool

-- | Sets the caption for the table.
tableSetCaption :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> b -> m ()

-- | Sets the description text for the specified column of
--   the table.
tableSetColumnDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Text -> m ()

-- | Sets the specified column header to header.
tableSetColumnHeader :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> Int32 -> b -> m ()

-- | Sets the description text for the specified row of
--   table.
tableSetRowDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Text -> m ()

-- | Sets the specified row header to header.
tableSetRowHeader :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> Int32 -> b -> m ()

-- | Sets the summary description of the table.
tableSetSummary :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> b -> m ()

-- | Type for the callback on the (unwrapped) C side.
type C_TableColumnDeletedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()

-- | The "column-deleted" signal is emitted by an object which implements
--   the AtkTable interface when a column is deleted.
type TableColumnDeletedCallback = Int32 " /@arg1@/: The index of the first column deleted. " -> Int32 " /@arg2@/: The number of columns deleted. " -> IO ()

-- | Connect a signal handler for the “column-deleted” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after table #columnDeleted callback
--   
afterTableColumnDeleted :: (IsTable a, MonadIO m) => a -> TableColumnDeletedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableColumnDeleted :: TableColumnDeletedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableColumnDeletedCallback.
mk_TableColumnDeletedCallback :: C_TableColumnDeletedCallback -> IO (FunPtr C_TableColumnDeletedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableColumnDeletedCallback.
noTableColumnDeletedCallback :: Maybe TableColumnDeletedCallback

-- | Connect a signal handler for the “column-deleted” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on table #columnDeleted callback
--   
onTableColumnDeleted :: (IsTable a, MonadIO m) => a -> TableColumnDeletedCallback -> m SignalHandlerId

-- | Wrap a TableColumnDeletedCallback into a
--   C_TableColumnDeletedCallback.
wrap_TableColumnDeletedCallback :: TableColumnDeletedCallback -> C_TableColumnDeletedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TableColumnInsertedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()

-- | The "column-inserted" signal is emitted by an object which implements
--   the AtkTable interface when a column is inserted.
type TableColumnInsertedCallback = Int32 " /@arg1@/: The index of the column inserted. " -> Int32 " /@arg2@/: The number of colums inserted. " -> IO ()

-- | Connect a signal handler for the “column-inserted” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after table #columnInserted callback
--   
afterTableColumnInserted :: (IsTable a, MonadIO m) => a -> TableColumnInsertedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableColumnInserted :: TableColumnInsertedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableColumnInsertedCallback.
mk_TableColumnInsertedCallback :: C_TableColumnInsertedCallback -> IO (FunPtr C_TableColumnInsertedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableColumnInsertedCallback.
noTableColumnInsertedCallback :: Maybe TableColumnInsertedCallback

-- | Connect a signal handler for the “column-inserted” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on table #columnInserted callback
--   
onTableColumnInserted :: (IsTable a, MonadIO m) => a -> TableColumnInsertedCallback -> m SignalHandlerId

-- | Wrap a TableColumnInsertedCallback into a
--   C_TableColumnInsertedCallback.
wrap_TableColumnInsertedCallback :: TableColumnInsertedCallback -> C_TableColumnInsertedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TableColumnReorderedCallback = Ptr () -> Ptr () -> IO ()

-- | The "column-reordered" signal is emitted by an object which implements
--   the AtkTable interface when the columns are reordered.
type TableColumnReorderedCallback = IO ()

-- | Connect a signal handler for the “column-reordered” signal,
--   to be run after the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   after table #columnReordered callback
--   
afterTableColumnReordered :: (IsTable a, MonadIO m) => a -> TableColumnReorderedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableColumnReordered :: TableColumnReorderedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableColumnReorderedCallback.
mk_TableColumnReorderedCallback :: C_TableColumnReorderedCallback -> IO (FunPtr C_TableColumnReorderedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableColumnReorderedCallback.
noTableColumnReorderedCallback :: Maybe TableColumnReorderedCallback

-- | Connect a signal handler for the “column-reordered” signal,
--   to be run before the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   on table #columnReordered callback
--   
onTableColumnReordered :: (IsTable a, MonadIO m) => a -> TableColumnReorderedCallback -> m SignalHandlerId

-- | Wrap a TableColumnReorderedCallback into a
--   C_TableColumnReorderedCallback.
wrap_TableColumnReorderedCallback :: TableColumnReorderedCallback -> C_TableColumnReorderedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TableModelChangedCallback = Ptr () -> Ptr () -> IO ()

-- | The "model-changed" signal is emitted by an object which implements
--   the AtkTable interface when the model displayed by the table changes.
type TableModelChangedCallback = IO ()

-- | Connect a signal handler for the “model-changed” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after table #modelChanged callback
--   
afterTableModelChanged :: (IsTable a, MonadIO m) => a -> TableModelChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableModelChanged :: TableModelChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableModelChangedCallback.
mk_TableModelChangedCallback :: C_TableModelChangedCallback -> IO (FunPtr C_TableModelChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableModelChangedCallback.
noTableModelChangedCallback :: Maybe TableModelChangedCallback

-- | Connect a signal handler for the “model-changed” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on table #modelChanged callback
--   
onTableModelChanged :: (IsTable a, MonadIO m) => a -> TableModelChangedCallback -> m SignalHandlerId

-- | Wrap a TableModelChangedCallback into a
--   C_TableModelChangedCallback.
wrap_TableModelChangedCallback :: TableModelChangedCallback -> C_TableModelChangedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TableRowDeletedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()

-- | The "row-deleted" signal is emitted by an object which implements the
--   AtkTable interface when a row is deleted.
type TableRowDeletedCallback = Int32 " /@arg1@/: The index of the first row deleted. " -> Int32 " /@arg2@/: The number of rows deleted. " -> IO ()

-- | Connect a signal handler for the “row-deleted” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after table #rowDeleted callback
--   
afterTableRowDeleted :: (IsTable a, MonadIO m) => a -> TableRowDeletedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableRowDeleted :: TableRowDeletedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableRowDeletedCallback.
mk_TableRowDeletedCallback :: C_TableRowDeletedCallback -> IO (FunPtr C_TableRowDeletedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableRowDeletedCallback.
noTableRowDeletedCallback :: Maybe TableRowDeletedCallback

-- | Connect a signal handler for the “row-deleted” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on table #rowDeleted callback
--   
onTableRowDeleted :: (IsTable a, MonadIO m) => a -> TableRowDeletedCallback -> m SignalHandlerId

-- | Wrap a TableRowDeletedCallback into a
--   C_TableRowDeletedCallback.
wrap_TableRowDeletedCallback :: TableRowDeletedCallback -> C_TableRowDeletedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TableRowInsertedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()

-- | The "row-inserted" signal is emitted by an object which implements the
--   AtkTable interface when a row is inserted.
type TableRowInsertedCallback = Int32 " /@arg1@/: The index of the first row inserted. " -> Int32 " /@arg2@/: The number of rows inserted. " -> IO ()

-- | Connect a signal handler for the “row-inserted” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after table #rowInserted callback
--   
afterTableRowInserted :: (IsTable a, MonadIO m) => a -> TableRowInsertedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableRowInserted :: TableRowInsertedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableRowInsertedCallback.
mk_TableRowInsertedCallback :: C_TableRowInsertedCallback -> IO (FunPtr C_TableRowInsertedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableRowInsertedCallback.
noTableRowInsertedCallback :: Maybe TableRowInsertedCallback

-- | Connect a signal handler for the “row-inserted” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on table #rowInserted callback
--   
onTableRowInserted :: (IsTable a, MonadIO m) => a -> TableRowInsertedCallback -> m SignalHandlerId

-- | Wrap a TableRowInsertedCallback into a
--   C_TableRowInsertedCallback.
wrap_TableRowInsertedCallback :: TableRowInsertedCallback -> C_TableRowInsertedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TableRowReorderedCallback = Ptr () -> Ptr () -> IO ()

-- | The "row-reordered" signal is emitted by an object which implements
--   the AtkTable interface when the rows are reordered.
type TableRowReorderedCallback = IO ()

-- | Connect a signal handler for the “row-reordered” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after table #rowReordered callback
--   
afterTableRowReordered :: (IsTable a, MonadIO m) => a -> TableRowReorderedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TableRowReordered :: TableRowReorderedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TableRowReorderedCallback.
mk_TableRowReorderedCallback :: C_TableRowReorderedCallback -> IO (FunPtr C_TableRowReorderedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TableRowReorderedCallback.
noTableRowReorderedCallback :: Maybe TableRowReorderedCallback

-- | Connect a signal handler for the “row-reordered” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on table #rowReordered callback
--   
onTableRowReordered :: (IsTable a, MonadIO m) => a -> TableRowReorderedCallback -> m SignalHandlerId

-- | Wrap a TableRowReorderedCallback into a
--   C_TableRowReorderedCallback.
wrap_TableRowReorderedCallback :: TableRowReorderedCallback -> C_TableRowReorderedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Table.Table a) => GI.Atk.Interfaces.Table.IsTable a
instance GI.Atk.Interfaces.Table.IsTable GI.Atk.Interfaces.Table.Table
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Table.Table
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Table.Table

-- | Selection should be implemented by UI components with children
--   which are exposed by atk_object_ref_child and
--   atk_object_get_n_children, if the use of the parent UI
--   component ordinarily involves selection of one or more of the objects
--   corresponding to those Object children - for example,
--   selectable lists.
--   
--   Note that other types of "selection" (for instance text selection) are
--   accomplished a other ATK interfaces - Selection is limited to
--   the selection/deselection of children.
module GI.Atk.Interfaces.Selection

-- | Memory-managed wrapper type.
newtype Selection
Selection :: ManagedPtr Selection -> Selection

-- | A convenience alias for Nothing :: Maybe
--   Selection.
noSelection :: Maybe Selection

-- | Type class for types which can be safely cast to Selection, for
--   instance with toSelection.
class GObject o => IsSelection o

-- | Cast to Selection, for types for which this is known to be
--   safe. For general casts, use castTo.
toSelection :: (MonadIO m, IsSelection o) => o -> m Selection

-- | Adds the specified accessible child of the object to the object's
--   selection.
selectionAddSelection :: (HasCallStack, MonadIO m, IsSelection a) => a -> Int32 -> m Bool

-- | Clears the selection in the object so that no children in the object
--   are selected.
selectionClearSelection :: (HasCallStack, MonadIO m, IsSelection a) => a -> m Bool

-- | Gets the number of accessible children currently selected. Note:
--   callers should not rely on Nothing or on a zero value for
--   indication of whether AtkSelectionIface is implemented, they should
--   use type checking/interface checking macros or the
--   atk_get_accessible_value() convenience method.
selectionGetSelectionCount :: (HasCallStack, MonadIO m, IsSelection a) => a -> m Int32

-- | Determines if the current child of this object is selected Note:
--   callers should not rely on Nothing or on a zero value for
--   indication of whether AtkSelectionIface is implemented, they should
--   use type checking/interface checking macros or the
--   atk_get_accessible_value() convenience method.
selectionIsChildSelected :: (HasCallStack, MonadIO m, IsSelection a) => a -> Int32 -> m Bool

-- | Gets a reference to the accessible object representing the specified
--   selected child of the object. Note: callers should not rely on
--   Nothing or on a zero value for indication of whether
--   AtkSelectionIface is implemented, they should use type
--   checking/interface checking macros or the
--   atk_get_accessible_value() convenience method.
selectionRefSelection :: (HasCallStack, MonadIO m, IsSelection a) => a -> Int32 -> m (Maybe Object)

-- | Removes the specified child of the object from the object's selection.
selectionRemoveSelection :: (HasCallStack, MonadIO m, IsSelection a) => a -> Int32 -> m Bool

-- | Causes every child of the object to be selected if the object supports
--   multiple selections.
selectionSelectAllSelection :: (HasCallStack, MonadIO m, IsSelection a) => a -> m Bool

-- | Type for the callback on the (unwrapped) C side.
type C_SelectionSelectionChangedCallback = Ptr () -> Ptr () -> IO ()

-- | The "selection-changed" signal is emitted by an object which
--   implements AtkSelection interface when the selection changes.
type SelectionSelectionChangedCallback = IO ()

-- | Connect a signal handler for the “selection-changed” signal,
--   to be run after the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   after selection #selectionChanged callback
--   
afterSelectionSelectionChanged :: (IsSelection a, MonadIO m) => a -> SelectionSelectionChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_SelectionSelectionChanged :: SelectionSelectionChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_SelectionSelectionChangedCallback.
mk_SelectionSelectionChangedCallback :: C_SelectionSelectionChangedCallback -> IO (FunPtr C_SelectionSelectionChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   SelectionSelectionChangedCallback.
noSelectionSelectionChangedCallback :: Maybe SelectionSelectionChangedCallback

-- | Connect a signal handler for the “selection-changed” signal,
--   to be run before the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   on selection #selectionChanged callback
--   
onSelectionSelectionChanged :: (IsSelection a, MonadIO m) => a -> SelectionSelectionChangedCallback -> m SignalHandlerId

-- | Wrap a SelectionSelectionChangedCallback into a
--   C_SelectionSelectionChangedCallback.
wrap_SelectionSelectionChangedCallback :: SelectionSelectionChangedCallback -> C_SelectionSelectionChangedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Selection.Selection a) => GI.Atk.Interfaces.Selection.IsSelection a
instance GI.Atk.Interfaces.Selection.IsSelection GI.Atk.Interfaces.Selection.Selection
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Selection.Selection
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Selection.Selection

-- | The AtkObjectFactory which creates an AtkNoOpObject. An instance of
--   this is created by an AtkRegistry if no factory type has not been
--   specified to create an accessible object of a particular type.
module GI.Atk.Objects.NoOpObjectFactory

-- | Memory-managed wrapper type.
newtype NoOpObjectFactory
NoOpObjectFactory :: ManagedPtr NoOpObjectFactory -> NoOpObjectFactory

-- | Type class for types which can be safely cast to
--   NoOpObjectFactory, for instance with
--   toNoOpObjectFactory.
class GObject o => IsNoOpObjectFactory o

-- | Cast to NoOpObjectFactory, for types for which this is known to
--   be safe. For general casts, use castTo.
toNoOpObjectFactory :: (MonadIO m, IsNoOpObjectFactory o) => o -> m NoOpObjectFactory

-- | A convenience alias for Nothing :: Maybe
--   NoOpObjectFactory.
noNoOpObjectFactory :: Maybe NoOpObjectFactory

-- | Creates an instance of an ObjectFactory which generates
--   primitive (non-functioning) AtkObjects.
noOpObjectFactoryNew :: (HasCallStack, MonadIO m) => m NoOpObjectFactory
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.NoOpObjectFactory.NoOpObjectFactory a) => GI.Atk.Objects.NoOpObjectFactory.IsNoOpObjectFactory a
instance GI.Atk.Objects.NoOpObjectFactory.IsNoOpObjectFactory GI.Atk.Objects.NoOpObjectFactory.NoOpObjectFactory
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.NoOpObjectFactory.NoOpObjectFactory
instance GI.Atk.Objects.ObjectFactory.IsObjectFactory GI.Atk.Objects.NoOpObjectFactory.NoOpObjectFactory
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.NoOpObjectFactory.NoOpObjectFactory

-- | This class is the base object class for a factory used to create an
--   accessible object for a specific GType. The function
--   registrySetFactoryType is normally called to store in the
--   registry the factory type to be used to create an accessible of a
--   particular GType.
module GI.Atk.Objects.ObjectFactory

-- | Memory-managed wrapper type.
newtype ObjectFactory
ObjectFactory :: ManagedPtr ObjectFactory -> ObjectFactory

-- | Type class for types which can be safely cast to ObjectFactory,
--   for instance with toObjectFactory.
class GObject o => IsObjectFactory o

-- | Cast to ObjectFactory, for types for which this is known to be
--   safe. For general casts, use castTo.
toObjectFactory :: (MonadIO m, IsObjectFactory o) => o -> m ObjectFactory

-- | A convenience alias for Nothing :: Maybe
--   ObjectFactory.
noObjectFactory :: Maybe ObjectFactory

-- | Provides an Object that implements an accessibility interface
--   on behalf of obj
objectFactoryCreateAccessible :: (HasCallStack, MonadIO m, IsObjectFactory a, IsObject b) => a -> b -> m Object

-- | Gets the GType of the accessible which is created by the factory.
objectFactoryGetAccessibleType :: (HasCallStack, MonadIO m, IsObjectFactory a) => a -> m GType

-- | Inform factory that it is no longer being used to
--   create accessibles. When called, factory may need to
--   inform AtkObjects which it has created that they need
--   to be re-instantiated. Note: primarily used for runtime replacement of
--   AtkObjectFactorys in object registries.
objectFactoryInvalidate :: (HasCallStack, MonadIO m, IsObjectFactory a) => a -> m ()
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.ObjectFactory.ObjectFactory a) => GI.Atk.Objects.ObjectFactory.IsObjectFactory a
instance GI.Atk.Objects.ObjectFactory.IsObjectFactory GI.Atk.Objects.ObjectFactory.ObjectFactory
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.ObjectFactory.ObjectFactory
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.ObjectFactory.ObjectFactory

-- | See Socket
module GI.Atk.Objects.Plug

-- | Memory-managed wrapper type.
newtype Plug
Plug :: ManagedPtr Plug -> Plug

-- | Type class for types which can be safely cast to Plug, for
--   instance with toPlug.
class GObject o => IsPlug o

-- | Cast to Plug, for types for which this is known to be safe. For
--   general casts, use castTo.
toPlug :: (MonadIO m, IsPlug o) => o -> m Plug

-- | A convenience alias for Nothing :: Maybe Plug.
noPlug :: Maybe Plug

-- | Gets the unique ID of an Plug object, which can be used to
--   embed inside of an Socket using socketEmbed.
--   
--   Internally, this calls a class function that should be registered by
--   the IPC layer (usually at-spi2-atk). The implementor of an Plug
--   object should call this function (after atk-bridge is loaded) and pass
--   the value to the process implementing the Socket, so it could
--   embed the plug.
--   
--   Since: 1.30
plugGetId :: (HasCallStack, MonadIO m, IsPlug a) => a -> m Text

-- | Creates a new Plug instance.
--   
--   Since: 1.30
plugNew :: (HasCallStack, MonadIO m) => m Plug
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Plug.Plug a) => GI.Atk.Objects.Plug.IsPlug a
instance GI.Atk.Objects.Plug.IsPlug GI.Atk.Objects.Plug.Plug
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Plug.Plug
instance GI.Atk.Objects.Object.IsObject GI.Atk.Objects.Plug.Plug
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Plug.Plug
instance GI.Atk.Interfaces.Component.IsComponent GI.Atk.Objects.Plug.Plug

module GI.Atk.Functions

-- | Cause the focus tracker functions which have been specified to be
--   executed for the object.

-- | Deprecated: (Since version 2.9.4)Focus tracking has been dropped as
--   a featureto be implemented by ATK itself. As
--   Object::focus-event wasdeprecated in favor of a
--   Object::state-change signal, in orderto notify
--   a focus change on your implementation, you can
--   useobjectNotifyStateChange instead.
focusTrackerNotify :: (HasCallStack, MonadIO m, IsObject a) => a -> m ()

-- | Returns the binary age as passed to libtool when building the ATK
--   library the process is running against.
--   
--   Since: 2.8
getBinaryAge :: (HasCallStack, MonadIO m) => m Word32

-- | Gets a default implementation of the ObjectFactory/type
--   registry. Note: For most toolkit maintainers, this will be the correct
--   registry for registering new Object factories. Following a call
--   to this function, maintainers may call registrySetFactoryType
--   to associate an ObjectFactory subclass with the GType of
--   objects for whom accessibility information will be provided.
getDefaultRegistry :: (HasCallStack, MonadIO m) => m Registry

-- | Gets the currently focused object.
--   
--   Since: 1.6
getFocusObject :: (HasCallStack, MonadIO m) => m Object

-- | Returns the interface age as passed to libtool when building the ATK
--   library the process is running against.
--   
--   Since: 2.8
getInterfaceAge :: (HasCallStack, MonadIO m) => m Word32

-- | Returns the major version number of the ATK library. (e.g. in ATK
--   version 2.7.4 this is 2.)
--   
--   This function is in the library, so it represents the ATK library your
--   code is running against. In contrast, the MAJOR_VERSION macro
--   represents the major version of the ATK headers you have included when
--   compiling your code.
--   
--   Since: 2.8
getMajorVersion :: (HasCallStack, MonadIO m) => m Word32

-- | Returns the micro version number of the ATK library. (e.g. in ATK
--   version 2.7.4 this is 4.)
--   
--   This function is in the library, so it represents the ATK library your
--   code is are running against. In contrast, the MICRO_VERSION
--   macro represents the micro version of the ATK headers you have
--   included when compiling your code.
--   
--   Since: 2.8
getMicroVersion :: (HasCallStack, MonadIO m) => m Word32

-- | Returns the minor version number of the ATK library. (e.g. in ATK
--   version 2.7.4 this is 7.)
--   
--   This function is in the library, so it represents the ATK library your
--   code is are running against. In contrast, the MINOR_VERSION
--   macro represents the minor version of the ATK headers you have
--   included when compiling your code.
--   
--   Since: 2.8
getMinorVersion :: (HasCallStack, MonadIO m) => m Word32

-- | Gets the root accessible container for the current application.
getRoot :: (HasCallStack, MonadIO m) => m Object

-- | Gets name string for the GUI toolkit implementing ATK for this
--   application.
getToolkitName :: (HasCallStack, MonadIO m) => m Text

-- | Gets version string for the GUI toolkit implementing ATK for this
--   application.
getToolkitVersion :: (HasCallStack, MonadIO m) => m Text

-- | Gets the current version for ATK.
--   
--   Since: 1.20
getVersion :: (HasCallStack, MonadIO m) => m Text

-- | Removes the specified focus tracker from the list of functions to be
--   called when any object receives focus.

-- | Deprecated: (Since version 2.9.4)Focus tracking has been dropped as
--   a feature to be implemented by ATK itself. If you need focus tracking
--   on your implementation, subscribe to the
--   Object::state-change "focused" signal.
removeFocusTracker :: (HasCallStack, MonadIO m) => Word32 -> m ()

-- | listenerId is the value returned by
--   atk_add_global_event_listener when you registered that
--   event listener.
--   
--   Toolkit implementor note: ATK provides a default implementation for
--   this virtual method. ATK implementors are discouraged from
--   reimplementing this method.
--   
--   Toolkit implementor note: this method is not intended to be used by
--   ATK implementors but by ATK consumers.
--   
--   Removes the specified event listener
removeGlobalEventListener :: (HasCallStack, MonadIO m) => Word32 -> m ()

-- | listenerId is the value returned by
--   atk_add_key_event_listener when you registered that
--   event listener.
--   
--   Removes the specified event listener.
removeKeyEventListener :: (HasCallStack, MonadIO m) => Word32 -> m ()

-- | The AtkRegistry is normally used to create appropriate ATK "peers" for
--   user interface components. Application developers usually need only
--   interact with the AtkRegistry by associating appropriate ATK
--   implementation classes with GObject classes via the
--   atk_registry_set_factory_type call, passing the appropriate GType for
--   application custom widget classes.
module GI.Atk.Objects.Registry

-- | Memory-managed wrapper type.
newtype Registry
Registry :: ManagedPtr Registry -> Registry

-- | Type class for types which can be safely cast to Registry, for
--   instance with toRegistry.
class GObject o => IsRegistry o

-- | Cast to Registry, for types for which this is known to be safe.
--   For general casts, use castTo.
toRegistry :: (MonadIO m, IsRegistry o) => o -> m Registry

-- | A convenience alias for Nothing :: Maybe
--   Registry.
noRegistry :: Maybe Registry

-- | Gets an ObjectFactory appropriate for creating
--   AtkObjects appropriate for type.
registryGetFactory :: (HasCallStack, MonadIO m, IsRegistry a) => a -> GType -> m ObjectFactory

-- | Provides a GType indicating the ObjectFactory subclass
--   associated with type.
registryGetFactoryType :: (HasCallStack, MonadIO m, IsRegistry a) => a -> GType -> m GType

-- | Associate an ObjectFactory subclass with a GType. Note:
--   The associated factoryType will thereafter be
--   responsible for the creation of new Object implementations for
--   instances appropriate for type.
registrySetFactoryType :: (HasCallStack, MonadIO m, IsRegistry a) => a -> GType -> GType -> m ()
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Registry.Registry a) => GI.Atk.Objects.Registry.IsRegistry a
instance GI.Atk.Objects.Registry.IsRegistry GI.Atk.Objects.Registry.Registry
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Registry.Registry
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Registry.Registry

-- | An AtkRelation describes a relation between an object and one or more
--   other objects. The actual relations that an object has with other
--   objects are defined as an AtkRelationSet, which is a set of
--   AtkRelations.
module GI.Atk.Objects.Relation

-- | Memory-managed wrapper type.
newtype Relation
Relation :: ManagedPtr Relation -> Relation

-- | Type class for types which can be safely cast to Relation, for
--   instance with toRelation.
class GObject o => IsRelation o

-- | Cast to Relation, for types for which this is known to be safe.
--   For general casts, use castTo.
toRelation :: (MonadIO m, IsRelation o) => o -> m Relation

-- | A convenience alias for Nothing :: Maybe
--   Relation.
noRelation :: Maybe Relation

-- | Adds the specified AtkObject to the target for the relation, if it is
--   not already present. See also objectAddRelationship.
--   
--   Since: 1.9
relationAddTarget :: (HasCallStack, MonadIO m, IsRelation a, IsObject b) => a -> b -> m ()

-- | Gets the type of relation
relationGetRelationType :: (HasCallStack, MonadIO m, IsRelation a) => a -> m RelationType

-- | Gets the target list of relation
relationGetTarget :: (HasCallStack, MonadIO m, IsRelation a) => a -> m [Object]

-- | Create a new relation for the specified key and the specified list of
--   targets. See also objectAddRelationship.
relationNew :: (HasCallStack, MonadIO m) => [Object] -> RelationType -> m Relation

-- | Remove the specified AtkObject from the target for the relation.
relationRemoveTarget :: (HasCallStack, MonadIO m, IsRelation a, IsObject b) => a -> b -> m Bool

-- | Construct a GValueConstruct with valid value for the
--   “relation-type” property. This is rarely needed directly, but
--   it is used by new.
constructRelationRelationType :: IsRelation o => RelationType -> IO (GValueConstruct o)

-- | Get the value of the “relation-type” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get relation #relationType
--   
getRelationRelationType :: (MonadIO m, IsRelation o) => o -> m RelationType

-- | Set the value of the “relation-type” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set relation [ #relationType := value ]
--   
setRelationRelationType :: (MonadIO m, IsRelation o) => o -> RelationType -> m ()

-- | Set the value of the “target” property to Nothing.
--   When overloading is enabled, this is equivalent to
--   
--   
--   clear #target
--   
clearRelationTarget :: (MonadIO m, IsRelation o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “target” property. This is rarely needed directly, but it is
--   used by new.
constructRelationTarget :: IsRelation o => ValueArray -> IO (GValueConstruct o)

-- | Get the value of the “target” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get relation #target
--   
getRelationTarget :: (MonadIO m, IsRelation o) => o -> m (Maybe ValueArray)

-- | Set the value of the “target” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set relation [ #target := value ]
--   
setRelationTarget :: (MonadIO m, IsRelation o) => o -> ValueArray -> m ()
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Relation.Relation a) => GI.Atk.Objects.Relation.IsRelation a
instance GI.Atk.Objects.Relation.IsRelation GI.Atk.Objects.Relation.Relation
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Relation.Relation
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Relation.Relation

-- | The AtkRelationSet held by an object establishes its relationships
--   with objects beyond the normal "parent/child" hierarchical
--   relationships that all user interface objects have. AtkRelationSets
--   establish whether objects are labelled or controlled by other
--   components, share group membership with other components (for instance
--   within a radio-button group), or share content which "flows" between
--   them, among other types of possible relationships.
module GI.Atk.Objects.RelationSet

-- | Memory-managed wrapper type.
newtype RelationSet
RelationSet :: ManagedPtr RelationSet -> RelationSet

-- | Type class for types which can be safely cast to RelationSet,
--   for instance with toRelationSet.
class GObject o => IsRelationSet o

-- | Cast to RelationSet, for types for which this is known to be
--   safe. For general casts, use castTo.
toRelationSet :: (MonadIO m, IsRelationSet o) => o -> m RelationSet

-- | A convenience alias for Nothing :: Maybe
--   RelationSet.
noRelationSet :: Maybe RelationSet

-- | Add a new relation to the current relation set if it is not already
--   present. This function ref's the AtkRelation so the caller of this
--   function should unref it to ensure that it will be destroyed when the
--   AtkRelationSet is destroyed.
relationSetAdd :: (HasCallStack, MonadIO m, IsRelationSet a, IsRelation b) => a -> b -> m ()

-- | Add a new relation of the specified type with the specified target to
--   the current relation set if the relation set does not contain a
--   relation of that type. If it is does contain a relation of that typea
--   the target is added to the relation.
--   
--   Since: 1.9
relationSetAddRelationByType :: (HasCallStack, MonadIO m, IsRelationSet a, IsObject b) => a -> RelationType -> b -> m ()

-- | Determines whether the relation set contains a relation that matches
--   the specified type.
relationSetContains :: (HasCallStack, MonadIO m, IsRelationSet a) => a -> RelationType -> m Bool

-- | Determines whether the relation set contains a relation that matches
--   the specified pair formed by type relationship and
--   object target.
relationSetContainsTarget :: (HasCallStack, MonadIO m, IsRelationSet a, IsObject b) => a -> RelationType -> b -> m Bool

-- | Determines the number of relations in a relation set.
relationSetGetNRelations :: (HasCallStack, MonadIO m, IsRelationSet a) => a -> m Int32

-- | Determines the relation at the specified position in the relation set.
relationSetGetRelation :: (HasCallStack, MonadIO m, IsRelationSet a) => a -> Int32 -> m Relation

-- | Finds a relation that matches the specified type.
relationSetGetRelationByType :: (HasCallStack, MonadIO m, IsRelationSet a) => a -> RelationType -> m Relation

-- | Creates a new empty relation set.
relationSetNew :: (HasCallStack, MonadIO m) => m RelationSet

-- | Removes a relation from the relation set. This function unref's the
--   Relation so it will be deleted unless there is another
--   reference to it.
relationSetRemove :: (HasCallStack, MonadIO m, IsRelationSet a, IsRelation b) => a -> b -> m ()
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.RelationSet.RelationSet a) => GI.Atk.Objects.RelationSet.IsRelationSet a
instance GI.Atk.Objects.RelationSet.IsRelationSet GI.Atk.Objects.RelationSet.RelationSet
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.RelationSet.RelationSet
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.RelationSet.RelationSet

-- | Together with Plug, Socket provides the ability to embed
--   accessibles from one process into another in a fashion that is
--   transparent to assistive technologies. Socket works as the
--   container of Plug, embedding it using the method
--   socketEmbed. Any accessible contained in the Plug will
--   appear to the assistive technologies as being inside the application
--   that created the Socket.
--   
--   The communication between a Socket and a Plug is done by
--   the IPC layer of the accessibility framework, normally implemented by
--   the D-Bus based implementation of AT-SPI (at-spi2). If that is the
--   case, at-spi-atk2 is the responsible to implement the abstract methods
--   plugGetId and socketEmbed, so an ATK implementor
--   shouldn't reimplement them. The process that contains the Plug
--   is responsible to send the ID returned by
--   atk_plug_id() to the process that contains the
--   Socket, so it could call the method socketEmbed in order
--   to embed it.
--   
--   For the same reasons, an implementor doesn't need to implement
--   objectGetNAccessibleChildren and
--   objectRefAccessibleChild. All the logic related to those
--   functions will be implemented by the IPC layer.
module GI.Atk.Objects.Socket

-- | Memory-managed wrapper type.
newtype Socket
Socket :: ManagedPtr Socket -> Socket

-- | Type class for types which can be safely cast to Socket, for
--   instance with toSocket.
class GObject o => IsSocket o

-- | Cast to Socket, for types for which this is known to be safe.
--   For general casts, use castTo.
toSocket :: (MonadIO m, IsSocket o) => o -> m Socket

-- | A convenience alias for Nothing :: Maybe Socket.
noSocket :: Maybe Socket

-- | Embeds the children of an Plug as the children of the
--   Socket. The plug may be in the same process or in a different
--   process.
--   
--   The class item used by this function should be filled in by the IPC
--   layer (usually at-spi2-atk). The implementor of the AtkSocket should
--   call this function and pass the id for the plug as returned by
--   plugGetId. It is the responsibility of the application to pass
--   the plug id on to the process implementing the Socket as
--   needed.
--   
--   Since: 1.30
socketEmbed :: (HasCallStack, MonadIO m, IsSocket a) => a -> Text -> m ()

-- | Determines whether or not the socket has an embedded plug.
--   
--   Since: 1.30
socketIsOccupied :: (HasCallStack, MonadIO m, IsSocket a) => a -> m Bool

-- | Creates a new Socket.
socketNew :: (HasCallStack, MonadIO m) => m Socket
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Socket.Socket a) => GI.Atk.Objects.Socket.IsSocket a
instance GI.Atk.Objects.Socket.IsSocket GI.Atk.Objects.Socket.Socket
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Socket.Socket
instance GI.Atk.Objects.Object.IsObject GI.Atk.Objects.Socket.Socket
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Socket.Socket
instance GI.Atk.Interfaces.Component.IsComponent GI.Atk.Objects.Socket.Socket

-- | An AtkStateSet is a read-only representation of the full set of
--   AtkStates that apply to an object at a given time.
--   This set is not meant to be modified, but rather created when
--   atk_object_ref_state_set() is called.
module GI.Atk.Objects.StateSet

-- | Memory-managed wrapper type.
newtype StateSet
StateSet :: ManagedPtr StateSet -> StateSet

-- | Type class for types which can be safely cast to StateSet, for
--   instance with toStateSet.
class GObject o => IsStateSet o

-- | Cast to StateSet, for types for which this is known to be safe.
--   For general casts, use castTo.
toStateSet :: (MonadIO m, IsStateSet o) => o -> m StateSet

-- | A convenience alias for Nothing :: Maybe
--   StateSet.
noStateSet :: Maybe StateSet

-- | Adds the state of the specified type to the state set if it is not
--   already present.
--   
--   Note that because an StateSet is a read-only object, this
--   method should be used to add a state to a newly-created set which will
--   then be returned by atk_object_ref_state_set. It
--   should not be used to modify the existing state of an object. See also
--   atk_object_notify_state_change.
stateSetAddState :: (HasCallStack, MonadIO m, IsStateSet a) => a -> StateType -> m Bool

-- | Adds the states of the specified types to the state set.
--   
--   Note that because an StateSet is a read-only object, this
--   method should be used to add states to a newly-created set which will
--   then be returned by atk_object_ref_state_set. It
--   should not be used to modify the existing state of an object. See also
--   atk_object_notify_state_change.
stateSetAddStates :: (HasCallStack, MonadIO m, IsStateSet a) => a -> [StateType] -> m ()

-- | Constructs the intersection of the two sets, returning Nothing
--   if the intersection is empty.
stateSetAndSets :: (HasCallStack, MonadIO m, IsStateSet a, IsStateSet b) => a -> b -> m StateSet

-- | Removes all states from the state set.
stateSetClearStates :: (HasCallStack, MonadIO m, IsStateSet a) => a -> m ()

-- | Checks whether the state for the specified type is in the specified
--   set.
stateSetContainsState :: (HasCallStack, MonadIO m, IsStateSet a) => a -> StateType -> m Bool

-- | Checks whether the states for all the specified types are in the
--   specified set.
stateSetContainsStates :: (HasCallStack, MonadIO m, IsStateSet a) => a -> [StateType] -> m Bool

-- | Checks whether the state set is empty, i.e. has no states set.
stateSetIsEmpty :: (HasCallStack, MonadIO m, IsStateSet a) => a -> m Bool

-- | Creates a new empty state set.
stateSetNew :: (HasCallStack, MonadIO m) => m StateSet

-- | Constructs the union of the two sets.
stateSetOrSets :: (HasCallStack, MonadIO m, IsStateSet a, IsStateSet b) => a -> b -> m (Maybe StateSet)

-- | Removes the state for the specified type from the state set.
--   
--   Note that because an StateSet is a read-only object, this
--   method should be used to remove a state to a newly-created set which
--   will then be returned by atk_object_ref_state_set. It
--   should not be used to modify the existing state of an object. See also
--   atk_object_notify_state_change.
stateSetRemoveState :: (HasCallStack, MonadIO m, IsStateSet a) => a -> StateType -> m Bool

-- | Constructs the exclusive-or of the two sets, returning Nothing
--   is empty. The set returned by this operation contains the states in
--   exactly one of the two sets.
stateSetXorSets :: (HasCallStack, MonadIO m, IsStateSet a, IsStateSet b) => a -> b -> m StateSet
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.StateSet.StateSet a) => GI.Atk.Objects.StateSet.IsStateSet a
instance GI.Atk.Objects.StateSet.IsStateSet GI.Atk.Objects.StateSet.StateSet
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.StateSet.StateSet
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.StateSet.StateSet

-- | A set of ATK utility functions which are used to support event
--   registration of various types, and obtaining the 'root' accessible of
--   a process and information about the current ATK implementation and
--   toolkit version.
module GI.Atk.Objects.Util

-- | Memory-managed wrapper type.
newtype Util
Util :: ManagedPtr Util -> Util

-- | Type class for types which can be safely cast to Util, for
--   instance with toUtil.
class GObject o => IsUtil o

-- | Cast to Util, for types for which this is known to be safe. For
--   general casts, use castTo.
toUtil :: (MonadIO m, IsUtil o) => o -> m Util

-- | A convenience alias for Nothing :: Maybe Util.
noUtil :: Maybe Util
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Util.Util a) => GI.Atk.Objects.Util.IsUtil a
instance GI.Atk.Objects.Util.IsUtil GI.Atk.Objects.Util.Util
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Util.Util
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Util.Util

-- | AtkAttribute is a string name/value pair representing a generic
--   attribute. This can be used to expose additional information from an
--   accessible object as a whole (see objectGetAttributes) or an
--   document (see documentGetAttributes). In the case of text
--   attributes (see textGetDefaultAttributes), TextAttribute
--   enum defines all the possible text attribute names. You can use
--   textAttributeGetName to get the string name from the enum
--   value. See also textAttributeForName and
--   textAttributeGetValue for more information.
--   
--   A string name/value pair representing a generic attribute.
module GI.Atk.Structs.Attribute

-- | Memory-managed wrapper type.
newtype Attribute
Attribute :: ManagedPtr Attribute -> Attribute

-- | Construct a Attribute struct initialized to zero.
newZeroAttribute :: MonadIO m => m Attribute

-- | A convenience alias for Nothing :: Maybe
--   Attribute.
noAttribute :: Maybe Attribute

-- | Frees the memory used by an AtkAttributeSet, including
--   all its AtkAttributes.
attributeSetFree :: (HasCallStack, MonadIO m) => [Ptr ()] -> m ()

-- | Set the value of the “name” field to Nothing. When
--   overloading is enabled, this is equivalent to
--   
--   
--   clear #name
--   
clearAttributeName :: MonadIO m => Attribute -> m ()

-- | Get the value of the “name” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   get attribute #name
--   
getAttributeName :: MonadIO m => Attribute -> m (Maybe Text)

-- | Set the value of the “name” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   set attribute [ #name := value ]
--   
setAttributeName :: MonadIO m => Attribute -> CString -> m ()

-- | Set the value of the “value” field to Nothing. When
--   overloading is enabled, this is equivalent to
--   
--   
--   clear #value
--   
clearAttributeValue :: MonadIO m => Attribute -> m ()

-- | Get the value of the “value” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get attribute #value
--   
getAttributeValue :: MonadIO m => Attribute -> m (Maybe Text)

-- | Set the value of the “value” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set attribute [ #value := value ]
--   
setAttributeValue :: MonadIO m => Attribute -> CString -> m ()
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Structs.Attribute.Attribute
instance (tag Data.Type.Equality.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.Atk.Structs.Attribute.Attribute tag

-- | No description available in the introspection data.
module GI.Atk.Structs.Implementor

-- | Memory-managed wrapper type.
newtype Implementor
Implementor :: ManagedPtr Implementor -> Implementor

-- | A convenience alias for Nothing :: Maybe
--   Implementor.
noImplementor :: Maybe Implementor

-- | Gets a reference to an object's Object implementation, if the
--   object implements AtkObjectIface
implementorRefAccessible :: (HasCallStack, MonadIO m) => Implementor -> m Object
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Structs.Implementor.Implementor

-- | Encapsulates information about a key event.
module GI.Atk.Structs.KeyEventStruct

-- | Memory-managed wrapper type.
newtype KeyEventStruct
KeyEventStruct :: ManagedPtr KeyEventStruct -> KeyEventStruct

-- | Construct a KeyEventStruct struct initialized to zero.
newZeroKeyEventStruct :: MonadIO m => m KeyEventStruct

-- | A convenience alias for Nothing :: Maybe
--   KeyEventStruct.
noKeyEventStruct :: Maybe KeyEventStruct

-- | Get the value of the “keycode” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get keyEventStruct #keycode
--   
getKeyEventStructKeycode :: MonadIO m => KeyEventStruct -> m Word16

-- | Set the value of the “keycode” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #keycode := value ]
--   
setKeyEventStructKeycode :: MonadIO m => KeyEventStruct -> Word16 -> m ()

-- | Get the value of the “keyval” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get keyEventStruct #keyval
--   
getKeyEventStructKeyval :: MonadIO m => KeyEventStruct -> m Word32

-- | Set the value of the “keyval” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #keyval := value ]
--   
setKeyEventStructKeyval :: MonadIO m => KeyEventStruct -> Word32 -> m ()

-- | Get the value of the “length” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get keyEventStruct #length
--   
getKeyEventStructLength :: MonadIO m => KeyEventStruct -> m Int32

-- | Set the value of the “length” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #length := value ]
--   
setKeyEventStructLength :: MonadIO m => KeyEventStruct -> Int32 -> m ()

-- | Get the value of the “state” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get keyEventStruct #state
--   
getKeyEventStructState :: MonadIO m => KeyEventStruct -> m Word32

-- | Set the value of the “state” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #state := value ]
--   
setKeyEventStructState :: MonadIO m => KeyEventStruct -> Word32 -> m ()

-- | Set the value of the “string” field to Nothing. When
--   overloading is enabled, this is equivalent to
--   
--   
--   clear #string
--   
clearKeyEventStructString :: MonadIO m => KeyEventStruct -> m ()

-- | Get the value of the “string” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get keyEventStruct #string
--   
getKeyEventStructString :: MonadIO m => KeyEventStruct -> m (Maybe Text)

-- | Set the value of the “string” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #string := value ]
--   
setKeyEventStructString :: MonadIO m => KeyEventStruct -> CString -> m ()

-- | Get the value of the “timestamp” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get keyEventStruct #timestamp
--   
getKeyEventStructTimestamp :: MonadIO m => KeyEventStruct -> m Word32

-- | Set the value of the “timestamp” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #timestamp := value ]
--   
setKeyEventStructTimestamp :: MonadIO m => KeyEventStruct -> Word32 -> m ()

-- | Get the value of the “type” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   get keyEventStruct #type
--   
getKeyEventStructType :: MonadIO m => KeyEventStruct -> m Int32

-- | Set the value of the “type” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   set keyEventStruct [ #type := value ]
--   
setKeyEventStructType :: MonadIO m => KeyEventStruct -> Int32 -> m ()
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Structs.KeyEventStruct.KeyEventStruct
instance (tag Data.Type.Equality.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.Atk.Structs.KeyEventStruct.KeyEventStruct tag

-- | This class is the primary class for accessibility support via the
--   Accessibility ToolKit (ATK). Objects which are instances of
--   Object (or instances of AtkObject-derived types) are queried
--   for properties which relate basic (and generic) properties of a UI
--   component such as name and description. Instances of Object may
--   also be queried as to whether they implement other ATK interfaces
--   (e.g. Action, Component, etc.), as appropriate to the
--   role which a given UI component plays in a user interface.
--   
--   All UI components in an application which provide useful information
--   or services to the user must provide corresponding Object
--   instances on request (in GTK+, for instance, usually on a call to
--   gtk_widget_get_accessible ()), either via ATK support
--   built into the toolkit for the widget class or ancestor class, or in
--   the case of custom widgets, if the inherited Object
--   implementation is insufficient, via instances of a new Object
--   subclass.
--   
--   See also: ObjectFactory, Registry. (GTK+ users see also
--   GtkAccessible).
module GI.Atk.Objects.Object

-- | Memory-managed wrapper type.
newtype Object
Object :: ManagedPtr Object -> Object

-- | Type class for types which can be safely cast to Object, for
--   instance with toObject.
class GObject o => IsObject o

-- | Cast to Object, for types for which this is known to be safe.
--   For general casts, use castTo.
toObject :: (MonadIO m, IsObject o) => o -> m Object

-- | A convenience alias for Nothing :: Maybe Object.
noObject :: Maybe Object

-- | Adds a relationship of the specified type with the specified target.
objectAddRelationship :: (HasCallStack, MonadIO m, IsObject a, IsObject b) => a -> RelationType -> b -> m Bool

-- | Gets the accessible id of the accessible.
--   
--   Since: 2.34
objectGetAccessibleId :: (HasCallStack, MonadIO m, IsObject a) => a -> m Text

-- | Get a list of properties applied to this object as a whole, as an
--   AtkAttributeSet consisting of name-value pairs. As
--   such these attributes may be considered weakly-typed properties or
--   annotations, as distinct from strongly-typed object data available via
--   other get/set methods. Not all objects have explicit "name-value pair"
--   AtkAttributeSet properties.
--   
--   Since: 1.12
objectGetAttributes :: (HasCallStack, MonadIO m, IsObject a) => a -> m [Ptr ()]

-- | Gets the accessible description of the accessible.
objectGetDescription :: (HasCallStack, MonadIO m, IsObject a) => a -> m Text

-- | Gets the 0-based index of this accessible in its parent; returns -1 if
--   the accessible does not have an accessible parent.
objectGetIndexInParent :: (HasCallStack, MonadIO m, IsObject a) => a -> m Int32

-- | Gets the layer of the accessible.

-- | Deprecated: Use atk_component_get_layer instead.
objectGetLayer :: (HasCallStack, MonadIO m, IsObject a) => a -> m Layer

-- | Gets the zorder of the accessible. The value G_MININT will be returned
--   if the layer of the accessible is not ATK_LAYER_MDI.

-- | Deprecated: Use atk_component_get_mdi_zorder instead.
objectGetMdiZorder :: (HasCallStack, MonadIO m, IsObject a) => a -> m Int32

-- | Gets the number of accessible children of the accessible.
objectGetNAccessibleChildren :: (HasCallStack, MonadIO m, IsObject a) => a -> m Int32

-- | Gets the accessible name of the accessible.
objectGetName :: (HasCallStack, MonadIO m, IsObject a) => a -> m Text

-- | Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of
--   accessible.
--   
--   Since: 2.8
objectGetObjectLocale :: (HasCallStack, MonadIO m, IsObject a) => a -> m Text

-- | Gets the accessible parent of the accessible. By default this is the
--   one assigned with objectSetParent, but it is assumed that ATK
--   implementors have ways to get the parent of the object without the
--   need of assigning it manually with objectSetParent, and will
--   return it with this method.
--   
--   If you are only interested on the parent assigned with
--   objectSetParent, use objectPeekParent.
objectGetParent :: (HasCallStack, MonadIO m, IsObject a) => a -> m Object

-- | Gets the role of the accessible.
objectGetRole :: (HasCallStack, MonadIO m, IsObject a) => a -> m Role

-- | This function is called when implementing subclasses of Object.
--   It does initialization required for the new object. It is intended
--   that this function should called only in the ..._new()
--   functions used to create an instance of a subclass of Object
objectInitialize :: (HasCallStack, MonadIO m, IsObject a) => a -> Ptr () -> m ()

-- | Emits a state-change signal for the specified state.
--   
--   Note that as a general rule when the state of an existing object
--   changes, emitting a notification is expected.
objectNotifyStateChange :: (HasCallStack, MonadIO m, IsObject a) => a -> Word64 -> Bool -> m ()

-- | Gets the accessible parent of the accessible, if it has been manually
--   assigned with atk_object_set_parent. Otherwise, this function returns
--   Nothing.
--   
--   This method is intended as an utility for ATK implementors, and not to
--   be exposed to accessible tools. See objectGetParent for further
--   reference.
objectPeekParent :: (HasCallStack, MonadIO m, IsObject a) => a -> m Object

-- | Gets a reference to the specified accessible child of the object. The
--   accessible children are 0-based so the first accessible child is at
--   index 0, the second at index 1 and so on.
objectRefAccessibleChild :: (HasCallStack, MonadIO m, IsObject a) => a -> Int32 -> m Object

-- | Gets the RelationSet associated with the object.
objectRefRelationSet :: (HasCallStack, MonadIO m, IsObject a) => a -> m RelationSet

-- | Gets a reference to the state set of the accessible; the caller must
--   unreference it when it is no longer needed.
objectRefStateSet :: (HasCallStack, MonadIO m, IsObject a) => a -> m StateSet

-- | Removes a property change handler.

-- | Deprecated: (Since version 2.12)See
--   atk_object_connect_property_change_handler()
objectRemovePropertyChangeHandler :: (HasCallStack, MonadIO m, IsObject a) => a -> Word32 -> m ()

-- | Removes a relationship of the specified type with the specified
--   target.
objectRemoveRelationship :: (HasCallStack, MonadIO m, IsObject a, IsObject b) => a -> RelationType -> b -> m Bool

-- | Sets the accessible ID of the accessible. This is not meant to be
--   presented to the user, but to be an ID which is stable over
--   application development. Typically, this is the gtkbuilder ID. Such an
--   ID will be available for instance to identify a given well-known
--   accessible object for tailored screen reading, or for automatic
--   regression testing.
--   
--   Since: 2.34
objectSetAccessibleId :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> m ()

-- | Sets the accessible description of the accessible. You can't set the
--   description to NULL. This is reserved for the initial value. In this
--   aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set the
--   name to a empty value you can use "".
objectSetDescription :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> m ()

-- | Sets the accessible name of the accessible. You can't set the name to
--   NULL. This is reserved for the initial value. In this aspect NULL is
--   similar to ATK_ROLE_UNKNOWN. If you want to set the name to a empty
--   value you can use "".
objectSetName :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> m ()

-- | Sets the accessible parent of the accessible. parent
--   can be NULL.
objectSetParent :: (HasCallStack, MonadIO m, IsObject a, IsObject b) => a -> b -> m ()

-- | Sets the role of the accessible.
objectSetRole :: (HasCallStack, MonadIO m, IsObject a) => a -> Role -> m ()

-- | Get the value of the “accessible-component-layer” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleComponentLayer
--   
getObjectAccessibleComponentLayer :: (MonadIO m, IsObject o) => o -> m Int32

-- | Get the value of the “accessible-component-mdi-zorder”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleComponentMdiZorder
--   
getObjectAccessibleComponentMdiZorder :: (MonadIO m, IsObject o) => o -> m Int32

-- | Set the value of the “accessible-description” property to
--   Nothing. When overloading is enabled, this is equivalent
--   to
--   
--   
--   clear #accessibleDescription
--   
clearObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-description” property. This is rarely needed
--   directly, but it is used by new.
constructObjectAccessibleDescription :: IsObject o => Text -> IO (GValueConstruct o)

-- | Get the value of the “accessible-description” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleDescription
--   
getObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> m (Maybe Text)

-- | Set the value of the “accessible-description” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleDescription := value ]
--   
setObjectAccessibleDescription :: (MonadIO m, IsObject o) => o -> Text -> m ()

-- | Get the value of the “accessible-hypertext-nlinks” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleHypertextNlinks
--   
getObjectAccessibleHypertextNlinks :: (MonadIO m, IsObject o) => o -> m Int32

-- | Set the value of the “accessible-name” property to
--   Nothing. When overloading is enabled, this is equivalent
--   to
--   
--   
--   clear #accessibleName
--   
clearObjectAccessibleName :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-name” property. This is rarely needed directly,
--   but it is used by new.
constructObjectAccessibleName :: IsObject o => Text -> IO (GValueConstruct o)

-- | Get the value of the “accessible-name” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleName
--   
getObjectAccessibleName :: (MonadIO m, IsObject o) => o -> m (Maybe Text)

-- | Set the value of the “accessible-name” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleName := value ]
--   
setObjectAccessibleName :: (MonadIO m, IsObject o) => o -> Text -> m ()

-- | Set the value of the “accessible-parent” property to
--   Nothing. When overloading is enabled, this is equivalent
--   to
--   
--   
--   clear #accessibleParent
--   
clearObjectAccessibleParent :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-parent” property. This is rarely needed directly,
--   but it is used by new.
constructObjectAccessibleParent :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)

-- | Get the value of the “accessible-parent” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleParent
--   
getObjectAccessibleParent :: (MonadIO m, IsObject o) => o -> m (Maybe Object)

-- | Set the value of the “accessible-parent” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleParent := value ]
--   
setObjectAccessibleParent :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-role” property. This is rarely needed directly,
--   but it is used by new.
constructObjectAccessibleRole :: IsObject o => Role -> IO (GValueConstruct o)

-- | Get the value of the “accessible-role” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleRole
--   
getObjectAccessibleRole :: (MonadIO m, IsObject o) => o -> m Role

-- | Set the value of the “accessible-role” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleRole := value ]
--   
setObjectAccessibleRole :: (MonadIO m, IsObject o) => o -> Role -> m ()

-- | Set the value of the “accessible-table-caption” property to
--   Nothing. When overloading is enabled, this is equivalent
--   to
--   
--   
--   clear #accessibleTableCaption
--   
clearObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-caption” property. This is rarely needed
--   directly, but it is used by new.
constructObjectAccessibleTableCaption :: IsObject o => Text -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-caption” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableCaption
--   
getObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> m (Maybe Text)

-- | Set the value of the “accessible-table-caption” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableCaption := value ]
--   
setObjectAccessibleTableCaption :: (MonadIO m, IsObject o) => o -> Text -> m ()

-- | Set the value of the “accessible-table-caption-object”
--   property to Nothing. When overloading is enabled, this
--   is equivalent to
--   
--   
--   clear #accessibleTableCaptionObject
--   
clearObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-caption-object” property. This is rarely
--   needed directly, but it is used by new.
constructObjectAccessibleTableCaptionObject :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-caption-object”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableCaptionObject
--   
getObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o) => o -> m (Maybe Object)

-- | Set the value of the “accessible-table-caption-object”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableCaptionObject := value ]
--   
setObjectAccessibleTableCaptionObject :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()

-- | Set the value of the “accessible-table-column-description”
--   property to Nothing. When overloading is enabled, this
--   is equivalent to
--   
--   
--   clear #accessibleTableColumnDescription
--   
clearObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-column-description” property. This is
--   rarely needed directly, but it is used by new.
constructObjectAccessibleTableColumnDescription :: IsObject o => Text -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-column-description”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableColumnDescription
--   
getObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> m (Maybe Text)

-- | Set the value of the “accessible-table-column-description”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableColumnDescription := value ]
--   
setObjectAccessibleTableColumnDescription :: (MonadIO m, IsObject o) => o -> Text -> m ()

-- | Set the value of the “accessible-table-column-header”
--   property to Nothing. When overloading is enabled, this
--   is equivalent to
--   
--   
--   clear #accessibleTableColumnHeader
--   
clearObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-column-header” property. This is rarely
--   needed directly, but it is used by new.
constructObjectAccessibleTableColumnHeader :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-column-header”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableColumnHeader
--   
getObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o) => o -> m (Maybe Object)

-- | Set the value of the “accessible-table-column-header”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableColumnHeader := value ]
--   
setObjectAccessibleTableColumnHeader :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()

-- | Set the value of the “accessible-table-row-description”
--   property to Nothing. When overloading is enabled, this
--   is equivalent to
--   
--   
--   clear #accessibleTableRowDescription
--   
clearObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-row-description” property. This is rarely
--   needed directly, but it is used by new.
constructObjectAccessibleTableRowDescription :: IsObject o => Text -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-row-description”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableRowDescription
--   
getObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> m (Maybe Text)

-- | Set the value of the “accessible-table-row-description”
--   property. When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableRowDescription := value ]
--   
setObjectAccessibleTableRowDescription :: (MonadIO m, IsObject o) => o -> Text -> m ()

-- | Set the value of the “accessible-table-row-header” property
--   to Nothing. When overloading is enabled, this is
--   equivalent to
--   
--   
--   clear #accessibleTableRowHeader
--   
clearObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-row-header” property. This is rarely needed
--   directly, but it is used by new.
constructObjectAccessibleTableRowHeader :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-row-header” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableRowHeader
--   
getObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o) => o -> m (Maybe Object)

-- | Set the value of the “accessible-table-row-header” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableRowHeader := value ]
--   
setObjectAccessibleTableRowHeader :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()

-- | Set the value of the “accessible-table-summary” property to
--   Nothing. When overloading is enabled, this is equivalent
--   to
--   
--   
--   clear #accessibleTableSummary
--   
clearObjectAccessibleTableSummary :: (MonadIO m, IsObject o) => o -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-table-summary” property. This is rarely needed
--   directly, but it is used by new.
constructObjectAccessibleTableSummary :: (IsObject o, IsObject a) => a -> IO (GValueConstruct o)

-- | Get the value of the “accessible-table-summary” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleTableSummary
--   
getObjectAccessibleTableSummary :: (MonadIO m, IsObject o) => o -> m (Maybe Object)

-- | Set the value of the “accessible-table-summary” property.
--   When overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleTableSummary := value ]
--   
setObjectAccessibleTableSummary :: (MonadIO m, IsObject o, IsObject a) => o -> a -> m ()

-- | Construct a GValueConstruct with valid value for the
--   “accessible-value” property. This is rarely needed directly,
--   but it is used by new.
constructObjectAccessibleValue :: IsObject o => Double -> IO (GValueConstruct o)

-- | Get the value of the “accessible-value” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get object #accessibleValue
--   
getObjectAccessibleValue :: (MonadIO m, IsObject o) => o -> m Double

-- | Set the value of the “accessible-value” property. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set object [ #accessibleValue := value ]
--   
setObjectAccessibleValue :: (MonadIO m, IsObject o) => o -> Double -> m ()

-- | Type for the callback on the (unwrapped) C side.
type C_ObjectActiveDescendantChangedCallback = Ptr () -> Ptr Object -> Ptr () -> IO ()

-- | The "active-descendant-changed" signal is emitted by an object which
--   has the state ATK_STATE_MANAGES_DESCENDANTS when the focus object in
--   the object changes. For instance, a table will emit the signal when
--   the cell in the table which has focus changes.
type ObjectActiveDescendantChangedCallback = Maybe Object " /@arg1@/: the newly focused object. " -> IO ()

-- | Connect a signal handler for the “active-descendant-changed”
--   signal, to be run after the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   after object #activeDescendantChanged callback
--   
afterObjectActiveDescendantChanged :: (IsObject a, MonadIO m) => a -> ObjectActiveDescendantChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ObjectActiveDescendantChanged :: ObjectActiveDescendantChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ObjectActiveDescendantChangedCallback.
mk_ObjectActiveDescendantChangedCallback :: C_ObjectActiveDescendantChangedCallback -> IO (FunPtr C_ObjectActiveDescendantChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ObjectActiveDescendantChangedCallback.
noObjectActiveDescendantChangedCallback :: Maybe ObjectActiveDescendantChangedCallback

-- | Connect a signal handler for the “active-descendant-changed”
--   signal, to be run before the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   on object #activeDescendantChanged callback
--   
onObjectActiveDescendantChanged :: (IsObject a, MonadIO m) => a -> ObjectActiveDescendantChangedCallback -> m SignalHandlerId

-- | Wrap a ObjectActiveDescendantChangedCallback into a
--   C_ObjectActiveDescendantChangedCallback.
wrap_ObjectActiveDescendantChangedCallback :: ObjectActiveDescendantChangedCallback -> C_ObjectActiveDescendantChangedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_ObjectChildrenChangedCallback = Ptr () -> Word32 -> Ptr Object -> Ptr () -> IO ()

-- | The signal "children-changed" is emitted when a child is added or
--   removed form an object. It supports two details: "add" and "remove"
type ObjectChildrenChangedCallback = Word32 " /@arg1@/: The index of the added or removed child. The value can be -1. This is used if the value is not known by the implementor when the child is added\/removed or irrelevant. " -> Maybe Object " /@arg2@/: A gpointer to the child AtkObject which was added or removed. If the child was removed, it is possible that it is not available for the implementor. In that case this pointer can be NULL. " -> IO ()

-- | Connect a signal handler for the “children-changed” signal,
--   to be run after the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   after object #childrenChanged callback
--   
afterObjectChildrenChanged :: (IsObject a, MonadIO m) => a -> ObjectChildrenChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ObjectChildrenChanged :: ObjectChildrenChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ObjectChildrenChangedCallback.
mk_ObjectChildrenChangedCallback :: C_ObjectChildrenChangedCallback -> IO (FunPtr C_ObjectChildrenChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ObjectChildrenChangedCallback.
noObjectChildrenChangedCallback :: Maybe ObjectChildrenChangedCallback

-- | Connect a signal handler for the “children-changed” signal,
--   to be run before the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   on object #childrenChanged callback
--   
onObjectChildrenChanged :: (IsObject a, MonadIO m) => a -> ObjectChildrenChangedCallback -> m SignalHandlerId

-- | Wrap a ObjectChildrenChangedCallback into a
--   C_ObjectChildrenChangedCallback.
wrap_ObjectChildrenChangedCallback :: ObjectChildrenChangedCallback -> C_ObjectChildrenChangedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_ObjectFocusEventCallback = Ptr () -> CInt -> Ptr () -> IO ()

-- | The signal "focus-event" is emitted when an object gained or lost
--   focus.

-- | Deprecated: (Since version 2.9.4)Use the
--   Object::state-change signal instead.
type ObjectFocusEventCallback = Bool " /@arg1@/: a boolean value which indicates whether the object gained or lost focus. " -> IO ()

-- | Connect a signal handler for the “focus-event” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after object #focusEvent callback
--   
afterObjectFocusEvent :: (IsObject a, MonadIO m) => a -> ObjectFocusEventCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ObjectFocusEvent :: ObjectFocusEventCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ObjectFocusEventCallback.
mk_ObjectFocusEventCallback :: C_ObjectFocusEventCallback -> IO (FunPtr C_ObjectFocusEventCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ObjectFocusEventCallback.
noObjectFocusEventCallback :: Maybe ObjectFocusEventCallback

-- | Connect a signal handler for the “focus-event” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on object #focusEvent callback
--   
onObjectFocusEvent :: (IsObject a, MonadIO m) => a -> ObjectFocusEventCallback -> m SignalHandlerId

-- | Wrap a ObjectFocusEventCallback into a
--   C_ObjectFocusEventCallback.
wrap_ObjectFocusEventCallback :: ObjectFocusEventCallback -> C_ObjectFocusEventCallback

-- | Type for the callback on the (unwrapped) C side.
type C_ObjectPropertyChangeCallback = Ptr () -> Ptr PropertyValues -> Ptr () -> IO ()

-- | The signal "property-change" is emitted when an object's property
--   value changes. arg1 contains an PropertyValues
--   with the name and the new value of the property whose value has
--   changed. Note that, as with GObject notify, getting this signal does
--   not guarantee that the value of the property has actually changed; it
--   may also be emitted when the setter of the property is called to
--   reinstate the previous value.
--   
--   Toolkit implementor note: ATK implementors should use
--   objectNotify to emit property-changed notifications.
--   Object::property-changed is needed by the
--   implementation of atk_add_global_event_listener()
--   because GObject notify doesn't support emission hooks.
type ObjectPropertyChangeCallback = Maybe PropertyValues " /@arg1@/: an 'GI.Atk.Structs.PropertyValues.PropertyValues' containing the new value of the property which changed. " -> IO ()

-- | Connect a signal handler for the “property-change” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after object #propertyChange callback
--   
afterObjectPropertyChange :: (IsObject a, MonadIO m) => a -> ObjectPropertyChangeCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ObjectPropertyChange :: ObjectPropertyChangeCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ObjectPropertyChangeCallback.
mk_ObjectPropertyChangeCallback :: C_ObjectPropertyChangeCallback -> IO (FunPtr C_ObjectPropertyChangeCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ObjectPropertyChangeCallback.
noObjectPropertyChangeCallback :: Maybe ObjectPropertyChangeCallback

-- | Connect a signal handler for the “property-change” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on object #propertyChange callback
--   
onObjectPropertyChange :: (IsObject a, MonadIO m) => a -> ObjectPropertyChangeCallback -> m SignalHandlerId

-- | Wrap a ObjectPropertyChangeCallback into a
--   C_ObjectPropertyChangeCallback.
wrap_ObjectPropertyChangeCallback :: ObjectPropertyChangeCallback -> C_ObjectPropertyChangeCallback

-- | Type for the callback on the (unwrapped) C side.
type C_ObjectStateChangeCallback = Ptr () -> CString -> CInt -> Ptr () -> IO ()

-- | The "state-change" signal is emitted when an object's state changes.
--   The detail value identifies the state type which has changed.
type ObjectStateChangeCallback = Text " /@arg1@/: The name of the state which has changed " -> Bool " /@arg2@/: A boolean which indicates whether the state has been set or unset. " -> IO ()

-- | Connect a signal handler for the “state-change” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after object #stateChange callback
--   
afterObjectStateChange :: (IsObject a, MonadIO m) => a -> ObjectStateChangeCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ObjectStateChange :: ObjectStateChangeCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ObjectStateChangeCallback.
mk_ObjectStateChangeCallback :: C_ObjectStateChangeCallback -> IO (FunPtr C_ObjectStateChangeCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ObjectStateChangeCallback.
noObjectStateChangeCallback :: Maybe ObjectStateChangeCallback

-- | Connect a signal handler for the “state-change” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on object #stateChange callback
--   
onObjectStateChange :: (IsObject a, MonadIO m) => a -> ObjectStateChangeCallback -> m SignalHandlerId

-- | Wrap a ObjectStateChangeCallback into a
--   C_ObjectStateChangeCallback.
wrap_ObjectStateChangeCallback :: ObjectStateChangeCallback -> C_ObjectStateChangeCallback

-- | Type for the callback on the (unwrapped) C side.
type C_ObjectVisibleDataChangedCallback = Ptr () -> Ptr () -> IO ()

-- | The "visible-data-changed" signal is emitted when the visual
--   appearance of the object changed.
type ObjectVisibleDataChangedCallback = IO ()

-- | Connect a signal handler for the “visible-data-changed”
--   signal, to be run after the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   after object #visibleDataChanged callback
--   
afterObjectVisibleDataChanged :: (IsObject a, MonadIO m) => a -> ObjectVisibleDataChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ObjectVisibleDataChanged :: ObjectVisibleDataChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ObjectVisibleDataChangedCallback.
mk_ObjectVisibleDataChangedCallback :: C_ObjectVisibleDataChangedCallback -> IO (FunPtr C_ObjectVisibleDataChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ObjectVisibleDataChangedCallback.
noObjectVisibleDataChangedCallback :: Maybe ObjectVisibleDataChangedCallback

-- | Connect a signal handler for the “visible-data-changed”
--   signal, to be run before the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   on object #visibleDataChanged callback
--   
onObjectVisibleDataChanged :: (IsObject a, MonadIO m) => a -> ObjectVisibleDataChangedCallback -> m SignalHandlerId

-- | Wrap a ObjectVisibleDataChangedCallback into a
--   C_ObjectVisibleDataChangedCallback.
wrap_ObjectVisibleDataChangedCallback :: ObjectVisibleDataChangedCallback -> C_ObjectVisibleDataChangedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Objects.Object.Object a) => GI.Atk.Objects.Object.IsObject a
instance GI.Atk.Objects.Object.IsObject GI.Atk.Objects.Object.Object
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Objects.Object.Object
instance GI.GObject.Objects.Object.IsObject GI.Atk.Objects.Object.Object

module GI.Atk.Objects

module GI.Atk.Callbacks

-- | Type for the callback on the (unwrapped) C side.
type C_EventListener = Ptr Object -> IO ()

-- | A function which is called when an object emits a matching event, as
--   used in atk_add_focus_tracker. Currently the only
--   events for which object-specific handlers are supported are events of
--   type "focus:". Most clients of ATK will prefer to attach signal
--   handlers for the various ATK signals instead.
--   
--   see atk_add_focus_tracker.
type EventListener = Object " /@obj@/: An 'GI.Atk.Objects.Object.Object' instance for whom the callback will be called when the specified event (e.g. \'focus:\') takes place. " -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_EventListener :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_EventListener -> a -> m ()

-- | Wrap the callback into a Closure.
genClosure_EventListener :: EventListener -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_EventListener.
mk_EventListener :: C_EventListener -> IO (FunPtr C_EventListener)

-- | A convenience synonym for Nothing :: Maybe
--   EventListener.
noEventListener :: Maybe EventListener

-- | Wrap a EventListener into a C_EventListener.
wrap_EventListener :: Maybe (Ptr (FunPtr C_EventListener)) -> EventListener -> C_EventListener

-- | Type for the callback on the (unwrapped) C side.
type C_EventListenerInit = IO ()

-- | An EventListenerInit function is a special function that is
--   called in order to initialize the per-object event registration system
--   used by EventListener, if any preparation is required.
--   
--   see atk_focus_tracker_init.
type EventListenerInit = IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_EventListenerInit :: (HasCallStack, MonadIO m) => FunPtr C_EventListenerInit -> m ()

-- | Wrap the callback into a Closure.
genClosure_EventListenerInit :: EventListenerInit -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_EventListenerInit.
mk_EventListenerInit :: C_EventListenerInit -> IO (FunPtr C_EventListenerInit)

-- | A convenience synonym for Nothing :: Maybe
--   EventListenerInit.
noEventListenerInit :: Maybe EventListenerInit

-- | Wrap a EventListenerInit into a C_EventListenerInit.
wrap_EventListenerInit :: Maybe (Ptr (FunPtr C_EventListenerInit)) -> EventListenerInit -> C_EventListenerInit

-- | Type for the callback on the (unwrapped) C side.
type C_FocusHandler = Ptr Object -> CInt -> IO ()

-- | The type of callback function used for
--   atk_component_add_focus_handler() and
--   componentRemoveFocusHandler

-- | Deprecated: (Since version 2.9.4)Deprecated with
--   atk_component_add_focus_handler()and
--   componentRemoveFocusHandler. See thosemethods for more
--   information.
type FocusHandler = Object " /@object@/: the 'GI.Atk.Objects.Object.Object' that receives\/lose the focus " -> Bool " /@focusIn@/: TRUE if the object receives the focus " -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_FocusHandler :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_FocusHandler -> a -> Bool -> m ()

-- | Wrap the callback into a Closure.
genClosure_FocusHandler :: FocusHandler -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_FocusHandler.
mk_FocusHandler :: C_FocusHandler -> IO (FunPtr C_FocusHandler)

-- | A convenience synonym for Nothing :: Maybe
--   FocusHandler.
noFocusHandler :: Maybe FocusHandler

-- | Wrap a FocusHandler into a C_FocusHandler.
wrap_FocusHandler :: Maybe (Ptr (FunPtr C_FocusHandler)) -> FocusHandler -> C_FocusHandler

-- | Type for the callback on the (unwrapped) C side.
type C_Function = Ptr () -> IO CInt

-- | An AtkFunction is a function definition used for padding which has
--   been added to class and interface structures to allow for expansion in
--   the future.
type Function = IO Bool " __Returns:__ not used "

-- | An AtkFunction is a function definition used for padding which has
--   been added to class and interface structures to allow for expansion in
--   the future.
type Function_WithClosures = Ptr () " /@userData@/: custom data defined by the user " -> IO Bool " __Returns:__ not used "

-- | A simple wrapper that ignores the closure arguments.
drop_closures_Function :: Function -> Function_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_Function :: (HasCallStack, MonadIO m) => FunPtr C_Function -> Ptr () -> m Bool

-- | Wrap the callback into a Closure.
genClosure_Function :: Function -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_Function.
mk_Function :: C_Function -> IO (FunPtr C_Function)

-- | A convenience synonym for Nothing :: Maybe
--   Function.
noFunction :: Maybe Function

-- | A convenience synonym for Nothing :: Maybe
--   Function_WithClosures.
noFunction_WithClosures :: Maybe Function_WithClosures

-- | Wrap a Function into a C_Function.
wrap_Function :: Maybe (Ptr (FunPtr C_Function)) -> Function_WithClosures -> C_Function

-- | Type for the callback on the (unwrapped) C side.
type C_KeySnoopFunc = Ptr KeyEventStruct -> Ptr () -> IO Int32

-- | An KeySnoopFunc is a type of callback which is called whenever
--   a key event occurs, if registered via atk_add_key_event_listener. It
--   allows for pre-emptive interception of key events via the return code
--   as described below.
type KeySnoopFunc = KeyEventStruct " /@event@/: an AtkKeyEventStruct containing information about the key event for which notification is being given. " -> IO Int32 " __Returns:__ TRUE (nonzero) if the event emission should be stopped and the event discarded without being passed to the normal GUI recipient; FALSE (zero) if the event dispatch to the client application should proceed as normal.  see atk_add_key_event_listener. "

-- | An KeySnoopFunc is a type of callback which is called whenever
--   a key event occurs, if registered via atk_add_key_event_listener. It
--   allows for pre-emptive interception of key events via the return code
--   as described below.
type KeySnoopFunc_WithClosures = KeyEventStruct " /@event@/: an AtkKeyEventStruct containing information about the key event for which notification is being given. " -> Ptr () " /@userData@/: a block of data which will be passed to the event listener, on notification. " -> IO Int32 " __Returns:__ TRUE (nonzero) if the event emission should be stopped and the event discarded without being passed to the normal GUI recipient; FALSE (zero) if the event dispatch to the client application should proceed as normal.  see atk_add_key_event_listener. "

-- | A simple wrapper that ignores the closure arguments.
drop_closures_KeySnoopFunc :: KeySnoopFunc -> KeySnoopFunc_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_KeySnoopFunc :: (HasCallStack, MonadIO m) => FunPtr C_KeySnoopFunc -> KeyEventStruct -> Ptr () -> m Int32

-- | Wrap the callback into a Closure.
genClosure_KeySnoopFunc :: KeySnoopFunc -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_KeySnoopFunc.
mk_KeySnoopFunc :: C_KeySnoopFunc -> IO (FunPtr C_KeySnoopFunc)

-- | A convenience synonym for Nothing :: Maybe
--   KeySnoopFunc.
noKeySnoopFunc :: Maybe KeySnoopFunc

-- | A convenience synonym for Nothing :: Maybe
--   KeySnoopFunc_WithClosures.
noKeySnoopFunc_WithClosures :: Maybe KeySnoopFunc_WithClosures

-- | Wrap a KeySnoopFunc into a C_KeySnoopFunc.
wrap_KeySnoopFunc :: Maybe (Ptr (FunPtr C_KeySnoopFunc)) -> KeySnoopFunc_WithClosures -> C_KeySnoopFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PropertyChangeHandler = Ptr Object -> Ptr PropertyValues -> IO ()

-- | An AtkPropertyChangeHandler is a function which is executed when an
--   AtkObject's property changes value. It is specified in a call to
--   atk_object_connect_property_change_handler().

-- | Deprecated: Since 2.12.
type PropertyChangeHandler = Object " /@obj@/: atkobject which property changes " -> PropertyValues " /@vals@/: values changed " -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PropertyChangeHandler :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_PropertyChangeHandler -> a -> PropertyValues -> m ()

-- | Wrap the callback into a Closure.
genClosure_PropertyChangeHandler :: PropertyChangeHandler -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_PropertyChangeHandler.
mk_PropertyChangeHandler :: C_PropertyChangeHandler -> IO (FunPtr C_PropertyChangeHandler)

-- | A convenience synonym for Nothing :: Maybe
--   PropertyChangeHandler.
noPropertyChangeHandler :: Maybe PropertyChangeHandler

-- | Wrap a PropertyChangeHandler into a
--   C_PropertyChangeHandler.
wrap_PropertyChangeHandler :: Maybe (Ptr (FunPtr C_PropertyChangeHandler)) -> PropertyChangeHandler -> C_PropertyChangeHandler

-- | Note: oldValue field of PropertyValues will not
--   contain a valid value. This is a field defined with the purpose of
--   contain the previous value of the property, but is not used anymore.
module GI.Atk.Structs.PropertyValues

-- | Memory-managed wrapper type.
newtype PropertyValues
PropertyValues :: ManagedPtr PropertyValues -> PropertyValues

-- | Construct a PropertyValues struct initialized to zero.
newZeroPropertyValues :: MonadIO m => m PropertyValues

-- | A convenience alias for Nothing :: Maybe
--   PropertyValues.
noPropertyValues :: Maybe PropertyValues

-- | Get the value of the “new_value” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get propertyValues #newValue
--   
getPropertyValuesNewValue :: MonadIO m => PropertyValues -> m GValue

-- | Get the value of the “old_value” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get propertyValues #oldValue
--   
getPropertyValuesOldValue :: MonadIO m => PropertyValues -> m GValue

-- | Set the value of the “property_name” field to Nothing.
--   When overloading is enabled, this is equivalent to
--   
--   
--   clear #propertyName
--   
clearPropertyValuesPropertyName :: MonadIO m => PropertyValues -> m ()

-- | Get the value of the “property_name” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get propertyValues #propertyName
--   
getPropertyValuesPropertyName :: MonadIO m => PropertyValues -> m (Maybe Text)

-- | Set the value of the “property_name” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set propertyValues [ #propertyName := value ]
--   
setPropertyValuesPropertyName :: MonadIO m => PropertyValues -> CString -> m ()
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Structs.PropertyValues.PropertyValues
instance (tag Data.Type.Equality.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.Atk.Structs.PropertyValues.PropertyValues tag

-- | Value should be implemented for components which either display
--   a value from a bounded range, or which allow the user to specify a
--   value from a bounded range, or both. For instance, most sliders and
--   range controls, as well as dials, should have Object
--   representations which implement Value on the component's
--   behalf. AtKValues may be read-only, in which case
--   attempts to alter the value return would fail.
--   
--   <refsect1 id="current-value-text"> <title>On the subject
--   of current value text</title> <para> In addition to
--   providing the current value, implementors can optionally provide an
--   end-user-consumable textual description associated with this value.
--   This description should be included when the numeric value fails to
--   convey the full, on-screen representation seen by users. </para>
--   
--   <example> <title>Password strength</title> A
--   password strength meter whose value changes as the user types their
--   new password. Red is used for values less than 4.0, yellow for values
--   between 4.0 and 7.0, and green for values greater than 7.0. In this
--   instance, value text should be provided by the implementor.
--   Appropriate value text would be "weak", "acceptable," and "strong"
--   respectively. </example>
--   
--   A level bar whose value changes to reflect the battery charge. The
--   color remains the same regardless of the charge and there is no
--   on-screen text reflecting the fullness of the battery. In this case,
--   because the position within the bar is the only indication the user
--   has of the current charge, value text should not be provided by the
--   implementor.
--   
--   <refsect2 id="implementor-notes"> <title>Implementor
--   Notes</title> <para> Implementors should bear in mind that
--   assistive technologies will likely prefer the value text provided over
--   the numeric value when presenting a widget's value. As a result,
--   strings not intended for end users should not be exposed in the value
--   text, and strings which are exposed should be localized. In the case
--   of widgets which display value text on screen, for instance through a
--   separate label in close proximity to the value-displaying widget, it
--   is still expected that implementors will expose the value text using
--   the above API. </para>
--   
--   <para> Value should NOT be implemented for widgets whose
--   displayed value is not reflective of a meaningful amount. For
--   instance, a progress pulse indicator whose value alternates between
--   0.0 and 1.0 to indicate that some process is still taking place should
--   not implement Value because the current value does not reflect
--   progress towards completion. </para> </refsect2>
--   </refsect1>
--   
--   <refsect1 id="ranges"> <title>On the subject of
--   ranges</title> <para> In addition to providing the minimum
--   and maximum values, implementors can optionally provide details about
--   subranges associated with the widget. These details should be provided
--   by the implementor when both of the following are communicated
--   visually to the end user: </para> <itemizedlist>
--   <listitem>The existence of distinct ranges such as "weak",
--   "acceptable", and "strong" indicated by color, bar tick marks, and/or
--   on-screen text.</listitem> <listitem>Where the current
--   value stands within a given subrange, for instance illustrating
--   progression from very "weak" towards nearly "acceptable" through
--   changes in shade and/or position on the bar within the "weak"
--   subrange.</listitem> </itemizedlist> <para> If both
--   of the above do not apply to the widget, it should be sufficient to
--   expose the numeric value, along with the value text if appropriate, to
--   make the widget accessible. </para>
--   
--   <refsect2 id="ranges-implementor-notes">
--   <title>Implementor Notes</title> <para> If providing
--   subrange details is deemed necessary, all possible values of the
--   widget are expected to fall within one of the subranges defined by the
--   implementor. </para> </refsect2> </refsect1>
--   
--   <refsect1 id="localization"> <title>On the subject of
--   localization of end-user-consumable text values</title>
--   <para> Because value text and subrange descriptors are
--   human-consumable, implementors are expected to provide localized
--   strings which can be directly presented to end users via their
--   assistive technology. In order to simplify this for implementors,
--   implementors can use valueTypeGetLocalizedName with the
--   following already-localized constants for commonly-needed values can
--   be used: </para>
--   
--   <itemizedlist>
--   <listitem>ATK_VALUE_VERY_WEAK</listitem>
--   <listitem>ATK_VALUE_WEAK</listitem>
--   <listitem>ATK_VALUE_ACCEPTABLE</listitem>
--   <listitem>ATK_VALUE_STRONG</listitem>
--   <listitem>ATK_VALUE_VERY_STRONG</listitem>
--   <listitem>ATK_VALUE_VERY_LOW</listitem>
--   <listitem>ATK_VALUE_LOW</listitem>
--   <listitem>ATK_VALUE_MEDIUM</listitem>
--   <listitem>ATK_VALUE_HIGH</listitem>
--   <listitem>ATK_VALUE_VERY_HIGH</listitem>
--   <listitem>ATK_VALUE_VERY_BAD</listitem>
--   <listitem>ATK_VALUE_BAD</listitem>
--   <listitem>ATK_VALUE_GOOD</listitem>
--   <listitem>ATK_VALUE_VERY_GOOD</listitem>
--   <listitem>ATK_VALUE_BEST</listitem>
--   <listitem>ATK_VALUE_SUBSUBOPTIMAL</listitem>
--   <listitem>ATK_VALUE_SUBOPTIMAL</listitem>
--   <listitem>ATK_VALUE_OPTIMAL</listitem>
--   </itemizedlist> <para> Proposals for additional constants,
--   along with their use cases, should be submitted to the GNOME
--   Accessibility Team. </para> </refsect1>
--   
--   <refsect1 id="changes"> <title>On the subject of
--   changes</title> <para> Note that if there is a textual
--   description associated with the new numeric value, that description
--   should be included regardless of whether or not it has also changed.
--   </para> </refsect1>
module GI.Atk.Interfaces.Value

-- | Memory-managed wrapper type.
newtype Value
Value :: ManagedPtr Value -> Value

-- | A convenience alias for Nothing :: Maybe Value.
noValue :: Maybe Value

-- | Type class for types which can be safely cast to Value, for
--   instance with toValue.
class GObject o => IsValue o

-- | Cast to Value, for types for which this is known to be safe.
--   For general casts, use castTo.
toValue :: (MonadIO m, IsValue o) => o -> m Value

-- | Gets the value of this object.

-- | Deprecated: Since 2.12. Use valueGetValueAndTextinstead.
valueGetCurrentValue :: (HasCallStack, MonadIO m, IsValue a) => a -> m GValue

-- | Gets the minimum increment by which the value of this object may be
--   changed. If zero, the minimum increment is undefined, which may mean
--   that it is limited only by the floating point precision of the
--   platform.
--   
--   Since: 2.12
valueGetIncrement :: (HasCallStack, MonadIO m, IsValue a) => a -> m Double

-- | Gets the maximum value of this object.

-- | Deprecated: Since 2.12. Use valueGetRange instead.
valueGetMaximumValue :: (HasCallStack, MonadIO m, IsValue a) => a -> m GValue

-- | Gets the minimum increment by which the value of this object may be
--   changed. If zero, the minimum increment is undefined, which may mean
--   that it is limited only by the floating point precision of the
--   platform.
--   
--   Since: 1.12

-- | Deprecated: Since 2.12. Use valueGetIncrement instead.
valueGetMinimumIncrement :: (HasCallStack, MonadIO m, IsValue a) => a -> m GValue

-- | Gets the minimum value of this object.

-- | Deprecated: Since 2.12. Use valueGetRange instead.
valueGetMinimumValue :: (HasCallStack, MonadIO m, IsValue a) => a -> m GValue

-- | Gets the range of this object.
--   
--   Since: 2.12
valueGetRange :: (HasCallStack, MonadIO m, IsValue a) => a -> m (Maybe Range)

-- | Gets the list of subranges defined for this object. See Value
--   introduction for examples of subranges and when to expose them.
--   
--   Since: 2.12
valueGetSubRanges :: (HasCallStack, MonadIO m, IsValue a) => a -> m [Range]

-- | Gets the current value and the human readable text alternative of
--   obj. text is a newly created string,
--   that must be freed by the caller. Can be NULL if no descriptor is
--   available.
--   
--   Since: 2.12
valueGetValueAndText :: (HasCallStack, MonadIO m, IsValue a) => a -> m (Double, Text)

-- | Sets the value of this object.

-- | Deprecated: Since 2.12. Use valueSetValue instead.
valueSetCurrentValue :: (HasCallStack, MonadIO m, IsValue a) => a -> GValue -> m Bool

-- | Sets the value of this object.
--   
--   This method is intended to provide a way to change the value of the
--   object. In any case, it is possible that the value can't be modified
--   (ie: a read-only component). If the value changes due this call, it is
--   possible that the text could change, and will trigger an
--   Value::value-changed signal emission.
--   
--   Note for implementors: the deprecated valueSetCurrentValue
--   method returned TRUE or FALSE depending if the value was assigned or
--   not. In the practice several implementors were not able to decide it,
--   and returned TRUE in any case. For that reason it is not required
--   anymore to return if the value was properly assigned or not.
--   
--   Since: 2.12
valueSetValue :: (HasCallStack, MonadIO m, IsValue a) => a -> Double -> m ()

-- | Type for the callback on the (unwrapped) C side.
type C_ValueValueChangedCallback = Ptr () -> CDouble -> CString -> Ptr () -> IO ()

-- | The 'value-changed' signal is emitted when the current value that
--   represent the object changes. value is the numerical
--   representation of this new value. text is the human
--   readable text alternative of value, and can be NULL if
--   it is not available. Note that if there is a textual description
--   associated with the new numeric value, that description should be
--   included regardless of whether or not it has also changed.
--   
--   Example: a password meter whose value changes as the user types their
--   new password. Appropiate value text would be "weak", "acceptable" and
--   "strong".
--   
--   Since: 2.12
type ValueValueChangedCallback = Double " /@value@/: the new value in a numerical form. " -> Text " /@text@/: human readable text alternative (also called description) of this object. NULL if not available. " -> IO ()

-- | Connect a signal handler for the “value-changed” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after value #valueChanged callback
--   
afterValueValueChanged :: (IsValue a, MonadIO m) => a -> ValueValueChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ValueValueChanged :: ValueValueChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ValueValueChangedCallback.
mk_ValueValueChangedCallback :: C_ValueValueChangedCallback -> IO (FunPtr C_ValueValueChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ValueValueChangedCallback.
noValueValueChangedCallback :: Maybe ValueValueChangedCallback

-- | Connect a signal handler for the “value-changed” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on value #valueChanged callback
--   
onValueValueChanged :: (IsValue a, MonadIO m) => a -> ValueValueChangedCallback -> m SignalHandlerId

-- | Wrap a ValueValueChangedCallback into a
--   C_ValueValueChangedCallback.
wrap_ValueValueChangedCallback :: ValueValueChangedCallback -> C_ValueValueChangedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Value.Value a) => GI.Atk.Interfaces.Value.IsValue a
instance GI.Atk.Interfaces.Value.IsValue GI.Atk.Interfaces.Value.Value
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Value.Value
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Value.Value

-- | Range are used on Value, in order to represent the full
--   range of a given component (for example an slider or a range control),
--   or to define each individual subrange this full range is splitted if
--   available. See Value documentation for further details.
module GI.Atk.Structs.Range

-- | Memory-managed wrapper type.
newtype Range
Range :: ManagedPtr Range -> Range

-- | A convenience alias for Nothing :: Maybe Range.
noRange :: Maybe Range

-- | Returns a new Range that is a exact copy of src
--   
--   Since: 2.12
rangeCopy :: (HasCallStack, MonadIO m) => Range -> m Range

-- | Free range
--   
--   Since: 2.12
rangeFree :: (HasCallStack, MonadIO m) => Range -> m ()

-- | Returns the human readable description of range
--   
--   Since: 2.12
rangeGetDescription :: (HasCallStack, MonadIO m) => Range -> m Text

-- | Returns the lower limit of range
--   
--   Since: 2.12
rangeGetLowerLimit :: (HasCallStack, MonadIO m) => Range -> m Double

-- | Returns the upper limit of range
--   
--   Since: 2.12
rangeGetUpperLimit :: (HasCallStack, MonadIO m) => Range -> m Double

-- | Creates a new Range.
--   
--   Since: 2.12
rangeNew :: (HasCallStack, MonadIO m) => Double -> Double -> Text -> m Range
instance Data.GI.Base.BasicTypes.BoxedObject GI.Atk.Structs.Range.Range

-- | Component should be implemented by most if not all UI elements
--   with an actual on-screen presence, i.e. components which can be said
--   to have a screen-coordinate bounding box. Virtually all widgets will
--   need to have Component implementations provided for their
--   corresponding Object class. In short, only UI elements which
--   are *not* GUI elements will omit this ATK interface.
--   
--   A possible exception might be textual information with a transparent
--   background, in which case text glyph bounding box information is
--   provided by Text.
module GI.Atk.Interfaces.Component

-- | Memory-managed wrapper type.
newtype Component
Component :: ManagedPtr Component -> Component

-- | A convenience alias for Nothing :: Maybe
--   Component.
noComponent :: Maybe Component

-- | Type class for types which can be safely cast to Component, for
--   instance with toComponent.
class GObject o => IsComponent o

-- | Cast to Component, for types for which this is known to be
--   safe. For general casts, use castTo.
toComponent :: (MonadIO m, IsComponent o) => o -> m Component

-- | Checks whether the specified point is within the extent of the
--   component.
--   
--   Toolkit implementor note: ATK provides a default implementation for
--   this virtual method. In general there are little reason to
--   re-implement it.
componentContains :: (HasCallStack, MonadIO m, IsComponent a) => a -> Int32 -> Int32 -> CoordType -> m Bool

-- | Returns the alpha value (i.e. the opacity) for this
--   component, on a scale from 0 (fully transparent) to
--   1.0 (fully opaque).
--   
--   Since: 1.12
componentGetAlpha :: (HasCallStack, MonadIO m, IsComponent a) => a -> m Double

-- | Gets the rectangle which gives the extent of the
--   component.
componentGetExtents :: (HasCallStack, MonadIO m, IsComponent a) => a -> CoordType -> m (Int32, Int32, Int32, Int32)

-- | Gets the layer of the component.
componentGetLayer :: (HasCallStack, MonadIO m, IsComponent a) => a -> m Layer

-- | Gets the zorder of the component. The value G_MININT will be returned
--   if the layer of the component is not ATK_LAYER_MDI or
--   ATK_LAYER_WINDOW.
componentGetMdiZorder :: (HasCallStack, MonadIO m, IsComponent a) => a -> m Int32

-- | Gets the position of component in the form of a point
--   specifying component's top-left corner.

-- | Deprecated: Since 2.12. Use componentGetExtents instead.
componentGetPosition :: (HasCallStack, MonadIO m, IsComponent a) => a -> CoordType -> m (Int32, Int32)

-- | Gets the size of the component in terms of width and
--   height.

-- | Deprecated: Since 2.12. Use componentGetExtents instead.
componentGetSize :: (HasCallStack, MonadIO m, IsComponent a) => a -> m (Int32, Int32)

-- | Grabs focus for this component.
componentGrabFocus :: (HasCallStack, MonadIO m, IsComponent a) => a -> m Bool

-- | Gets a reference to the accessible child, if one exists, at the
--   coordinate point specified by x and y.
componentRefAccessibleAtPoint :: (HasCallStack, MonadIO m, IsComponent a) => a -> Int32 -> Int32 -> CoordType -> m (Maybe Object)

-- | Remove the handler specified by handlerId from the
--   list of functions to be executed when this object receives focus
--   events (in or out).

-- | Deprecated: (Since version 2.9.4)If you need to track when an
--   object gains orlose the focus, use the
--   Object::state-change "focused" notification
--   instead.
componentRemoveFocusHandler :: (HasCallStack, MonadIO m, IsComponent a) => a -> Word32 -> m ()

-- | Makes component visible on the screen by scrolling all
--   necessary parents.
--   
--   Contrary to atk_component_set_position, this does not actually move
--   component in its parent, this only makes the parents
--   scroll so that the object shows up on the screen, given its current
--   position within the parents.
--   
--   Since: 2.30
componentScrollTo :: (HasCallStack, MonadIO m, IsComponent a) => a -> ScrollType -> m Bool

-- | Makes an object visible on the screen at a given position by scrolling
--   all necessary parents.
--   
--   Since: 2.30
componentScrollToPoint :: (HasCallStack, MonadIO m, IsComponent a) => a -> CoordType -> Int32 -> Int32 -> m Bool

-- | Sets the extents of component.
componentSetExtents :: (HasCallStack, MonadIO m, IsComponent a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> CoordType -> m Bool

-- | Sets the position of component.
--   
--   Contrary to atk_component_scroll_to, this does not trigger any
--   scrolling, this just moves component in its parent.
componentSetPosition :: (HasCallStack, MonadIO m, IsComponent a) => a -> Int32 -> Int32 -> CoordType -> m Bool

-- | Set the size of the component in terms of width and
--   height.
componentSetSize :: (HasCallStack, MonadIO m, IsComponent a) => a -> Int32 -> Int32 -> m Bool

-- | Type for the callback on the (unwrapped) C side.
type C_ComponentBoundsChangedCallback = Ptr () -> Ptr Rectangle -> Ptr () -> IO ()

-- | The 'bounds-changed" signal is emitted when the bposition or size of
--   the component changes.
type ComponentBoundsChangedCallback = Rectangle " /@arg1@/: The AtkRectangle giving the new position and size. " -> IO ()

-- | Connect a signal handler for the “bounds-changed” signal, to
--   be run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after component #boundsChanged callback
--   
afterComponentBoundsChanged :: (IsComponent a, MonadIO m) => a -> ComponentBoundsChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_ComponentBoundsChanged :: ComponentBoundsChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_ComponentBoundsChangedCallback.
mk_ComponentBoundsChangedCallback :: C_ComponentBoundsChangedCallback -> IO (FunPtr C_ComponentBoundsChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   ComponentBoundsChangedCallback.
noComponentBoundsChangedCallback :: Maybe ComponentBoundsChangedCallback

-- | Connect a signal handler for the “bounds-changed” signal, to
--   be run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on component #boundsChanged callback
--   
onComponentBoundsChanged :: (IsComponent a, MonadIO m) => a -> ComponentBoundsChangedCallback -> m SignalHandlerId

-- | Wrap a ComponentBoundsChangedCallback into a
--   C_ComponentBoundsChangedCallback.
wrap_ComponentBoundsChangedCallback :: ComponentBoundsChangedCallback -> C_ComponentBoundsChangedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Component.Component a) => GI.Atk.Interfaces.Component.IsComponent a
instance GI.Atk.Interfaces.Component.IsComponent GI.Atk.Interfaces.Component.Component
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Component.Component
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Component.Component

-- | A data structure for holding a rectangle. Those coordinates are
--   relative to the component top-level parent.
module GI.Atk.Structs.Rectangle

-- | Memory-managed wrapper type.
newtype Rectangle
Rectangle :: ManagedPtr Rectangle -> Rectangle

-- | Construct a Rectangle struct initialized to zero.
newZeroRectangle :: MonadIO m => m Rectangle

-- | A convenience alias for Nothing :: Maybe
--   Rectangle.
noRectangle :: Maybe Rectangle

-- | Get the value of the “height” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get rectangle #height
--   
getRectangleHeight :: MonadIO m => Rectangle -> m Int32

-- | Set the value of the “height” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set rectangle [ #height := value ]
--   
setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m ()

-- | Get the value of the “width” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get rectangle #width
--   
getRectangleWidth :: MonadIO m => Rectangle -> m Int32

-- | Set the value of the “width” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set rectangle [ #width := value ]
--   
setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m ()

-- | Get the value of the “x” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   get rectangle #x
--   
getRectangleX :: MonadIO m => Rectangle -> m Int32

-- | Set the value of the “x” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   set rectangle [ #x := value ]
--   
setRectangleX :: MonadIO m => Rectangle -> Int32 -> m ()

-- | Get the value of the “y” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   get rectangle #y
--   
getRectangleY :: MonadIO m => Rectangle -> m Int32

-- | Set the value of the “y” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   set rectangle [ #y := value ]
--   
setRectangleY :: MonadIO m => Rectangle -> Int32 -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.Atk.Structs.Rectangle.Rectangle
instance (tag Data.Type.Equality.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.Atk.Structs.Rectangle.Rectangle tag

-- | A structure used to describe a text range.
module GI.Atk.Structs.TextRange

-- | Memory-managed wrapper type.
newtype TextRange
TextRange :: ManagedPtr TextRange -> TextRange

-- | Construct a TextRange struct initialized to zero.
newZeroTextRange :: MonadIO m => m TextRange

-- | A convenience alias for Nothing :: Maybe
--   TextRange.
noTextRange :: Maybe TextRange

-- | Get the value of the “bounds” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get textRange #bounds
--   
getTextRangeBounds :: MonadIO m => TextRange -> m TextRectangle

-- | Set the value of the “content” field to Nothing. When
--   overloading is enabled, this is equivalent to
--   
--   
--   clear #content
--   
clearTextRangeContent :: MonadIO m => TextRange -> m ()

-- | Get the value of the “content” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get textRange #content
--   
getTextRangeContent :: MonadIO m => TextRange -> m (Maybe Text)

-- | Set the value of the “content” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set textRange [ #content := value ]
--   
setTextRangeContent :: MonadIO m => TextRange -> CString -> m ()

-- | Get the value of the “end_offset” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get textRange #endOffset
--   
getTextRangeEndOffset :: MonadIO m => TextRange -> m Int32

-- | Set the value of the “end_offset” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set textRange [ #endOffset := value ]
--   
setTextRangeEndOffset :: MonadIO m => TextRange -> Int32 -> m ()

-- | Get the value of the “start_offset” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   get textRange #startOffset
--   
getTextRangeStartOffset :: MonadIO m => TextRange -> m Int32

-- | Set the value of the “start_offset” field. When
--   overloading is enabled, this is equivalent to
--   
--   
--   set textRange [ #startOffset := value ]
--   
setTextRangeStartOffset :: MonadIO m => TextRange -> Int32 -> m ()
instance Data.GI.Base.BasicTypes.BoxedObject GI.Atk.Structs.TextRange.TextRange
instance (tag Data.Type.Equality.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.Atk.Structs.TextRange.TextRange tag

-- | Text should be implemented by AtkObjects on
--   behalf of widgets that have text content which is either attributed or
--   otherwise non-trivial. AtkObjects whose text content
--   is simple, unattributed, and very brief may expose that content via
--   atk_object_get_name instead; however if the text is
--   editable, multi-line, typically longer than three or four words,
--   attributed, selectable, or if the object already uses the 'name' ATK
--   property for other information, the Text interface should be
--   used to expose the text content. In the case of editable text content,
--   EditableText (a subtype of the Text interface) should be
--   implemented instead.
--   
--   Text provides not only traversal facilities and change
--   notification for text content, but also caret tracking and glyph
--   bounding box calculations. Note that the text strings are exposed as
--   UTF-8, and are therefore potentially multi-byte, and caret-to-byte
--   offset mapping makes no assumptions about the character length; also
--   bounding box glyph-to-offset mapping may be complex for languages
--   which use ligatures.
module GI.Atk.Interfaces.Text

-- | Memory-managed wrapper type.
newtype Text
Text :: ManagedPtr Text -> Text

-- | A convenience alias for Nothing :: Maybe Text.
noText :: Maybe Text

-- | Type class for types which can be safely cast to Text, for
--   instance with toText.
class GObject o => IsText o

-- | Cast to Text, for types for which this is known to be safe. For
--   general casts, use castTo.
toText :: (MonadIO m, IsText o) => o -> m Text

-- | Adds a selection bounded by the specified offsets.
textAddSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> m Bool

-- | Frees the memory associated with an array of AtkTextRange. It is
--   assumed that the array was returned by the function
--   atk_text_get_bounded_ranges and is NULL terminated.
--   
--   Since: 1.3
textFreeRanges :: (HasCallStack, MonadIO m) => [TextRange] -> m ()

-- | Get the ranges of text in the specified bounding box.
--   
--   Since: 1.3
textGetBoundedRanges :: (HasCallStack, MonadIO m, IsText a) => a -> TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange]

-- | Gets the offset of the position of the caret (cursor).
textGetCaretOffset :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32

-- | Gets the specified text.
textGetCharacterAtOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m Char

-- | Gets the character count.
textGetCharacterCount :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32

-- | Get the bounding box containing the glyph representing the character
--   at a particular text offset.
textGetCharacterExtents :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> CoordType -> m (Int32, Int32, Int32, Int32)

-- | Creates an AtkAttributeSet which consists of the
--   default values of attributes for the text. See the enum
--   AtkTextAttribute for types of text attributes that can be returned.
--   Note that other attributes may also be returned.
textGetDefaultAttributes :: (HasCallStack, MonadIO m, IsText a) => a -> m [Ptr ()]

-- | Gets the number of selected regions.
textGetNSelections :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32

-- | Gets the offset of the character located at coordinates
--   x and y. x and
--   y are interpreted as being relative to the screen or
--   this widget's window depending on coords.
textGetOffsetAtPoint :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m Int32

-- | Get the bounding box for text within the specified range.
--   
--   Since: 1.3
textGetRangeExtents :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m TextRectangle

-- | Creates an AtkAttributeSet which consists of the
--   attributes explicitly set at the position offset in
--   the text. startOffset and endOffset
--   are set to the start and end of the range around
--   offset where the attributes are invariant. Note that
--   endOffset is the offset of the first character after
--   the range. See the enum AtkTextAttribute for types of text attributes
--   that can be returned. Note that other attributes may also be returned.
textGetRunAttributes :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m ([Ptr ()], Int32, Int32)

-- | Gets the text from the specified selection.
textGetSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m (Text, Int32, Int32)

-- | Gets a portion of the text exposed through an Text according to
--   a given offset and a specific
--   granularity, along with the start and end offsets
--   defining the boundaries of such a portion of text.
--   
--   If granularity is ATK_TEXT_GRANULARITY_CHAR the
--   character at the offset is returned.
--   
--   If granularity is ATK_TEXT_GRANULARITY_WORD the
--   returned string is from the word start at or before the offset to the
--   word start after the offset.
--   
--   The returned string will contain the word at the offset if the offset
--   is inside a word and will contain the word before the offset if the
--   offset is not inside a word.
--   
--   If granularity is ATK_TEXT_GRANULARITY_SENTENCE the
--   returned string is from the sentence start at or before the offset to
--   the sentence start after the offset.
--   
--   The returned string will contain the sentence at the offset if the
--   offset is inside a sentence and will contain the sentence before the
--   offset if the offset is not inside a sentence.
--   
--   If granularity is ATK_TEXT_GRANULARITY_LINE the
--   returned string is from the line start at or before the offset to the
--   line start after the offset.
--   
--   If granularity is ATK_TEXT_GRANULARITY_PARAGRAPH the
--   returned string is from the start of the paragraph at or before the
--   offset to the start of the following paragraph after the offset.
--   
--   Since: 2.10
textGetStringAtOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextGranularity -> m (Maybe Text, Int32, Int32)

-- | Gets the specified text.
textGetText :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> m Text

-- | Gets the specified text.

-- | Deprecated: (Since version 2.9.3)Please use
--   textGetStringAtOffset instead.
textGetTextAfterOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)

-- | Gets the specified text.
--   
--   If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the
--   offset is returned.
--   
--   If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned
--   string is from the word start at or before the offset to the word
--   start after the offset.
--   
--   The returned string will contain the word at the offset if the offset
--   is inside a word and will contain the word before the offset if the
--   offset is not inside a word.
--   
--   If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned
--   string is from the sentence start at or before the offset to the
--   sentence start after the offset.
--   
--   The returned string will contain the sentence at the offset if the
--   offset is inside a sentence and will contain the sentence before the
--   offset if the offset is not inside a sentence.
--   
--   If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned
--   string is from the line start at or before the offset to the line
--   start after the offset.

-- | Deprecated: This method is deprecated since ATK version2.9.4.
--   Please use textGetStringAtOffset instead.
textGetTextAtOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)

-- | Gets the specified text.

-- | Deprecated: (Since version 2.9.3)Please use
--   textGetStringAtOffset instead.
textGetTextBeforeOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)

-- | Removes the specified selection.
textRemoveSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m Bool

-- | Makes text visible on the screen by scrolling all
--   necessary parents.
--   
--   Contrary to atk_text_set_position, this does not actually move
--   text in its parent, this only makes the parents scroll
--   so that the object shows up on the screen, given its current position
--   within the parents.
--   
--   Since: 2.32
textScrollSubstringTo :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> ScrollType -> m Bool

-- | Makes an object visible on the screen at a given position by scrolling
--   all necessary parents.
--   
--   Since: 2.32
textScrollSubstringToPoint :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> Int32 -> Int32 -> m Bool

-- | Sets the caret (cursor) position to the specified
--   offset.
textSetCaretOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m Bool

-- | Changes the start and end offset of the specified selection.
textSetSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> Int32 -> m Bool

-- | Type for the callback on the (unwrapped) C side.
type C_TextTextAttributesChangedCallback = Ptr () -> Ptr () -> IO ()

-- | The "text-attributes-changed" signal is emitted when the text
--   attributes of the text of an object which implements AtkText changes.
type TextTextAttributesChangedCallback = IO ()

-- | Connect a signal handler for the “text-attributes-changed”
--   signal, to be run after the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   after text #textAttributesChanged callback
--   
afterTextTextAttributesChanged :: (IsText a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TextTextAttributesChanged :: TextTextAttributesChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TextTextAttributesChangedCallback.
mk_TextTextAttributesChangedCallback :: C_TextTextAttributesChangedCallback -> IO (FunPtr C_TextTextAttributesChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TextTextAttributesChangedCallback.
noTextTextAttributesChangedCallback :: Maybe TextTextAttributesChangedCallback

-- | Connect a signal handler for the “text-attributes-changed”
--   signal, to be run before the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   on text #textAttributesChanged callback
--   
onTextTextAttributesChanged :: (IsText a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId

-- | Wrap a TextTextAttributesChangedCallback into a
--   C_TextTextAttributesChangedCallback.
wrap_TextTextAttributesChangedCallback :: TextTextAttributesChangedCallback -> C_TextTextAttributesChangedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TextTextCaretMovedCallback = Ptr () -> Int32 -> Ptr () -> IO ()

-- | The "text-caret-moved" signal is emitted when the caret position of
--   the text of an object which implements AtkText changes.
type TextTextCaretMovedCallback = Int32 " /@arg1@/: The new position of the text caret. " -> IO ()

-- | Connect a signal handler for the “text-caret-moved” signal,
--   to be run after the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   after text #textCaretMoved callback
--   
afterTextTextCaretMoved :: (IsText a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TextTextCaretMoved :: TextTextCaretMovedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TextTextCaretMovedCallback.
mk_TextTextCaretMovedCallback :: C_TextTextCaretMovedCallback -> IO (FunPtr C_TextTextCaretMovedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TextTextCaretMovedCallback.
noTextTextCaretMovedCallback :: Maybe TextTextCaretMovedCallback

-- | Connect a signal handler for the “text-caret-moved” signal,
--   to be run before the default handler. When overloading is
--   enabled, this is equivalent to
--   
--   
--   on text #textCaretMoved callback
--   
onTextTextCaretMoved :: (IsText a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId

-- | Wrap a TextTextCaretMovedCallback into a
--   C_TextTextCaretMovedCallback.
wrap_TextTextCaretMovedCallback :: TextTextCaretMovedCallback -> C_TextTextCaretMovedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TextTextChangedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()

-- | The "text-changed" signal is emitted when the text of the object which
--   implements the AtkText interface changes, This signal will have a
--   detail which is either "insert" or "delete" which identifies whether
--   the text change was an insertion or a deletion.

-- | Deprecated: (Since version 2.9.4)Use
--   Object::text-insert
--   orObject::text-remove instead.
type TextTextChangedCallback = Int32 " /@arg1@/: The position (character offset) of the insertion or deletion. " -> Int32 " /@arg2@/: The length (in characters) of text inserted or deleted. " -> IO ()

-- | Connect a signal handler for the “text-changed” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after text #textChanged callback
--   
afterTextTextChanged :: (IsText a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TextTextChanged :: TextTextChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TextTextChangedCallback.
mk_TextTextChangedCallback :: C_TextTextChangedCallback -> IO (FunPtr C_TextTextChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TextTextChangedCallback.
noTextTextChangedCallback :: Maybe TextTextChangedCallback

-- | Connect a signal handler for the “text-changed” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on text #textChanged callback
--   
onTextTextChanged :: (IsText a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId

-- | Wrap a TextTextChangedCallback into a
--   C_TextTextChangedCallback.
wrap_TextTextChangedCallback :: TextTextChangedCallback -> C_TextTextChangedCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TextTextInsertCallback = Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()

-- | The "text-insert" signal is emitted when a new text is inserted. If
--   the signal was not triggered by the user (e.g. typing or pasting
--   text), the "system" detail should be included.
type TextTextInsertCallback = Int32 " /@arg1@/: The position (character offset) of the insertion. " -> Int32 " /@arg2@/: The length (in characters) of text inserted. " -> Text " /@arg3@/: The new text inserted " -> IO ()

-- | Connect a signal handler for the “text-insert” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after text #textInsert callback
--   
afterTextTextInsert :: (IsText a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TextTextInsert :: TextTextInsertCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TextTextInsertCallback.
mk_TextTextInsertCallback :: C_TextTextInsertCallback -> IO (FunPtr C_TextTextInsertCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TextTextInsertCallback.
noTextTextInsertCallback :: Maybe TextTextInsertCallback

-- | Connect a signal handler for the “text-insert” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on text #textInsert callback
--   
onTextTextInsert :: (IsText a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId

-- | Wrap a TextTextInsertCallback into a
--   C_TextTextInsertCallback.
wrap_TextTextInsertCallback :: TextTextInsertCallback -> C_TextTextInsertCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TextTextRemoveCallback = Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()

-- | The "text-remove" signal is emitted when a new text is removed. If the
--   signal was not triggered by the user (e.g. typing or pasting text),
--   the "system" detail should be included.
type TextTextRemoveCallback = Int32 " /@arg1@/: The position (character offset) of the removal. " -> Int32 " /@arg2@/: The length (in characters) of text removed. " -> Text " /@arg3@/: The old text removed " -> IO ()

-- | Connect a signal handler for the “text-remove” signal, to be
--   run after the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   after text #textRemove callback
--   
afterTextTextRemove :: (IsText a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TextTextRemove :: TextTextRemoveCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TextTextRemoveCallback.
mk_TextTextRemoveCallback :: C_TextTextRemoveCallback -> IO (FunPtr C_TextTextRemoveCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TextTextRemoveCallback.
noTextTextRemoveCallback :: Maybe TextTextRemoveCallback

-- | Connect a signal handler for the “text-remove” signal, to be
--   run before the default handler. When overloading is enabled,
--   this is equivalent to
--   
--   
--   on text #textRemove callback
--   
onTextTextRemove :: (IsText a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId

-- | Wrap a TextTextRemoveCallback into a
--   C_TextTextRemoveCallback.
wrap_TextTextRemoveCallback :: TextTextRemoveCallback -> C_TextTextRemoveCallback

-- | Type for the callback on the (unwrapped) C side.
type C_TextTextSelectionChangedCallback = Ptr () -> Ptr () -> IO ()

-- | The "text-selection-changed" signal is emitted when the selected text
--   of an object which implements AtkText changes.
type TextTextSelectionChangedCallback = IO ()

-- | Connect a signal handler for the “text-selection-changed”
--   signal, to be run after the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   after text #textSelectionChanged callback
--   
afterTextTextSelectionChanged :: (IsText a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId

-- | Wrap the callback into a Closure.
genClosure_TextTextSelectionChanged :: TextTextSelectionChangedCallback -> IO Closure

-- | Generate a function pointer callable from C code, from a
--   C_TextTextSelectionChangedCallback.
mk_TextTextSelectionChangedCallback :: C_TextTextSelectionChangedCallback -> IO (FunPtr C_TextTextSelectionChangedCallback)

-- | A convenience synonym for Nothing :: Maybe
--   TextTextSelectionChangedCallback.
noTextTextSelectionChangedCallback :: Maybe TextTextSelectionChangedCallback

-- | Connect a signal handler for the “text-selection-changed”
--   signal, to be run before the default handler. When overloading
--   is enabled, this is equivalent to
--   
--   
--   on text #textSelectionChanged callback
--   
onTextTextSelectionChanged :: (IsText a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId

-- | Wrap a TextTextSelectionChangedCallback into a
--   C_TextTextSelectionChangedCallback.
wrap_TextTextSelectionChangedCallback :: TextTextSelectionChangedCallback -> C_TextTextSelectionChangedCallback
instance (Data.GI.Base.BasicTypes.GObject a, Data.GI.Base.Overloading.UnknownAncestorError GI.Atk.Interfaces.Text.Text a) => GI.Atk.Interfaces.Text.IsText a
instance GI.Atk.Interfaces.Text.IsText GI.Atk.Interfaces.Text.Text
instance Data.GI.Base.BasicTypes.GObject GI.Atk.Interfaces.Text.Text
instance GI.GObject.Objects.Object.IsObject GI.Atk.Interfaces.Text.Text

module GI.Atk.Interfaces

-- | A structure used to store a rectangle used by AtkText.
module GI.Atk.Structs.TextRectangle

-- | Memory-managed wrapper type.
newtype TextRectangle
TextRectangle :: ManagedPtr TextRectangle -> TextRectangle

-- | Construct a TextRectangle struct initialized to zero.
newZeroTextRectangle :: MonadIO m => m TextRectangle

-- | A convenience alias for Nothing :: Maybe
--   TextRectangle.
noTextRectangle :: Maybe TextRectangle

-- | Get the value of the “height” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get textRectangle #height
--   
getTextRectangleHeight :: MonadIO m => TextRectangle -> m Int32

-- | Set the value of the “height” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set textRectangle [ #height := value ]
--   
setTextRectangleHeight :: MonadIO m => TextRectangle -> Int32 -> m ()

-- | Get the value of the “width” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   get textRectangle #width
--   
getTextRectangleWidth :: MonadIO m => TextRectangle -> m Int32

-- | Set the value of the “width” field. When overloading
--   is enabled, this is equivalent to
--   
--   
--   set textRectangle [ #width := value ]
--   
setTextRectangleWidth :: MonadIO m => TextRectangle -> Int32 -> m ()

-- | Get the value of the “x” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   get textRectangle #x
--   
getTextRectangleX :: MonadIO m => TextRectangle -> m Int32

-- | Set the value of the “x” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   set textRectangle [ #x := value ]
--   
setTextRectangleX :: MonadIO m => TextRectangle -> Int32 -> m ()

-- | Get the value of the “y” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   get textRectangle #y
--   
getTextRectangleY :: MonadIO m => TextRectangle -> m Int32

-- | Set the value of the “y” field. When overloading is
--   enabled, this is equivalent to
--   
--   
--   set textRectangle [ #y := value ]
--   
setTextRectangleY :: MonadIO m => TextRectangle -> Int32 -> m ()
instance Data.GI.Base.BasicTypes.WrappedPtr GI.Atk.Structs.TextRectangle.TextRectangle
instance (tag Data.Type.Equality.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.Atk.Structs.TextRectangle.TextRectangle tag

module GI.Atk.Structs

module GI.Atk
