gi-gtksource-3.0.26: GtkSource bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GtkSource.Objects.Style

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Style Source #

Memory-managed wrapper type.

Constructors

Style (ManagedPtr Style) 

Instances

Instances details
Eq Style Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

Methods

(==) :: Style -> Style -> Bool #

(/=) :: Style -> Style -> Bool #

GObject Style Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

ManagedPtrNewtype Style Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

Methods

toManagedPtr :: Style -> ManagedPtr Style

TypedObject Style Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

Methods

glibType :: IO GType

HasParentTypes Style Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

IsGValue (Maybe Style) Source #

Convert Style to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GtkSource.Objects.Style

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Style -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Style)

type ParentTypes Style Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

type ParentTypes Style = '[Object]

class (GObject o, IsDescendantOf Style o) => IsStyle o Source #

Type class for types which can be safely cast to Style, for instance with toStyle.

Instances

Instances details
(GObject o, IsDescendantOf Style o) => IsStyle o Source # 
Instance details

Defined in GI.GtkSource.Objects.Style

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

Cast to Style, for types for which this is known to be safe. For general casts, use castTo.

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

No description available in the introspection data.

constructStyleBackground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background” property. This is rarely needed directly, but it is used by new.

getStyleBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #

Get the value of the “background” property. When overloading is enabled, this is equivalent to

get style #background

backgroundSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “background-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “background-set” property. When overloading is enabled, this is equivalent to

get style #backgroundSet

bold

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “bold” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “bold” property. When overloading is enabled, this is equivalent to

get style #bold

boldSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “bold-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “bold-set” property. When overloading is enabled, this is equivalent to

get style #boldSet

foreground

No description available in the introspection data.

constructStyleForeground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “foreground” property. This is rarely needed directly, but it is used by new.

getStyleForeground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #

Get the value of the “foreground” property. When overloading is enabled, this is equivalent to

get style #foreground

foregroundSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “foreground-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “foreground-set” property. When overloading is enabled, this is equivalent to

get style #foregroundSet

italic

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “italic” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “italic” property. When overloading is enabled, this is equivalent to

get style #italic

italicSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “italic-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “italic-set” property. When overloading is enabled, this is equivalent to

get style #italicSet

lineBackground

No description available in the introspection data.

constructStyleLineBackground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “line-background” property. This is rarely needed directly, but it is used by new.

getStyleLineBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #

Get the value of the “line-background” property. When overloading is enabled, this is equivalent to

get style #lineBackground

lineBackgroundSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “line-background-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “line-background-set” property. When overloading is enabled, this is equivalent to

get style #lineBackgroundSet

pangoUnderline

No description available in the introspection data.

constructStylePangoUnderline :: (IsStyle o, MonadIO m) => Underline -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pango-underline” property. This is rarely needed directly, but it is used by new.

getStylePangoUnderline :: (MonadIO m, IsStyle o) => o -> m Underline Source #

Get the value of the “pango-underline” property. When overloading is enabled, this is equivalent to

get style #pangoUnderline

scale

No description available in the introspection data.

constructStyleScale :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “scale” property. This is rarely needed directly, but it is used by new.

getStyleScale :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #

Get the value of the “scale” property. When overloading is enabled, this is equivalent to

get style #scale

scaleSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “scale-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “scale-set” property. When overloading is enabled, this is equivalent to

get style #scaleSet

strikethrough

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “strikethrough” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “strikethrough” property. When overloading is enabled, this is equivalent to

get style #strikethrough

strikethroughSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “strikethrough-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “strikethrough-set” property. When overloading is enabled, this is equivalent to

get style #strikethroughSet

underline

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “underline” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “underline” property. When overloading is enabled, this is equivalent to

get style #underline

underlineColor

No description available in the introspection data.

constructStyleUnderlineColor :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “underline-color” property. This is rarely needed directly, but it is used by new.

getStyleUnderlineColor :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #

Get the value of the “underline-color” property. When overloading is enabled, this is equivalent to

get style #underlineColor

underlineColorSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “underline-color-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “underline-color-set” property. When overloading is enabled, this is equivalent to

get style #underlineColorSet

underlineSet

No description available in the introspection data.

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

Construct a GValueConstruct with valid value for the “underline-set” property. This is rarely needed directly, but it is used by new.

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

Get the value of the “underline-set” property. When overloading is enabled, this is equivalent to

get style #underlineSet