gi-gtk3-3.0.44: Gtk 3.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.FontSelectionDialog

Contents

- Exported types
- Methods
  - getCancelButton
  - getFontName
  - getFontSelection
  - getOkButton
  - getPreviewText
  - new
  - setFontName
  - setPreviewText

Description

No description available in the introspection data.

Synopsis

- newtype FontSelectionDialog = FontSelectionDialog (ManagedPtr FontSelectionDialog)
- class (GObject o, IsDescendantOf FontSelectionDialog o) => IsFontSelectionDialog o
- toFontSelectionDialog :: (MonadIO m, IsFontSelectionDialog o) => o -> m FontSelectionDialog
- fontSelectionDialogGetCancelButton :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Widget
- fontSelectionDialogGetFontName :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Text
- fontSelectionDialogGetFontSelection :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Widget
- fontSelectionDialogGetOkButton :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Widget
- fontSelectionDialogGetPreviewText :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Text
- fontSelectionDialogNew :: (HasCallStack, MonadIO m) => Text -> m FontSelectionDialog
- fontSelectionDialogSetFontName :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> Text -> m Bool
- fontSelectionDialogSetPreviewText :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> Text -> m ()

# Exported types

newtype FontSelectionDialog Source #

Memory-managed wrapper type.

Constructors

FontSelectionDialog (ManagedPtr FontSelectionDialog) |

#### Instances

Instances details

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

class (GObject o, IsDescendantOf FontSelectionDialog o) => IsFontSelectionDialog o Source #

Type class for types which can be safely cast to `FontSelectionDialog`, for instance with `toFontSelectionDialog`.

#### Instances

Instances details

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

toFontSelectionDialog :: (MonadIO m, IsFontSelectionDialog o) => o -> m FontSelectionDialog Source #

Cast to `FontSelectionDialog`, 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, activateDefault, activateFocus, activateKey, add, addAccelGroup, addAccelerator, addActionWidget, addButton, addChild, addDeviceEvents, addEvents, addMnemonic, addMnemonicLabel, addTickCallback, beginMoveDrag, beginResizeDrag, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, close, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, deiconify, 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, fullscreen, fullscreenOnMonitor, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasGroup, hasRcStyle, hasScreen, hasToplevelFocus, hasVisibleFocus, hide, hideOnDelete, iconify, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isActive, isAncestor, isComposited, isDrawable, isFloating, isFocus, isMaximized, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, maximize, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, move, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parseGeometry, parserFinished, path, present, presentWithTime, propagateDraw, propagateKeyEvent, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelGroup, removeAccelerator, removeMnemonic, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, reshowWithInitialSize, resize, resizeChildren, resizeGripIsVisible, resizeToGeometry, response, run, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, stick, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unfullscreen, unmap, unmaximize, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, unstick, watchClosure.

#### Getters

getAcceptFocus, getAccessible, getActionArea, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getApplication, getAttachedTo, getBorderWidth, getCanDefault, getCanFocus, getCancelButton, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getContentArea, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocus, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusOnMap, getFocusVadjustment, getFocusVisible, getFontMap, getFontName, getFontOptions, getFontSelection, getFrameClock, getGravity, getGroup, getHalign, getHasResizeGrip, getHasTooltip, getHasWindow, getHeaderBar, getHexpand, getHexpandSet, getHideTitlebarWhenMaximized, getIcon, getIconList, getIconName, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMnemonicModifier, getMnemonicsVisible, getModal, getModifierMask, getModifierStyle, getName, getNoShowAll, getOkButton, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPosition, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getPreviewText, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizable, getResizeGripArea, getResizeMode, getResponseForWidget, getRole, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSize, getSizeRequest, getSkipPagerHint, getSkipTaskbarHint, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getTransientFor, getTypeHint, getUrgencyHint, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWidgetForResponse, getWindow, getWindowType.

#### Setters

setAccelPath, setAcceptFocus, setAllocation, setAlternativeButtonOrderFromArray, setAppPaintable, setApplication, setAttachedTo, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDecorated, setDefault, setDefaultGeometry, setDefaultResponse, setDefaultSize, setDeletable, setDestroyWithParent, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocus, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusOnMap, setFocusVadjustment, setFocusVisible, setFontMap, setFontName, setFontOptions, setGeometryHints, setGravity, setHalign, setHasResizeGrip, setHasTooltip, setHasUserRefCount, setHasWindow, setHexpand, setHexpandSet, setHideTitlebarWhenMaximized, setIcon, setIconFromFile, setIconList, setIconName, setKeepAbove, setKeepBelow, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMnemonicModifier, setMnemonicsVisible, setModal, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setPosition, setPreviewText, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizable, setResizeMode, setResponseSensitive, setRole, setScreen, setSensitive, setSizeRequest, setSkipPagerHint, setSkipTaskbarHint, setStartupId, setState, setStateFlags, setStyle, setSupportMultidevice, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTooltipWindow, setTransientFor, setTypeHint, setUrgencyHint, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow, setWmclass.

## getCancelButton

fontSelectionDialogGetCancelButton Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> m Widget | Returns: the `Widget` used in the dialog for the “Cancel” button.

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Gets the “Cancel” button.

Since: 2.14

## getFontName

fontSelectionDialogGetFontName Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> m Text | Returns: A string with the name of the current font, or `Nothing` if no font is selected. You must free this string with `free`.

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Gets the currently-selected font name.

Note that this can be a different string than what you set with `fontSelectionDialogSetFontName`, as the font selection widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”. Use `fontDescriptionEqual` if you want to compare two font descriptions.

## getFontSelection

fontSelectionDialogGetFontSelection Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> m Widget | Returns: the embedded `FontSelection`

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Retrieves the `FontSelection` widget embedded in the dialog.

Since: 2.22

## getOkButton

fontSelectionDialogGetOkButton Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> m Widget | Returns: the `Widget` used in the dialog for the “OK” button.

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Gets the “OK” button.

Since: 2.14

## getPreviewText

fontSelectionDialogGetPreviewText Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> m Text | Returns: the text displayed in the preview area. This string is owned by the widget and should not be modified or freed

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Gets the text displayed in the preview area.

## new

fontSelectionDialogNew Source #

Arguments

:: (HasCallStack, MonadIO m) |
=> Text | `title`: the title of the dialog window
-> m FontSelectionDialog | Returns: a new `FontSelectionDialog`

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Creates a new `FontSelectionDialog`.

## setFontName

fontSelectionDialogSetFontName Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> Text | `fontname`: a font name like “Helvetica 12” or “Times Bold 18”
-> m Bool | Returns: `True` if the font selected in `fsd` is now the `fontname` specified, `False` otherwise.

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Sets the currently selected font.

## setPreviewText

fontSelectionDialogSetPreviewText Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) |
=> a | `fsd`: a `FontSelectionDialog`
-> Text | `text`: the text to display in the preview area
-> m () |

Deprecated: (Since version 3.2)Use `FontChooserDialog`

Sets the text displayed in the preview area.