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

GI.Gtk.Objects.FontSelection

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf FontSelection o) => IsFontSelection o Source #

Type class for types which can be safely cast to FontSelection, for instance with toFontSelection.

Instances

Instances details
(GObject o, IsDescendantOf FontSelection o) => IsFontSelection o Source # 
Instance details

Defined in GI.Gtk.Objects.FontSelection

toFontSelection :: (MonadIO m, IsFontSelection o) => o -> m FontSelection Source #

Cast to FontSelection, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getFace

fontSelectionGetFace Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m FontFace

Returns: A FontFace representing the selected font group details. The returned object is owned by fontsel and must not be modified or freed.

Deprecated: (Since version 3.2)Use FontChooser

Gets the FontFace representing the selected font group details (i.e. family, slant, weight, width, etc).

Since: 2.14

getFaceList

fontSelectionGetFaceList Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m Widget

Returns: A Widget that is part of fontsel

Deprecated: (Since version 3.2)Use FontChooser

This returns the TreeView which lists all styles available for the selected font. For example, “Regular”, “Bold”, etc.

Since: 2.14

getFamily

fontSelectionGetFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m FontFamily

Returns: A FontFamily representing the selected font family. Font families are a collection of font faces. The returned object is owned by fontsel and must not be modified or freed.

Deprecated: (Since version 3.2)Use FontChooser

Gets the FontFamily representing the selected font family.

Since: 2.14

getFamilyList

fontSelectionGetFamilyList Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m Widget

Returns: A Widget that is part of fontsel

Deprecated: (Since version 3.2)Use FontChooser

This returns the TreeView that lists font families, for example, “Sans”, “Serif”, etc.

Since: 2.14

getFontName

fontSelectionGetFontName Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> 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 FontChooser

Gets the currently-selected font name.

Note that this can be a different string than what you set with fontSelectionSetFontName, 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.

getPreviewEntry

fontSelectionGetPreviewEntry Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m Widget

Returns: A Widget that is part of fontsel

Deprecated: (Since version 3.2)Use FontChooser

This returns the Entry used to display the font as a preview.

Since: 2.14

getPreviewText

fontSelectionGetPreviewText Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> 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 FontChooser

Gets the text displayed in the preview area.

getSize

fontSelectionGetSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m Int32

Returns: A n integer representing the selected font size, or -1 if no font size is selected.

Deprecated: (Since version 3.2)Use FontChooser

The selected font size.

Since: 2.14

getSizeEntry

fontSelectionGetSizeEntry Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m Widget

Returns: A Widget that is part of fontsel

Deprecated: (Since version 3.2)Use FontChooser

This returns the Entry used to allow the user to edit the font number manually instead of selecting it from the list of font sizes.

Since: 2.14

getSizeList

fontSelectionGetSizeList Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> m Widget

Returns: A Widget that is part of fontsel

Deprecated: (Since version 3.2)Use FontChooser

This returns the TreeView used to list font sizes.

Since: 2.14

new

fontSelectionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m FontSelection

Returns: a new FontSelection

Deprecated: (Since version 3.2)Use FontChooserWidget instead

Creates a new FontSelection.

setFontName

fontSelectionSetFontName Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> Text

fontname: a font name like “Helvetica 12” or “Times Bold 18”

-> m Bool

Returns: True if the font could be set successfully; False if no such font exists or if the fontsel doesn’t belong to a particular screen yet.

Deprecated: (Since version 3.2)Use FontChooser

Sets the currently-selected font.

Note that the fontsel needs to know the screen in which it will appear for this to work; this can be guaranteed by simply making sure that the fontsel is inserted in a toplevel window before you call this function.

setPreviewText

fontSelectionSetPreviewText Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontSelection a) 
=> a

fontsel: a FontSelection

-> Text

text: the text to display in the preview area

-> m () 

Deprecated: (Since version 3.2)Use FontChooser

Sets the text displayed in the preview area. The text is used to show how the selected font looks.

Properties

fontName

No description available in the introspection data.

clearFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> m () Source #

Set the value of the “font-name” property to Nothing. When overloading is enabled, this is equivalent to

clear #fontName

constructFontSelectionFontName :: IsFontSelection o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “font-name” property. This is rarely needed directly, but it is used by new.

getFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> m (Maybe Text) Source #

Get the value of the “font-name” property. When overloading is enabled, this is equivalent to

get fontSelection #fontName

setFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> Text -> m () Source #

Set the value of the “font-name” property. When overloading is enabled, this is equivalent to

set fontSelection [ #fontName := value ]

previewText

No description available in the introspection data.

constructFontSelectionPreviewText :: IsFontSelection o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “preview-text” property. This is rarely needed directly, but it is used by new.

getFontSelectionPreviewText :: (MonadIO m, IsFontSelection o) => o -> m Text Source #

Get the value of the “preview-text” property. When overloading is enabled, this is equivalent to

get fontSelection #previewText

setFontSelectionPreviewText :: (MonadIO m, IsFontSelection o) => o -> Text -> m () Source #

Set the value of the “preview-text” property. When overloading is enabled, this is equivalent to

set fontSelection [ #previewText := value ]