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

Contents

Description

 

Synopsis

Exported types

toStyle :: (MonadIO m, IsStyle o) => o -> m Style Source #

Methods

apply

styleApply Source #

Arguments

:: (HasCallStack, MonadIO m, IsStyle a, IsTextTag b) 
=> a

style: a Style to apply, or Nothing.

-> b

tag: a TextTag to apply styles to.

-> m () 

This function modifies the TextTag properties that are related to the Style properties. Other TextTag properties are left untouched.

If style is non-Nothing, applies style to tag.

If style is Nothing, the related *-set properties of TextTag are set to False.

Since: 3.22

copy

styleCopy Source #

Arguments

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

style: a Style structure to copy.

-> m Style

Returns: copy of style, call objectUnref when you are done with it.

Creates a copy of style, that is a new Style instance which has the same attributes set.

Since: 2.0

Properties

background

backgroundSet

bold

getStyleBold :: (MonadIO m, IsStyle o) => o -> m Bool Source #

boldSet

foreground

foregroundSet

italic

italicSet

lineBackground

lineBackgroundSet

pangoUnderline

scale

scaleSet

strikethrough

strikethroughSet

underline

underlineColor

underlineColorSet

underlineSet