gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.FontChooserWidget

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

Exported types

newtype FontChooserWidget Source #

Memory-managed wrapper type.

Constructors

FontChooserWidget (ManagedPtr FontChooserWidget) 

Instances

Instances details
Eq FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

GObject FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

ManagedPtrNewtype FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

TypedObject FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

Methods

glibType :: IO GType

HasParentTypes FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

IsGValue (Maybe FontChooserWidget) Source #

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

Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes FontChooserWidget Source # 
Instance details

Defined in GI.Gtk.Objects.FontChooserWidget

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

Instances details
(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.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.

Getters

getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFont, getFontDesc, getFontFace, getFontFamily, getFontFeatures, getFontMap, getFontOptions, getFontSize, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLanguage, getLastChild, getLayoutManager, getLevel, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPreviewText, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getShowPreviewEntry, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.

Setters

setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFilterFunc, setFocusChild, setFocusOnClick, setFocusable, setFont, setFontDesc, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLanguage, setLayoutManager, setLevel, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setPreviewText, setProperty, setReceivesDefault, setSensitive, setShowPreviewEntry, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.

new

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