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.Objects.FontChooserWidget

Contents

- Exported types
- Methods
  - new
- Properties
  - tweakAction

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.

Since: 3.2

Synopsis

- newtype FontChooserWidget = FontChooserWidget (ManagedPtr FontChooserWidget)
- class (GObject o, IsDescendantOf FontChooserWidget o) => IsFontChooserWidget o
- toFontChooserWidget :: (MonadIO m, IsFontChooserWidget o) => o -> m FontChooserWidget
- fontChooserWidgetNew :: (HasCallStack, MonadIO m) => m FontChooserWidget
- getFontChooserWidgetTweakAction :: (MonadIO m, IsFontChooserWidget o) => o -> m (Maybe Action)

# 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 Methods (==) :: FontChooserWidget -> FontChooserWidget -> Bool Source # (/=) :: FontChooserWidget -> FontChooserWidget -> Bool Source #
GObject FontChooserWidget Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserWidget
ManagedPtrNewtype FontChooserWidget Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserWidget Methods toManagedPtr :: FontChooserWidget -> ManagedPtr FontChooserWidget Source #
TypedObject FontChooserWidget Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserWidget Methods glibType :: IO GType Source #
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 Source # gvalueSet_ :: Ptr GValue -> Maybe FontChooserWidget -> IO () Source # gvalueGet_ :: Ptr GValue -> IO (Maybe FontChooserWidget) Source #
type ParentTypes FontChooserWidget Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserWidget type ParentTypes FontChooserWidget = '[Box, Container, Widget, Object, ImplementorIface, Buildable, FontChooser, Orientable]

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

activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, packEnd, packStart, parserFinished, path, propagateDraw, queryChildPacking, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reorderChild, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.

#### Getters

getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBaselinePosition, getBorderWidth, getCanDefault, getCanFocus, getCenterWidget, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFont, getFontDesc, getFontFace, getFontFamily, getFontFeatures, getFontMap, getFontOptions, getFontSize, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getHomogeneous, getInternalChild, getLanguage, getLevel, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getPreviewText, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getShowPreviewEntry, getSizeRequest, getSpacing, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

#### Setters

setAccelPath, setAllocation, setAppPaintable, setBaselinePosition, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setCenterWidget, setChildPacking, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFilterFunc, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFont, setFontDesc, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setHomogeneous, setLanguage, setLevel, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setPreviewText, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSensitive, setShowPreviewEntry, setSizeRequest, setSpacing, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

## new

fontChooserWidgetNew Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> m FontChooserWidget | Returns: a new `FontChooserWidget`

Creates a new `FontChooserWidget`.

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