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 |
A TextChildAnchor
is a spot in the buffer where child widgets can
be “anchored” (inserted inline, as if they were characters). The anchor
can have multiple widgets anchored, to allow for multiple views.
- newtype TextChildAnchor = TextChildAnchor (ManagedPtr TextChildAnchor)
- class GObject o => IsTextChildAnchor o
- toTextChildAnchor :: IsTextChildAnchor o => o -> IO TextChildAnchor
- noTextChildAnchor :: Maybe TextChildAnchor
- data TextChildAnchorGetDeletedMethodInfo
- textChildAnchorGetDeleted :: (HasCallStack, MonadIO m, IsTextChildAnchor a) => a -> m Bool
- data TextChildAnchorGetWidgetsMethodInfo
- textChildAnchorGetWidgets :: (HasCallStack, MonadIO m, IsTextChildAnchor a) => a -> m [Widget]
- textChildAnchorNew :: (HasCallStack, MonadIO m) => m TextChildAnchor
Exported types
newtype TextChildAnchor Source #
GObject TextChildAnchor Source # | |
IsObject TextChildAnchor Source # | |
IsTextChildAnchor TextChildAnchor Source # | |
((~) * info (ResolveTextChildAnchorMethod t TextChildAnchor), MethodInfo * info TextChildAnchor p) => IsLabel t (TextChildAnchor -> p) Source # | |
((~) * info (ResolveTextChildAnchorMethod t TextChildAnchor), MethodInfo * info TextChildAnchor p) => IsLabelProxy t (TextChildAnchor -> p) Source # | |
HasAttributeList * TextChildAnchor Source # | |
type AttributeList TextChildAnchor Source # | |
type SignalList TextChildAnchor Source # | |
class GObject o => IsTextChildAnchor o Source #
toTextChildAnchor :: IsTextChildAnchor o => o -> IO TextChildAnchor Source #
Methods
getDeleted
data TextChildAnchorGetDeletedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextChildAnchor a) => MethodInfo * TextChildAnchorGetDeletedMethodInfo a signature Source # | |
textChildAnchorGetDeleted Source #
:: (HasCallStack, MonadIO m, IsTextChildAnchor a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether a child anchor has been deleted from
the buffer. Keep in mind that the child anchor will be
unreferenced when removed from the buffer, so you need to
hold your own reference (with objectRef
) if you plan
to use this function — otherwise all deleted child anchors
will also be finalized.
getWidgets
data TextChildAnchorGetWidgetsMethodInfo Source #
((~) * signature (m [Widget]), MonadIO m, IsTextChildAnchor a) => MethodInfo * TextChildAnchorGetWidgetsMethodInfo a signature Source # | |
textChildAnchorGetWidgets Source #
:: (HasCallStack, MonadIO m, IsTextChildAnchor a) | |
=> a |
|
-> m [Widget] | Returns: list of widgets anchored at |
Gets a list of all widgets anchored at this child anchor.
The returned list should be freed with g_list_free()
.
new
:: (HasCallStack, MonadIO m) | |
=> m TextChildAnchor | Returns: a new |
Creates a new TextChildAnchor
. Usually you would then insert
it into a TextBuffer
with textBufferInsertChildAnchor
.
To perform the creation and insertion in one step, use the
convenience function textBufferCreateChildAnchor
.