| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.FontChooserWidget
Contents
Description
The FontChooserWidget widget lists the available fonts,
styles and sizes, allowing the user to select a font. It is
used in the FontChooserDialog widget to provide a
dialog box for selecting fonts.
To set the font which is initially selected, use
fontChooserSetFont or fontChooserSetFontDesc.
To get the selected font use fontChooserGetFont or
fontChooserGetFontDesc.
To change the text which is shown in the preview area, use
fontChooserSetPreviewText.
CSS nodes
GtkFontChooserWidget has a single CSS node with name fontchooser.
Synopsis
- newtype FontChooserWidget = FontChooserWidget (ManagedPtr FontChooserWidget)
- class GObject o => IsFontChooserWidget o
- toFontChooserWidget :: (MonadIO m, IsFontChooserWidget o) => o -> m FontChooserWidget
- noFontChooserWidget :: Maybe FontChooserWidget
- fontChooserWidgetNew :: (HasCallStack, MonadIO m) => m FontChooserWidget
Exported types
newtype FontChooserWidget Source #
Memory-managed wrapper type.
Constructors
| FontChooserWidget (ManagedPtr FontChooserWidget) |
Instances
| GObject FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget Methods gobjectType :: FontChooserWidget -> IO GType # | |
| IsImplementorIface FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsObject FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsBuildable FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsFontChooser FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsOrientable FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsBox FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsContainer FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsWidget FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsFontChooserWidget FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
class GObject o => IsFontChooserWidget o Source #
Type class for types which can be safely cast to FontChooserWidget, for instance with toFontChooserWidget.
Instances
| (GObject a, (UnknownAncestorError FontChooserWidget a :: Constraint)) => IsFontChooserWidget a Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
| IsFontChooserWidget FontChooserWidget Source # | |
Defined in GI.Gtk.Objects.FontChooserWidget | |
toFontChooserWidget :: (MonadIO m, IsFontChooserWidget o) => o -> m FontChooserWidget Source #
Cast to FontChooserWidget, for types for which this is known to be safe. For general casts, use castTo.
noFontChooserWidget :: Maybe FontChooserWidget Source #
A convenience alias for Nothing :: Maybe FontChooserWidget.
Methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m FontChooserWidget | Returns: a new |
Creates a new FontChooserWidget.
Since: 3.2