Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.Atk.Interfaces.Document
Contents
Description
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.
- newtype Document = Document (ManagedPtr Document)
- noDocument :: Maybe Document
- class ManagedPtrNewtype a => IsDocument a
- data DocumentGetAttributeValueMethodInfo
- documentGetAttributeValue :: (HasCallStack, MonadIO m, IsDocument a) => a -> Text -> m (Maybe Text)
- data DocumentGetAttributesMethodInfo
- documentGetAttributes :: (HasCallStack, MonadIO m, IsDocument a) => a -> m [Ptr ()]
- data DocumentGetCurrentPageNumberMethodInfo
- documentGetCurrentPageNumber :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Int32
- data DocumentGetDocumentMethodInfo
- documentGetDocument :: (HasCallStack, MonadIO m, IsDocument a) => a -> m (Ptr ())
- data DocumentGetDocumentTypeMethodInfo
- documentGetDocumentType :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Text
- data DocumentGetLocaleMethodInfo
- documentGetLocale :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Text
- data DocumentGetPageCountMethodInfo
- documentGetPageCount :: (HasCallStack, MonadIO m, IsDocument a) => a -> m Int32
- data DocumentSetAttributeValueMethodInfo
- documentSetAttributeValue :: (HasCallStack, MonadIO m, IsDocument a) => a -> Text -> Text -> m Bool
- type C_DocumentLoadCompleteCallback = Ptr () -> Ptr () -> IO ()
- type DocumentLoadCompleteCallback = IO ()
- data DocumentLoadCompleteSignalInfo
- afterDocumentLoadComplete :: (GObject a, MonadIO m) => a -> DocumentLoadCompleteCallback -> m SignalHandlerId
- genClosure_DocumentLoadComplete :: DocumentLoadCompleteCallback -> IO Closure
- mk_DocumentLoadCompleteCallback :: C_DocumentLoadCompleteCallback -> IO (FunPtr C_DocumentLoadCompleteCallback)
- noDocumentLoadCompleteCallback :: Maybe DocumentLoadCompleteCallback
- onDocumentLoadComplete :: (GObject a, MonadIO m) => a -> DocumentLoadCompleteCallback -> m SignalHandlerId
- wrap_DocumentLoadCompleteCallback :: DocumentLoadCompleteCallback -> Ptr () -> Ptr () -> IO ()
- type C_DocumentLoadStoppedCallback = Ptr () -> Ptr () -> IO ()
- type DocumentLoadStoppedCallback = IO ()
- data DocumentLoadStoppedSignalInfo
- afterDocumentLoadStopped :: (GObject a, MonadIO m) => a -> DocumentLoadStoppedCallback -> m SignalHandlerId
- genClosure_DocumentLoadStopped :: DocumentLoadStoppedCallback -> IO Closure
- mk_DocumentLoadStoppedCallback :: C_DocumentLoadStoppedCallback -> IO (FunPtr C_DocumentLoadStoppedCallback)
- noDocumentLoadStoppedCallback :: Maybe DocumentLoadStoppedCallback
- onDocumentLoadStopped :: (GObject a, MonadIO m) => a -> DocumentLoadStoppedCallback -> m SignalHandlerId
- wrap_DocumentLoadStoppedCallback :: DocumentLoadStoppedCallback -> Ptr () -> Ptr () -> IO ()
- type C_DocumentPageChangedCallback = Ptr () -> Int32 -> Ptr () -> IO ()
- type DocumentPageChangedCallback = Int32 -> IO ()
- data DocumentPageChangedSignalInfo
- afterDocumentPageChanged :: (GObject a, MonadIO m) => a -> DocumentPageChangedCallback -> m SignalHandlerId
- genClosure_DocumentPageChanged :: DocumentPageChangedCallback -> IO Closure
- mk_DocumentPageChangedCallback :: C_DocumentPageChangedCallback -> IO (FunPtr C_DocumentPageChangedCallback)
- noDocumentPageChangedCallback :: Maybe DocumentPageChangedCallback
- onDocumentPageChanged :: (GObject a, MonadIO m) => a -> DocumentPageChangedCallback -> m SignalHandlerId
- wrap_DocumentPageChangedCallback :: DocumentPageChangedCallback -> Ptr () -> Int32 -> Ptr () -> IO ()
- type C_DocumentReloadCallback = Ptr () -> Ptr () -> IO ()
- type DocumentReloadCallback = IO ()
- data DocumentReloadSignalInfo
- afterDocumentReload :: (GObject a, MonadIO m) => a -> DocumentReloadCallback -> m SignalHandlerId
- genClosure_DocumentReload :: DocumentReloadCallback -> IO Closure
- mk_DocumentReloadCallback :: C_DocumentReloadCallback -> IO (FunPtr C_DocumentReloadCallback)
- noDocumentReloadCallback :: Maybe DocumentReloadCallback
- onDocumentReload :: (GObject a, MonadIO m) => a -> DocumentReloadCallback -> m SignalHandlerId
- wrap_DocumentReloadCallback :: DocumentReloadCallback -> Ptr () -> Ptr () -> IO ()
Exported types
Constructors
Document (ManagedPtr Document) |
Instances
WrappedPtr Document Source # | |
IsDocument Document Source # | |
((~) * info (ResolveDocumentMethod t Document), MethodInfo * info Document p) => IsLabel t (Document -> p) Source # | |
((~) * info (ResolveDocumentMethod t Document), MethodInfo * info Document p) => IsLabelProxy t (Document -> p) Source # | |
HasAttributeList * Document Source # | |
type AttributeList Document Source # | |
type SignalList Document Source # | |
class ManagedPtrNewtype a => IsDocument a Source #
Instances
Methods
getAttributeValue
data DocumentGetAttributeValueMethodInfo Source #
Instances
((~) * signature (Text -> m (Maybe Text)), MonadIO m, IsDocument a) => MethodInfo * DocumentGetAttributeValueMethodInfo a signature Source # | |
documentGetAttributeValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> Text |
|
-> m (Maybe Text) | Returns: a string value associated with the named
attribute for this document, or NULL if a value for
|
No description available in the introspection data.
Since: 1.12
getAttributes
data DocumentGetAttributesMethodInfo Source #
Instances
((~) * signature (m [Ptr ()]), MonadIO m, IsDocument a) => MethodInfo * DocumentGetAttributesMethodInfo a signature Source # | |
documentGetAttributes Source #
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m [Ptr ()] | Returns: An AtkAttributeSet containing the explicitly set name-value-pair attributes associated with this document as a whole. |
Gets an AtkAttributeSet which describes document-wide attributes as name-value pairs.
Since: 1.12
getCurrentPageNumber
data DocumentGetCurrentPageNumberMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m, IsDocument a) => MethodInfo * DocumentGetCurrentPageNumberMethodInfo a signature Source # | |
documentGetCurrentPageNumber Source #
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m Int32 | Returns: current page number inside |
No description available in the introspection data.
Since: 2.12
getDocument
data DocumentGetDocumentMethodInfo Source #
Instances
((~) * signature (m (Ptr ())), MonadIO m, IsDocument a) => MethodInfo * DocumentGetDocumentMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m (Ptr ()) | Returns: a |
Deprecated: Since 2.12. document
is already a representation ofthe document. Use it directly, or one of its children, as aninstance of the DOM.
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.
getDocumentType
data DocumentGetDocumentTypeMethodInfo Source #
Instances
((~) * signature (m Text), MonadIO m, IsDocument a) => MethodInfo * DocumentGetDocumentTypeMethodInfo a signature Source # | |
documentGetDocumentType Source #
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m Text | Returns: a string indicating the document type |
Deprecated: Since 2.12. Please use documentGetAttributes
toask for the document type if it applies.
Gets a string indicating the document type.
getLocale
data DocumentGetLocaleMethodInfo Source #
Instances
((~) * signature (m Text), MonadIO m, IsDocument a) => MethodInfo * DocumentGetLocaleMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m Text | Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of the document content as a whole, or NULL if the document content does not specify a locale. |
Deprecated: (Since version 2.7.90)Please use objectGetObjectLocale
instead.
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.
getPageCount
data DocumentGetPageCountMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m, IsDocument a) => MethodInfo * DocumentGetPageCountMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> m Int32 | Returns: total page count of |
No description available in the introspection data.
Since: 2.12
setAttributeValue
data DocumentSetAttributeValueMethodInfo Source #
Instances
((~) * signature (Text -> Text -> m Bool), MonadIO m, IsDocument a) => MethodInfo * DocumentSetAttributeValueMethodInfo a signature Source # | |
documentSetAttributeValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m Bool | Returns: TRUE if |
No description available in the introspection data.
Since: 1.12
Signals
loadComplete
type DocumentLoadCompleteCallback = IO () Source #
afterDocumentLoadComplete :: (GObject a, MonadIO m) => a -> DocumentLoadCompleteCallback -> m SignalHandlerId Source #
mk_DocumentLoadCompleteCallback :: C_DocumentLoadCompleteCallback -> IO (FunPtr C_DocumentLoadCompleteCallback) Source #
onDocumentLoadComplete :: (GObject a, MonadIO m) => a -> DocumentLoadCompleteCallback -> m SignalHandlerId Source #
wrap_DocumentLoadCompleteCallback :: DocumentLoadCompleteCallback -> Ptr () -> Ptr () -> IO () Source #
loadStopped
type DocumentLoadStoppedCallback = IO () Source #
afterDocumentLoadStopped :: (GObject a, MonadIO m) => a -> DocumentLoadStoppedCallback -> m SignalHandlerId Source #
mk_DocumentLoadStoppedCallback :: C_DocumentLoadStoppedCallback -> IO (FunPtr C_DocumentLoadStoppedCallback) Source #
onDocumentLoadStopped :: (GObject a, MonadIO m) => a -> DocumentLoadStoppedCallback -> m SignalHandlerId Source #
wrap_DocumentLoadStoppedCallback :: DocumentLoadStoppedCallback -> Ptr () -> Ptr () -> IO () Source #
pageChanged
type DocumentPageChangedCallback = Int32 -> IO () Source #
afterDocumentPageChanged :: (GObject a, MonadIO m) => a -> DocumentPageChangedCallback -> m SignalHandlerId Source #
mk_DocumentPageChangedCallback :: C_DocumentPageChangedCallback -> IO (FunPtr C_DocumentPageChangedCallback) Source #
onDocumentPageChanged :: (GObject a, MonadIO m) => a -> DocumentPageChangedCallback -> m SignalHandlerId Source #
wrap_DocumentPageChangedCallback :: DocumentPageChangedCallback -> Ptr () -> Int32 -> Ptr () -> IO () Source #
reload
type DocumentReloadCallback = IO () Source #
afterDocumentReload :: (GObject a, MonadIO m) => a -> DocumentReloadCallback -> m SignalHandlerId Source #
mk_DocumentReloadCallback :: C_DocumentReloadCallback -> IO (FunPtr C_DocumentReloadCallback) Source #
onDocumentReload :: (GObject a, MonadIO m) => a -> DocumentReloadCallback -> m SignalHandlerId Source #
wrap_DocumentReloadCallback :: DocumentReloadCallback -> Ptr () -> Ptr () -> IO () Source #