Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype FontSelectionDialog = FontSelectionDialog (ManagedPtr FontSelectionDialog)
- class GObject o => IsFontSelectionDialog o
- toFontSelectionDialog :: (MonadIO m, IsFontSelectionDialog o) => o -> m FontSelectionDialog
- noFontSelectionDialog :: Maybe FontSelectionDialog
- fontSelectionDialogGetCancelButton :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Widget
- fontSelectionDialogGetFontName :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Text
- fontSelectionDialogGetFontSelection :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Widget
- fontSelectionDialogGetOkButton :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Widget
- fontSelectionDialogGetPreviewText :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> m Text
- fontSelectionDialogNew :: (HasCallStack, MonadIO m) => Text -> m FontSelectionDialog
- fontSelectionDialogSetFontName :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> Text -> m Bool
- fontSelectionDialogSetPreviewText :: (HasCallStack, MonadIO m, IsFontSelectionDialog a) => a -> Text -> m ()
Exported types
newtype FontSelectionDialog Source #
Memory-managed wrapper type.
Instances
class GObject o => IsFontSelectionDialog o Source #
Type class for types which can be safely cast to FontSelectionDialog
, for instance with toFontSelectionDialog
.
Instances
(GObject a, (UnknownAncestorError FontSelectionDialog a :: Constraint)) => IsFontSelectionDialog a Source # | |
Defined in GI.Gtk.Objects.FontSelectionDialog | |
IsFontSelectionDialog FontSelectionDialog Source # | |
Defined in GI.Gtk.Objects.FontSelectionDialog |
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
.
noFontSelectionDialog :: Maybe FontSelectionDialog Source #
A convenience alias for Nothing
:: Maybe
FontSelectionDialog
.
Methods
getCancelButton
fontSelectionDialogGetCancelButton Source #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> m Widget | Returns: the |
getFontName
fontSelectionDialogGetFontName Source #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> m Text | Returns: A string with the name of the current font, or |
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 #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> m Widget | Returns: the embedded |
Deprecated: (Since version 3.2)Use FontChooserDialog
Retrieves the FontSelection
widget embedded in the dialog.
Since: 2.22
getOkButton
fontSelectionDialogGetOkButton Source #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> m Widget | Returns: the |
getPreviewText
fontSelectionDialogGetPreviewText Source #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> 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 #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m FontSelectionDialog | Returns: a new |
Deprecated: (Since version 3.2)Use FontChooserDialog
Creates a new FontSelectionDialog
.
setFontName
fontSelectionDialogSetFontName Source #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.2)Use FontChooserDialog
Sets the currently selected font.
setPreviewText
fontSelectionDialogSetPreviewText Source #
:: (HasCallStack, MonadIO m, IsFontSelectionDialog a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 3.2)Use FontChooserDialog
Sets the text displayed in the preview area.