| 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.GtkSource.Objects.Mark
Description
- newtype Mark = Mark (ManagedPtr Mark)
- class GObject o => IsMark o
- toMark :: IsMark o => o -> IO Mark
- noMark :: Maybe Mark
- data MarkGetCategoryMethodInfo
- markGetCategory :: (HasCallStack, MonadIO m, IsMark a) => a -> m Text
- markNew :: (HasCallStack, MonadIO m) => Text -> Text -> m Mark
- data MarkNextMethodInfo
- markNext :: (HasCallStack, MonadIO m, IsMark a) => a -> Maybe Text -> m (Maybe Mark)
- data MarkPrevMethodInfo
- markPrev :: (HasCallStack, MonadIO m, IsMark a) => a -> Text -> m (Maybe Mark)
- data MarkCategoryPropertyInfo
- constructMarkCategory :: IsMark o => Text -> IO (GValueConstruct o)
- getMarkCategory :: (MonadIO m, IsMark o) => o -> m Text
- markCategory :: AttrLabelProxy "category"
Exported types
Constructors
| Mark (ManagedPtr Mark) |
Instances
| GObject Mark Source # | |
| IsObject Mark Source # | |
| IsTextMark Mark Source # | |
| IsMark Mark Source # | |
| ((~) * info (ResolveMarkMethod t Mark), MethodInfo * info Mark p) => IsLabel t (Mark -> p) Source # | |
| ((~) * info (ResolveMarkMethod t Mark), MethodInfo * info Mark p) => IsLabelProxy t (Mark -> p) Source # | |
| HasAttributeList * Mark Source # | |
| type AttributeList Mark Source # | |
| type SignalList Mark Source # | |
Methods
getCategory
data MarkGetCategoryMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsMark a) => MethodInfo * MarkGetCategoryMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMark a) | |
| => a |
|
| -> m Text | Returns: the category of the |
Returns the mark category.
Since: 2.2
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Text |
|
| -> m Mark | Returns: a new |
Creates a text mark. Add it to a buffer using textBufferAddMark.
If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
by name using textBufferGetMark.
Normally marks are created using the utility function
bufferCreateSourceMark.
Since: 2.2
next
data MarkNextMethodInfo Source #
prev
data MarkPrevMethodInfo Source #
Properties
category
data MarkCategoryPropertyInfo Source #
Instances
constructMarkCategory :: IsMark o => Text -> IO (GValueConstruct o) Source #
markCategory :: AttrLabelProxy "category" Source #