gi-gtksource-3.0.15: GtkSource bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GtkSource.Objects.Mark

Contents

Description

 

Synopsis

Exported types

toMark :: (MonadIO m, IsMark o) => o -> m Mark Source #

Methods

getCategory

markGetCategory Source #

Arguments

:: (HasCallStack, MonadIO m, IsMark a) 
=> a

mark: a Mark.

-> m Text

Returns: the category of the Mark.

Returns the mark category.

Since: 2.2

new

markNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

name: Name of the Mark, can be NULL when not using a name

-> Text

category: is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).

-> m Mark

Returns: a new Mark that can be added using textBufferAddMark.

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

markNext Source #

Arguments

:: (HasCallStack, MonadIO m, IsMark a) 
=> a

mark: a Mark.

-> Maybe Text

category: a string specifying the mark category, or Nothing.

-> m (Maybe Mark)

Returns: the next Mark, or Nothing.

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

markPrev Source #

Arguments

:: (HasCallStack, MonadIO m, IsMark a) 
=> a

mark: a Mark.

-> Text

category: a string specifying the mark category, or Nothing.

-> m (Maybe Mark)

Returns: the previous Mark, or Nothing.

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