| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Structs.TextAppearance
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
| Eq TextAppearance Source # | |
Defined in GI.Gtk.Structs.TextAppearance Methods (==) :: TextAppearance -> TextAppearance -> Bool (/=) :: TextAppearance -> TextAppearance -> Bool | |
| BoxedPtr TextAppearance Source # | |
Defined in GI.Gtk.Structs.TextAppearance | |
| CallocPtr TextAppearance Source # | |
Defined in GI.Gtk.Structs.TextAppearance Methods boxedPtrCalloc :: IO (Ptr TextAppearance) | |
| ManagedPtrNewtype TextAppearance Source # | |
Defined in GI.Gtk.Structs.TextAppearance Methods toManagedPtr :: TextAppearance -> ManagedPtr TextAppearance | |
| tag ~ 'AttrSet => Constructible TextAppearance tag Source # | |
Defined in GI.Gtk.Structs.TextAppearance Methods new :: MonadIO m => (ManagedPtr TextAppearance -> TextAppearance) -> [AttrOp TextAppearance tag] -> m TextAppearance | |
newZeroTextAppearance :: MonadIO m => m TextAppearance Source #
Construct a TextAppearance struct initialized to zero.
Methods
Overloaded 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
settextAppearance [ #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
settextAppearance [ #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
settextAppearance [ #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
settextAppearance [ #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
settextAppearance [ #strikethrough:=value ]
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
settextAppearance [ #underline:=value ]