gi-gtksource-3.0.12: 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

newtype Mark Source #

Constructors

Mark (ManagedPtr Mark) 

Instances

GObject Mark Source # 

Methods

gobjectType :: Mark -> IO GType #

IsObject Mark Source # 
IsTextMark Mark Source # 
IsMark Mark Source # 
((~) * info (ResolveMarkMethod t Mark), MethodInfo * info Mark p) => IsLabel t (Mark -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Mark -> p #

((~) * info (ResolveMarkMethod t Mark), MethodInfo * info Mark p) => IsLabelProxy t (Mark -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Mark -> p #

HasAttributeList * Mark Source # 
type AttributeList Mark Source # 
type SignalList Mark Source # 

toMark :: IsMark o => o -> IO Mark Source #

Methods

getCategory

data MarkGetCategoryMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsMark a) => MethodInfo * MarkGetCategoryMethodInfo a signature Source # 

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

data MarkNextMethodInfo Source #

Instances

((~) * signature (Maybe Text -> m (Maybe Mark)), MonadIO m, IsMark a) => MethodInfo * MarkNextMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy MarkNextMethodInfo a -> signature -> s #

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

data MarkPrevMethodInfo Source #

Instances

((~) * signature (Text -> m (Maybe Mark)), MonadIO m, IsMark a) => MethodInfo * MarkPrevMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy MarkPrevMethodInfo a -> signature -> s #

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

data MarkCategoryPropertyInfo Source #

Instances

AttrInfo MarkCategoryPropertyInfo Source # 
type AttrOrigin MarkCategoryPropertyInfo Source # 
type AttrLabel MarkCategoryPropertyInfo Source # 
type AttrGetType MarkCategoryPropertyInfo Source # 
type AttrBaseTypeConstraint MarkCategoryPropertyInfo Source # 
type AttrSetTypeConstraint MarkCategoryPropertyInfo Source # 
type AttrAllowedOps MarkCategoryPropertyInfo Source #