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.MarkAttributes

Contents

Description

 

Synopsis

Exported types

Methods

getBackground

markAttributesGetBackground Source #

Arguments

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

attributes: a MarkAttributes.

-> m (Bool, RGBA)

Returns: whether background color for attributes was set.

Stores background color in background.

getGicon

markAttributesGetGicon Source #

Arguments

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

attributes: a MarkAttributes.

-> m Icon

Returns: An icon. The icon belongs to attributes and should not be unreffed.

Gets a Icon to be used as a base for rendered icon. Note that the icon can be Nothing if it wasn't set earlier.

getIconName

markAttributesGetIconName Source #

Arguments

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

attributes: a MarkAttributes.

-> m Text

Returns: An icon name. The string belongs to attributes and should not be freed.

Gets a name of an icon to be used as a base for rendered icon. Note that the icon name can be Nothing if it wasn't set earlier.

getPixbuf

markAttributesGetPixbuf Source #

Arguments

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

attributes: a MarkAttributes.

-> m Pixbuf

Returns: A pixbuf. The pixbuf belongs to attributes and should not be unreffed.

Gets a Pixbuf to be used as a base for rendered icon. Note that the pixbuf can be Nothing if it wasn't set earlier.

getStockId

markAttributesGetStockId Source #

Arguments

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

attributes: a MarkAttributes.

-> m Text

Returns: Stock id. Returned string is owned by attributes and shouldn't be freed.

Deprecated: (Since version 3.10)Don't use this function.

Gets a stock id of an icon used by this attributes. Note that the stock id can be Nothing if it wasn't set earlier.

getTooltipMarkup

markAttributesGetTooltipMarkup Source #

Arguments

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

attributes: a MarkAttributes.

-> b

mark: a Mark.

-> m Text

Returns: A tooltip. The returned string should be freed by using free when done with it.

Queries for a tooltip by emitting a MarkAttributes::query-tooltip-markup signal. The tooltip may contain a markup.

getTooltipText

markAttributesGetTooltipText Source #

Arguments

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

attributes: a MarkAttributes.

-> b

mark: a Mark.

-> m Text

Returns: A tooltip. The returned string should be freed by using free when done with it.

Queries for a tooltip by emitting a MarkAttributes::query-tooltip-text signal. The tooltip is a plain text.

new

markAttributesNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m MarkAttributes

Returns: a new source mark attributes.

Creates a new source mark attributes.

renderIcon

markAttributesRenderIcon Source #

Arguments

:: (HasCallStack, MonadIO m, IsMarkAttributes a, IsWidget b) 
=> a

attributes: a MarkAttributes.

-> b

widget: widget of which style settings may be used.

-> Int32

size: size of the rendered icon.

-> m Pixbuf

Returns: A rendered pixbuf. The pixbuf belongs to attributes and should not be unreffed.

Renders an icon of given size. The base of the icon is set by the last call to one of: markAttributesSetPixbuf, markAttributesSetGicon, markAttributesSetIconName or markAttributesSetStockId. size cannot be lower than 1.

setBackground

markAttributesSetBackground Source #

Arguments

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

attributes: a MarkAttributes.

-> RGBA

background: a RGBA.

-> m () 

Sets background color to the one given in background.

setGicon

markAttributesSetGicon Source #

Arguments

:: (HasCallStack, MonadIO m, IsMarkAttributes a, IsIcon b) 
=> a

attributes: a MarkAttributes.

-> b

gicon: a Icon to be used.

-> m () 

Sets an icon to be used as a base for rendered icon.

setIconName

markAttributesSetIconName Source #

Arguments

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

attributes: a MarkAttributes.

-> Text

iconName: name of an icon to be used.

-> m () 

Sets a name of an icon to be used as a base for rendered icon.

setPixbuf

markAttributesSetPixbuf Source #

Arguments

:: (HasCallStack, MonadIO m, IsMarkAttributes a, IsPixbuf b) 
=> a

attributes: a MarkAttributes.

-> b

pixbuf: a Pixbuf to be used.

-> m () 

Sets a pixbuf to be used as a base for rendered icon.

setStockId

markAttributesSetStockId Source #

Arguments

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

attributes: a MarkAttributes.

-> Text

stockId: a stock id.

-> m () 

Deprecated: (Since version 3.10)Don't use this function.

Sets stock id to be used as a base for rendered icon.

Properties

background

gicon

iconName

pixbuf

stockId

Signals

queryTooltipMarkup

queryTooltipText