gtk-0.14.2: Binding to the Gtk+ graphical user interface library.

Maintainergtk2hs-users@lists.sourceforge.net
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Graphics.UI.Gtk.Selectors.FontSelection

Contents

Description

A widget for selecting fonts

Synopsis

Detail

The FontSelection widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the FontSelectionDialog widget to provide a dialog box for selecting fonts.

To set the font which is initially selected, use fontSelectionSetFontName.

To get the selected font use fontSelectionGetFontName.

To change the text which is shown in the preview area, use fontSelectionSetPreviewText.

Class Hierarchy

| GObject
| +----Object
| +----Widget
| +----Container
| +----Box
| +----VBox
| +----FontSelection

Types

Constructors

Methods

fontSelectionGetFontName Source

Arguments

:: (FontSelectionClass self, GlibString string) 
=> self 
-> IO (Maybe string)

returns the name of the currently selected font, or Nothing if no font is selected.

Gets the currently-selected font name.

fontSelectionSetFontName Source

Arguments

:: (FontSelectionClass self, GlibString string) 
=> self 
-> string

fontname - a fontname.

-> IO Bool

returns True if the font was found.

Sets the currently-selected font.

fontSelectionGetPreviewText :: (FontSelectionClass self, GlibString string) => self -> IO string Source

Gets the text displayed in the preview area.

fontSelectionSetPreviewText :: (FontSelectionClass self, GlibString string) => self -> string -> IO () Source

Sets the text displayed in the preview area.

Attributes

fontSelectionFontName :: (FontSelectionClass self, GlibString string) => Attr self string Source

The X string that represents this font.

Default value: ""

fontSelectionPreviewText :: (FontSelectionClass self, GlibString string) => Attr self string Source

The text to display in order to demonstrate the selected font.

Default value: "abcdefghijk ABCDEFGHIJK"