Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Mark = Mark (ManagedPtr Mark)
- class (GObject o, IsDescendantOf Mark o) => IsMark o
- toMark :: (MonadIO m, IsMark o) => o -> m Mark
- markGetCategory :: (HasCallStack, MonadIO m, IsMark a) => a -> m Text
- markNew :: (HasCallStack, MonadIO m) => Text -> Text -> m Mark
- markNext :: (HasCallStack, MonadIO m, IsMark a) => a -> Maybe Text -> m (Maybe Mark)
- markPrev :: (HasCallStack, MonadIO m, IsMark a) => a -> Text -> m (Maybe Mark)
- constructMarkCategory :: (IsMark o, MonadIO m) => Text -> m (GValueConstruct o)
- getMarkCategory :: (MonadIO m, IsMark o) => o -> m Text
Exported types
Memory-managed wrapper type.
Instances
Eq Mark Source # | |
GObject Mark Source # | |
Defined in GI.GtkSource.Objects.Mark | |
ManagedPtrNewtype Mark Source # | |
Defined in GI.GtkSource.Objects.Mark toManagedPtr :: Mark -> ManagedPtr Mark | |
TypedObject Mark Source # | |
Defined in GI.GtkSource.Objects.Mark glibType :: IO GType | |
IsGValue Mark Source # | Convert |
Defined in GI.GtkSource.Objects.Mark fromGValue :: GValue -> IO Mark | |
HasParentTypes Mark Source # | |
Defined in GI.GtkSource.Objects.Mark | |
type ParentTypes Mark Source # | |
Defined in GI.GtkSource.Objects.Mark type ParentTypes Mark = '[TextMark, Object] |
class (GObject o, IsDescendantOf Mark o) => IsMark o Source #
Instances
(GObject o, IsDescendantOf Mark o) => IsMark o Source # | |
Defined in GI.GtkSource.Objects.Mark |
Methods
Overloaded methods
getCategory
Returns the mark category.
Since: 2.2
new
:: (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
:: (HasCallStack, MonadIO m, IsMark a) | |
=> a |
|
-> Maybe Text |
|
-> m (Maybe Mark) | Returns: the next |
Returns the next Mark
in the buffer or Nothing
if the mark
was not added to a buffer. If there is no next mark, Nothing
will be returned.
If category
is Nothing
, looks for marks of any category.
Since: 2.2
prev
:: (HasCallStack, MonadIO m, IsMark a) | |
=> a |
|
-> Text |
|
-> m (Maybe Mark) | Returns: the previous |
Returns the previous Mark
in the buffer or Nothing
if the mark
was not added to a buffer. If there is no previous mark, Nothing
is returned.
If category
is Nothing
, looks for marks of any category
Since: 2.2
Properties
category
The category of the Mark
, classifies the mark and controls
which pixbuf is used and with which priority it is drawn.
constructMarkCategory :: (IsMark o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “category
” property. This is rarely needed directly, but it is used by new
.
getMarkCategory :: (MonadIO m, IsMark o) => o -> m Text Source #
Get the value of the “category
” property.
When overloading is enabled, this is equivalent to
get
mark #category