| Maintainer | gtk2hs-users@lists.sourceforge.net |
|---|---|
| Stability | provisional |
| Portability | portable (depends on GHC) |
| Safe Haskell | None |
| Language | Haskell98 |
Graphics.UI.Gtk.Selectors.FontSelection
Description
A widget for selecting fonts
Synopsis
- data FontSelection
- class VBoxClass o => FontSelectionClass o
- castToFontSelection :: GObjectClass obj => obj -> FontSelection
- gTypeFontSelection :: GType
- toFontSelection :: FontSelectionClass o => o -> FontSelection
- fontSelectionNew :: IO FontSelection
- fontSelectionGetFontName :: (FontSelectionClass self, GlibString string) => self -> IO (Maybe string)
- fontSelectionSetFontName :: (FontSelectionClass self, GlibString string) => self -> string -> IO Bool
- fontSelectionGetPreviewText :: (FontSelectionClass self, GlibString string) => self -> IO string
- fontSelectionSetPreviewText :: (FontSelectionClass self, GlibString string) => self -> string -> IO ()
- fontSelectionFontName :: (FontSelectionClass self, GlibString string) => Attr self string
- fontSelectionPreviewText :: (FontSelectionClass self, GlibString string) => Attr self string
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
Types
data FontSelection #
Instances
| Eq FontSelection # | |
Defined in Graphics.UI.Gtk.Types Methods (==) :: FontSelection -> FontSelection -> Bool # (/=) :: FontSelection -> FontSelection -> Bool # | |
| Ord FontSelection # | |
Defined in Graphics.UI.Gtk.Types Methods compare :: FontSelection -> FontSelection -> Ordering # (<) :: FontSelection -> FontSelection -> Bool # (<=) :: FontSelection -> FontSelection -> Bool # (>) :: FontSelection -> FontSelection -> Bool # (>=) :: FontSelection -> FontSelection -> Bool # max :: FontSelection -> FontSelection -> FontSelection # min :: FontSelection -> FontSelection -> FontSelection # | |
| GObjectClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
| FontSelectionClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
| VBoxClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
| BoxClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
| ContainerClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
| WidgetClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
class VBoxClass o => FontSelectionClass o #
Instances
| FontSelectionClass FontSelection # | |
Defined in Graphics.UI.Gtk.Types | |
castToFontSelection :: GObjectClass obj => obj -> FontSelection #
toFontSelection :: FontSelectionClass o => o -> FontSelection #
Constructors
fontSelectionNew :: IO FontSelection #
Creates a new FontSelection.
Methods
Arguments
| :: (FontSelectionClass self, GlibString string) | |
| => self | |
| -> IO (Maybe string) | returns the name of the currently selected font, or
|
Gets the currently-selected font name.
Arguments
| :: (FontSelectionClass self, GlibString string) | |
| => self | |
| -> string |
|
| -> IO Bool | returns |
Sets the currently-selected font.
fontSelectionGetPreviewText :: (FontSelectionClass self, GlibString string) => self -> IO string #
Gets the text displayed in the preview area.
fontSelectionSetPreviewText :: (FontSelectionClass self, GlibString string) => self -> string -> IO () #
Sets the text displayed in the preview area.
Attributes
fontSelectionFontName :: (FontSelectionClass self, GlibString string) => Attr self string #
The X string that represents this font.
Default value: ""
fontSelectionPreviewText :: (FontSelectionClass self, GlibString string) => Attr self string #
The text to display in order to demonstrate the selected font.
Default value: "abcdefghijk ABCDEFGHIJK"