|
Graphics.UI.Gtk.Selectors.FontSelection | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
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
|
|
|
Creates a new FontSelection.
|
|
Methods
|
|
fontSelectionGetFontName | Source |
|
:: FontSelectionClass self | | => self | returns the name of the currently selected font, or
Nothing if no font is selected.
| -> IO (Maybe String) | | Gets the currently-selected font name.
|
|
|
fontSelectionSetFontName | Source |
|
|
|
|
Gets the text displayed in the preview area.
|
|
|
Sets the text displayed in the preview area.
|
|
Attributes
|
|
|
The X string that represents this font.
Default value: ""
|
|
|
The text to display in order to demonstrate the selected font.
Default value: "abcdefghijk ABCDEFGHIJK"
|
|
Produced by Haddock version 2.6.0 |