gi-gtk-3.0.43: Gtk bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gtk.Structs.TextAppearance

Contents

- Exported types
- Methods
- Properties
  - bgColor
  - drawBg
  - fgColor
  - insideSelection
  - isText
  - rise
  - strikethrough
  - underline

Description

No description available in the introspection data.

Synopsis

- newtype TextAppearance = TextAppearance (ManagedPtr TextAppearance)
- newZeroTextAppearance :: MonadIO m => m TextAppearance
- getTextAppearanceBgColor :: MonadIO m => TextAppearance -> m Color
- getTextAppearanceDrawBg :: MonadIO m => TextAppearance -> m Word32
- setTextAppearanceDrawBg :: MonadIO m => TextAppearance -> Word32 -> m ()
- getTextAppearanceFgColor :: MonadIO m => TextAppearance -> m Color
- getTextAppearanceInsideSelection :: MonadIO m => TextAppearance -> m Word32
- setTextAppearanceInsideSelection :: MonadIO m => TextAppearance -> Word32 -> m ()
- getTextAppearanceIsText :: MonadIO m => TextAppearance -> m Word32
- setTextAppearanceIsText :: MonadIO m => TextAppearance -> Word32 -> m ()
- getTextAppearanceRise :: MonadIO m => TextAppearance -> m Int32
- setTextAppearanceRise :: MonadIO m => TextAppearance -> Int32 -> m ()
- getTextAppearanceStrikethrough :: MonadIO m => TextAppearance -> m Word32
- setTextAppearanceStrikethrough :: MonadIO m => TextAppearance -> Word32 -> m ()
- getTextAppearanceUnderline :: MonadIO m => TextAppearance -> m Word32
- setTextAppearanceUnderline :: MonadIO m => TextAppearance -> Word32 -> m ()

# Exported types

newtype TextAppearance Source #

Memory-managed wrapper type.

Constructors

TextAppearance (ManagedPtr TextAppearance) |

#### Instances

Instances details

Eq TextAppearance Source # |
Instance details Defined in GI.Gtk.Structs.TextAppearance Methods (==) :: TextAppearance -> TextAppearance -> Bool Source # (/=) :: TextAppearance -> TextAppearance -> Bool Source #
BoxedPtr TextAppearance Source # |
Instance details Defined in GI.Gtk.Structs.TextAppearance Methods boxedPtrCopy :: TextAppearance -> IO TextAppearance Source # boxedPtrFree :: TextAppearance -> IO () Source #
CallocPtr TextAppearance Source # |
Instance details Defined in GI.Gtk.Structs.TextAppearance Methods boxedPtrCalloc :: IO (Ptr TextAppearance) Source #
ManagedPtrNewtype TextAppearance Source # |
Instance details Defined in GI.Gtk.Structs.TextAppearance Methods toManagedPtr :: TextAppearance -> ManagedPtr TextAppearance Source #
tag ~ 'AttrSet => Constructible TextAppearance tag Source # |
Instance details Defined in GI.Gtk.Structs.TextAppearance Methods new :: MonadIO m => (ManagedPtr TextAppearance -> TextAppearance) -> [AttrOp TextAppearance tag] -> m TextAppearance Source #

newZeroTextAppearance :: MonadIO m => m TextAppearance Source #

Construct a `TextAppearance` struct initialized to zero.

# Methods

# Properties

## bgColor

Background `Color`.

getTextAppearanceBgColor :: MonadIO m => TextAppearance -> m Color Source #

Get the value of the “`bg_color`” field. When overloading is enabled, this is equivalent to

    get textAppearance #bgColor

## drawBg

Whether to use background-related values; this is irrelevant for the values struct when in a tag, but is used for the composite values struct; it’s true if any of the tags being composited had background stuff set.

getTextAppearanceDrawBg :: MonadIO m => TextAppearance -> m Word32 Source #

Get the value of the “`draw_bg`” field. When overloading is enabled, this is equivalent to

    get textAppearance #drawBg

setTextAppearanceDrawBg :: MonadIO m => TextAppearance -> Word32 -> m () Source #

Set the value of the “`draw_bg`” field. When overloading is enabled, this is equivalent to

    set textAppearance [ #drawBg := value ]

## fgColor

Foreground `Color`.

getTextAppearanceFgColor :: MonadIO m => TextAppearance -> m Color Source #

Get the value of the “`fg_color`” field. When overloading is enabled, this is equivalent to

    get textAppearance #fgColor

## insideSelection

This are only used when we are actually laying out and rendering a paragraph; not when a `TextAppearance` is part of a `TextAttributes`.

getTextAppearanceInsideSelection :: MonadIO m => TextAppearance -> m Word32 Source #

Get the value of the “`inside_selection`” field. When overloading is enabled, this is equivalent to

    get textAppearance #insideSelection

setTextAppearanceInsideSelection :: MonadIO m => TextAppearance -> Word32 -> m () Source #

Set the value of the “`inside_selection`” field. When overloading is enabled, this is equivalent to

    set textAppearance [ #insideSelection := value ]

## isText

This are only used when we are actually laying out and rendering a paragraph; not when a `TextAppearance` is part of a `TextAttributes`.

getTextAppearanceIsText :: MonadIO m => TextAppearance -> m Word32 Source #

Get the value of the “`is_text`” field. When overloading is enabled, this is equivalent to

    get textAppearance #isText

setTextAppearanceIsText :: MonadIO m => TextAppearance -> Word32 -> m () Source #

Set the value of the “`is_text`” field. When overloading is enabled, this is equivalent to

    set textAppearance [ #isText := value ]

## rise

Super/subscript rise, can be negative.

getTextAppearanceRise :: MonadIO m => TextAppearance -> m Int32 Source #

Get the value of the “`rise`” field. When overloading is enabled, this is equivalent to

    get textAppearance #rise

setTextAppearanceRise :: MonadIO m => TextAppearance -> Int32 -> m () Source #

Set the value of the “`rise`” field. When overloading is enabled, this is equivalent to

    set textAppearance [ #rise := value ]

## strikethrough

Strikethrough style

getTextAppearanceStrikethrough :: MonadIO m => TextAppearance -> m Word32 Source #

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

    get textAppearance #strikethrough

setTextAppearanceStrikethrough :: MonadIO m => TextAppearance -> Word32 -> m () Source #

Set the value of the “`strikethrough`” field. When overloading is enabled, this is equivalent to

    set textAppearance [ #strikethrough := value ]

## underline

`Underline`

getTextAppearanceUnderline :: MonadIO m => TextAppearance -> m Word32 Source #

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

    get textAppearance #underline

setTextAppearanceUnderline :: MonadIO m => TextAppearance -> Word32 -> m () Source #

Set the value of the “`underline`” field. When overloading is enabled, this is equivalent to

    set textAppearance [ #underline := value ]