gi-gtk-3.0.26: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.FontSelectionDialog

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

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

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.