gi-gtk4-4.0.12: Gtk 4.x 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.FontChooserDialog

Contents

- Exported types
- Methods
  - new

Description

The `GtkFontChooserDialog` widget is a dialog for selecting a font.

<picture> <source srcset="fontchooser-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkFontChooserDialog" src="fontchooser.png"> </picture>

`GtkFontChooserDialog` implements the `FontChooser` interface and does not provide much API of its own.

To create a `GtkFontChooserDialog`, use `fontChooserDialogNew`.

# GtkFontChooserDialog as GtkBuildable

The `GtkFontChooserDialog` implementation of the `GtkBuildable` interface exposes the buttons with the names “select_button” and “cancel_button”.

## CSS nodes

`GtkFontChooserDialog` has a single CSS node with the name `window` and style class `.fontchooser`.

Synopsis

- newtype FontChooserDialog = FontChooserDialog (ManagedPtr FontChooserDialog)
- class (GObject o, IsDescendantOf FontChooserDialog o) => IsFontChooserDialog o
- toFontChooserDialog :: (MonadIO m, IsFontChooserDialog o) => o -> m FontChooserDialog
- fontChooserDialogNew :: (HasCallStack, MonadIO m, IsWindow a) => Maybe Text -> Maybe a -> m FontChooserDialog

# Exported types

newtype FontChooserDialog Source #

Memory-managed wrapper type.

Constructors

FontChooserDialog (ManagedPtr FontChooserDialog) |

#### Instances

Instances details

Eq FontChooserDialog Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog Methods (==) :: FontChooserDialog -> FontChooserDialog -> Bool Source # (/=) :: FontChooserDialog -> FontChooserDialog -> Bool Source #
GObject FontChooserDialog Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog
ManagedPtrNewtype FontChooserDialog Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog Methods toManagedPtr :: FontChooserDialog -> ManagedPtr FontChooserDialog Source #
TypedObject FontChooserDialog Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog Methods glibType :: IO GType Source #
HasParentTypes FontChooserDialog Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog
IsGValue (Maybe FontChooserDialog) Source # | Convert `FontChooserDialog` to and from `GValue`. See `toGValue` and `fromGValue`.
Instance details Defined in GI.Gtk.Objects.FontChooserDialog Methods gvalueGType_ :: IO GType Source # gvalueSet_ :: Ptr GValue -> Maybe FontChooserDialog -> IO () Source # gvalueGet_ :: Ptr GValue -> IO (Maybe FontChooserDialog) Source #
type ParentTypes FontChooserDialog Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog type ParentTypes FontChooserDialog = '[Dialog, Window, Widget, Object, Accessible, Buildable, ConstraintTarget, FontChooser, Native, Root, ShortcutManager]

class (GObject o, IsDescendantOf FontChooserDialog o) => IsFontChooserDialog o Source #

Type class for types which can be safely cast to `FontChooserDialog`, for instance with `toFontChooserDialog`.

#### Instances

Instances details

(GObject o, IsDescendantOf FontChooserDialog o) => IsFontChooserDialog o Source # |
Instance details Defined in GI.Gtk.Objects.FontChooserDialog

toFontChooserDialog :: (MonadIO m, IsFontChooserDialog o) => o -> m FontChooserDialog Source #

Cast to `FontChooserDialog`, 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, addActionWidget, addButton, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, announce, bindProperty, bindPropertyFull, childFocus, close, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, destroy, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, fullscreen, fullscreenOnMonitor, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasGroup, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isActive, isAncestor, isDrawable, isFloating, isFocus, isFullscreen, isMaximized, isSensitive, isSuspended, isVisible, keynavFailed, listMnemonicLabels, map, maximize, measure, minimize, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, present, presentWithTime, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, response, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unfullscreen, unmap, unmaximize, unminimize, unparent, unrealize, unref, unsetStateFlags, updateNextAccessibleSibling, updatePlatformState, updateProperty, updateRelation, updateState, watchClosure.

#### Getters

getAccessibleId, getAccessibleParent, getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getApplication, getAtContext, getBaseline, getBounds, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getColor, getContentArea, getCssClasses, getCssName, getCursor, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDirection, getDisplay, getFirstAccessibleChild, getFirstChild, getFocus, getFocusChild, getFocusOnClick, getFocusVisible, getFocusable, getFont, getFontDesc, getFontFace, getFontFamily, getFontFeatures, getFontMap, getFontOptions, getFontSize, getFrameClock, getGravity, getGroup, getHalign, getHandleMenubarAccel, getHasTooltip, getHeaderBar, getHeight, getHexpand, getHexpandSet, getHideOnClose, getIconName, getLanguage, getLastChild, getLayoutManager, getLevel, getLimitEvents, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMnemonicsVisible, getModal, getName, getNative, getNextAccessibleSibling, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPlatformState, getPreferredSize, getPrevSibling, getPreviewText, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRenderer, getRequestMode, getResizable, getResponseForWidget, getRoot, getScaleFactor, getSensitive, getSettings, getShowPreviewEntry, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTransientFor, getValign, getVexpand, getVexpandSet, getVisible, getWidgetForResponse, getWidth.

#### Setters

setAccessibleParent, setApplication, setCanFocus, setCanTarget, setChild, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDecorated, setDefaultResponse, setDefaultSize, setDefaultWidget, setDeletable, setDestroyWithParent, setDirection, setDisplay, setFilterFunc, setFocus, setFocusChild, setFocusOnClick, setFocusVisible, setFocusable, setFont, setFontDesc, setFontMap, setFontOptions, setGravity, setHalign, setHandleMenubarAccel, setHasTooltip, setHexpand, setHexpandSet, setHideOnClose, setIconName, setLanguage, setLayoutManager, setLevel, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMnemonicsVisible, setModal, setName, setOpacity, setOverflow, setParent, setPreviewText, setProperty, setReceivesDefault, setResizable, setResponseSensitive, setSensitive, setShowPreviewEntry, setSizeRequest, setStartupId, setStateFlags, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTransientFor, setValign, setVexpand, setVexpandSet, setVisible.

## new

fontChooserDialogNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsWindow a) |
=> Maybe Text | `title`: Title of the dialog
-> Maybe a | `parent`: Transient parent of the dialog
-> m FontChooserDialog | Returns: a new `GtkFontChooserDialog`

Deprecated: (Since version 4.10)Use `FontDialog` instead

Creates a new `GtkFontChooserDialog`.