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 |
- newtype FontSelection = FontSelection (ManagedPtr FontSelection)
- class GObject o => IsFontSelection o
- toFontSelection :: IsFontSelection o => o -> IO FontSelection
- noFontSelection :: Maybe FontSelection
- data FontSelectionGetFaceMethodInfo
- fontSelectionGetFace :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m FontFace
- data FontSelectionGetFaceListMethodInfo
- fontSelectionGetFaceList :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Widget
- data FontSelectionGetFamilyMethodInfo
- fontSelectionGetFamily :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m FontFamily
- data FontSelectionGetFamilyListMethodInfo
- fontSelectionGetFamilyList :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Widget
- data FontSelectionGetFontNameMethodInfo
- fontSelectionGetFontName :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Text
- data FontSelectionGetPreviewEntryMethodInfo
- fontSelectionGetPreviewEntry :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Widget
- data FontSelectionGetPreviewTextMethodInfo
- fontSelectionGetPreviewText :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Text
- data FontSelectionGetSizeMethodInfo
- fontSelectionGetSize :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Int32
- data FontSelectionGetSizeEntryMethodInfo
- fontSelectionGetSizeEntry :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Widget
- data FontSelectionGetSizeListMethodInfo
- fontSelectionGetSizeList :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> m Widget
- fontSelectionNew :: (HasCallStack, MonadIO m) => m FontSelection
- data FontSelectionSetFontNameMethodInfo
- fontSelectionSetFontName :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> Text -> m Bool
- data FontSelectionSetPreviewTextMethodInfo
- fontSelectionSetPreviewText :: (HasCallStack, MonadIO m, IsFontSelection a) => a -> Text -> m ()
- data FontSelectionFontNamePropertyInfo
- clearFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> m ()
- constructFontSelectionFontName :: IsFontSelection o => Text -> IO (GValueConstruct o)
- fontSelectionFontName :: AttrLabelProxy "fontName"
- getFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> m (Maybe Text)
- setFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> Text -> m ()
- data FontSelectionPreviewTextPropertyInfo
- constructFontSelectionPreviewText :: IsFontSelection o => Text -> IO (GValueConstruct o)
- fontSelectionPreviewText :: AttrLabelProxy "previewText"
- getFontSelectionPreviewText :: (MonadIO m, IsFontSelection o) => o -> m Text
- setFontSelectionPreviewText :: (MonadIO m, IsFontSelection o) => o -> Text -> m ()
Exported types
newtype FontSelection Source #
GObject FontSelection Source # | |
IsImplementorIface FontSelection Source # | |
IsObject FontSelection Source # | |
IsWidget FontSelection Source # | |
IsContainer FontSelection Source # | |
IsBox FontSelection Source # | |
IsOrientable FontSelection Source # | |
IsBuildable FontSelection Source # | |
IsFontSelection FontSelection Source # | |
((~) * info (ResolveFontSelectionMethod t FontSelection), MethodInfo * info FontSelection p) => IsLabel t (FontSelection -> p) Source # | |
((~) * info (ResolveFontSelectionMethod t FontSelection), MethodInfo * info FontSelection p) => IsLabelProxy t (FontSelection -> p) Source # | |
HasAttributeList * FontSelection Source # | |
type AttributeList FontSelection Source # | |
type SignalList FontSelection Source # | |
class GObject o => IsFontSelection o Source #
toFontSelection :: IsFontSelection o => o -> IO FontSelection Source #
Methods
getFace
data FontSelectionGetFaceMethodInfo Source #
((~) * signature (m FontFace), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetFaceMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m FontFace | Returns: A |
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
data FontSelectionGetFaceListMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetFaceListMethodInfo a signature Source # | |
fontSelectionGetFaceList Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Widget | Returns: A |
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
data FontSelectionGetFamilyMethodInfo Source #
((~) * signature (m FontFamily), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetFamilyMethodInfo a signature Source # | |
fontSelectionGetFamily Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m FontFamily | Returns: A |
Deprecated: (Since version 3.2)Use FontChooser
Gets the FontFamily
representing the selected font family.
Since: 2.14
getFamilyList
data FontSelectionGetFamilyListMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetFamilyListMethodInfo a signature Source # | |
fontSelectionGetFamilyList Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Widget | Returns: A |
Deprecated: (Since version 3.2)Use FontChooser
This returns the TreeView
that lists font families, for
example, “Sans”, “Serif”, etc.
Since: 2.14
getFontName
data FontSelectionGetFontNameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetFontNameMethodInfo a signature Source # | |
fontSelectionGetFontName Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Text | Returns: A string with the name of the current font, or |
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
data FontSelectionGetPreviewEntryMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetPreviewEntryMethodInfo a signature Source # | |
fontSelectionGetPreviewEntry Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Widget | Returns: A |
Deprecated: (Since version 3.2)Use FontChooser
This returns the Entry
used to display the font as a preview.
Since: 2.14
getPreviewText
data FontSelectionGetPreviewTextMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetPreviewTextMethodInfo a signature Source # | |
fontSelectionGetPreviewText Source #
:: (HasCallStack, MonadIO m, IsFontSelection 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 FontChooser
Gets the text displayed in the preview area.
getSize
data FontSelectionGetSizeMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetSizeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Int32 | Returns: A n integer representing the selected font size, or -1 if no font size is selected. |
getSizeEntry
data FontSelectionGetSizeEntryMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetSizeEntryMethodInfo a signature Source # | |
fontSelectionGetSizeEntry Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Widget | Returns: A |
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
data FontSelectionGetSizeListMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionGetSizeListMethodInfo a signature Source # | |
fontSelectionGetSizeList Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> m Widget | Returns: A |
Deprecated: (Since version 3.2)Use FontChooser
This returns the TreeView
used to list font sizes.
Since: 2.14
new
:: (HasCallStack, MonadIO m) | |
=> m FontSelection | Returns: a new |
Deprecated: (Since version 3.2)Use FontChooserWidget
instead
Creates a new FontSelection
.
setFontName
data FontSelectionSetFontNameMethodInfo Source #
((~) * signature (Text -> m Bool), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionSetFontNameMethodInfo a signature Source # | |
fontSelectionSetFontName Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
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
data FontSelectionSetPreviewTextMethodInfo Source #
((~) * signature (Text -> m ()), MonadIO m, IsFontSelection a) => MethodInfo * FontSelectionSetPreviewTextMethodInfo a signature Source # | |
fontSelectionSetPreviewText Source #
:: (HasCallStack, MonadIO m, IsFontSelection a) | |
=> a |
|
-> Text |
|
-> 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
data FontSelectionFontNamePropertyInfo Source #
clearFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> m () Source #
constructFontSelectionFontName :: IsFontSelection o => Text -> IO (GValueConstruct o) Source #
fontSelectionFontName :: AttrLabelProxy "fontName" Source #
getFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> m (Maybe Text) Source #
setFontSelectionFontName :: (MonadIO m, IsFontSelection o) => o -> Text -> m () Source #
previewText
data FontSelectionPreviewTextPropertyInfo Source #
constructFontSelectionPreviewText :: IsFontSelection o => Text -> IO (GValueConstruct o) Source #
fontSelectionPreviewText :: AttrLabelProxy "previewText" Source #
getFontSelectionPreviewText :: (MonadIO m, IsFontSelection o) => o -> m Text Source #
setFontSelectionPreviewText :: (MonadIO m, IsFontSelection o) => o -> Text -> m () Source #