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.Hypertext
Description
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.
- newtype Hypertext = Hypertext (ManagedPtr Hypertext)
- noHypertext :: Maybe Hypertext
- class ManagedPtrNewtype a => IsHypertext a
- data HypertextGetLinkMethodInfo
- hypertextGetLink :: (HasCallStack, MonadIO m, IsHypertext a) => a -> Int32 -> m Hyperlink
- data HypertextGetLinkIndexMethodInfo
- hypertextGetLinkIndex :: (HasCallStack, MonadIO m, IsHypertext a) => a -> Int32 -> m Int32
- data HypertextGetNLinksMethodInfo
- hypertextGetNLinks :: (HasCallStack, MonadIO m, IsHypertext a) => a -> m Int32
- type C_HypertextLinkSelectedCallback = Ptr () -> Int32 -> Ptr () -> IO ()
- type HypertextLinkSelectedCallback = Int32 -> IO ()
- data HypertextLinkSelectedSignalInfo
- afterHypertextLinkSelected :: (GObject a, MonadIO m) => a -> HypertextLinkSelectedCallback -> m SignalHandlerId
- genClosure_HypertextLinkSelected :: HypertextLinkSelectedCallback -> IO Closure
- mk_HypertextLinkSelectedCallback :: C_HypertextLinkSelectedCallback -> IO (FunPtr C_HypertextLinkSelectedCallback)
- noHypertextLinkSelectedCallback :: Maybe HypertextLinkSelectedCallback
- onHypertextLinkSelected :: (GObject a, MonadIO m) => a -> HypertextLinkSelectedCallback -> m SignalHandlerId
- wrap_HypertextLinkSelectedCallback :: HypertextLinkSelectedCallback -> Ptr () -> Int32 -> Ptr () -> IO ()
Exported types
Constructors
Hypertext (ManagedPtr Hypertext) |
Instances
WrappedPtr Hypertext Source # | |
IsHypertext Hypertext Source # | |
((~) * info (ResolveHypertextMethod t Hypertext), MethodInfo * info Hypertext p) => IsLabel t (Hypertext -> p) Source # | |
((~) * info (ResolveHypertextMethod t Hypertext), MethodInfo * info Hypertext p) => IsLabelProxy t (Hypertext -> p) Source # | |
HasAttributeList * Hypertext Source # | |
type AttributeList Hypertext Source # | |
type SignalList Hypertext Source # | |
class ManagedPtrNewtype a => IsHypertext a Source #
Instances
Methods
getLink
data HypertextGetLinkMethodInfo Source #
Instances
((~) * signature (Int32 -> m Hyperlink), MonadIO m, IsHypertext a) => MethodInfo * HypertextGetLinkMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsHypertext a) | |
=> a |
|
-> Int32 |
|
-> m Hyperlink | Returns: the link in this hypertext document at
index |
Gets the link in this hypertext document at index
linkIndex
getLinkIndex
data HypertextGetLinkIndexMethodInfo Source #
Instances
((~) * signature (Int32 -> m Int32), MonadIO m, IsHypertext a) => MethodInfo * HypertextGetLinkIndexMethodInfo a signature Source # | |
hypertextGetLinkIndex Source #
Arguments
:: (HasCallStack, MonadIO m, IsHypertext a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: an index into the array of hyperlinks in |
Gets the index into the array of hyperlinks that is associated with
the character specified by charIndex
.
getNLinks
data HypertextGetNLinksMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m, IsHypertext a) => MethodInfo * HypertextGetNLinksMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsHypertext a) | |
=> a |
|
-> m Int32 | Returns: the number of links within this hypertext document |
Gets the number of links within this hypertext document.
Signals
linkSelected
type HypertextLinkSelectedCallback = Int32 -> IO () Source #
afterHypertextLinkSelected :: (GObject a, MonadIO m) => a -> HypertextLinkSelectedCallback -> m SignalHandlerId Source #
mk_HypertextLinkSelectedCallback :: C_HypertextLinkSelectedCallback -> IO (FunPtr C_HypertextLinkSelectedCallback) Source #
onHypertextLinkSelected :: (GObject a, MonadIO m) => a -> HypertextLinkSelectedCallback -> m SignalHandlerId Source #
wrap_HypertextLinkSelectedCallback :: HypertextLinkSelectedCallback -> Ptr () -> Int32 -> Ptr () -> IO () Source #