gi-gtk-3.0.32: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.FontChooserWidget

Contents

Description

The tFontChooserWidget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the tFontChooserDialog 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.

Since: 3.2

Synopsis

Exported types

newtype FontChooserWidget Source #

Memory-managed wrapper type.

Constructors

FontChooserWidget (ManagedPtr FontChooserWidget) 
Instances
Eq FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

GObject FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

Methods

gobjectType :: IO GType

IsGValue FontChooserWidget Source #

Convert FontChooserWidget to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

Methods

toGValue :: FontChooserWidget -> IO GValue

fromGValue :: GValue -> IO FontChooserWidget

HasParentTypes FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

type ParentTypes FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

type ParentTypes FontChooserWidget = Box ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': (FontChooser ': (Orientable ': ([] :: [Type]))))))))

class (GObject o, IsDescendantOf FontChooserWidget o) => IsFontChooserWidget o Source #

Type class for types which can be safely cast to FontChooserWidget, for instance with toFontChooserWidget.

Instances
(GObject o, IsDescendantOf FontChooserWidget o) => IsFontChooserWidget o Source # 
Instance details

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

Overloaded methods

new

fontChooserWidgetNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m FontChooserWidget

Returns: a new tFontChooserWidget

Creates a new tFontChooserWidget.

Since: 3.2

Properties

tweakAction

A toggle action that can be used to switch to the tweak page of the font chooser widget, which lets the user tweak the OpenType features and variation axes of the selected font.

The action will be enabled or disabled depending on whether the selected font has any features or axes.

getFontChooserWidgetTweakAction :: (MonadIO m, IsFontChooserWidget o) => o -> m (Maybe Action) Source #

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

get fontChooserWidget #tweakAction