| 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 |
GI.Gtk.Interfaces.FontChooser
Contents
- Exported types
- Methods
- fontChooserGetFont
- fontChooserGetFontDesc
- fontChooserGetFontFace
- fontChooserGetFontFamily
- fontChooserGetFontMap
- fontChooserGetFontSize
- fontChooserGetPreviewText
- fontChooserGetShowPreviewEntry
- fontChooserSetFilterFunc
- fontChooserSetFont
- fontChooserSetFontDesc
- fontChooserSetFontMap
- fontChooserSetPreviewText
- fontChooserSetShowPreviewEntry
- Properties
- Signals
Description
- newtype FontChooser = FontChooser (ForeignPtr FontChooser)
- noFontChooser :: Maybe FontChooser
- class GObject o => FontChooserK o
- toFontChooser :: FontChooserK o => o -> IO FontChooser
- fontChooserGetFont :: (MonadIO m, FontChooserK a) => a -> m Text
- fontChooserGetFontDesc :: (MonadIO m, FontChooserK a) => a -> m FontDescription
- fontChooserGetFontFace :: (MonadIO m, FontChooserK a) => a -> m FontFace
- fontChooserGetFontFamily :: (MonadIO m, FontChooserK a) => a -> m FontFamily
- fontChooserGetFontMap :: (MonadIO m, FontChooserK a) => a -> m FontMap
- fontChooserGetFontSize :: (MonadIO m, FontChooserK a) => a -> m Int32
- fontChooserGetPreviewText :: (MonadIO m, FontChooserK a) => a -> m Text
- fontChooserGetShowPreviewEntry :: (MonadIO m, FontChooserK a) => a -> m Bool
- fontChooserSetFilterFunc :: (MonadIO m, FontChooserK a) => a -> Maybe FontFilterFunc -> m ()
- fontChooserSetFont :: (MonadIO m, FontChooserK a) => a -> Text -> m ()
- fontChooserSetFontDesc :: (MonadIO m, FontChooserK a) => a -> FontDescription -> m ()
- fontChooserSetFontMap :: (MonadIO m, FontChooserK a, FontMapK b) => a -> Maybe b -> m ()
- fontChooserSetPreviewText :: (MonadIO m, FontChooserK a) => a -> Text -> m ()
- fontChooserSetShowPreviewEntry :: (MonadIO m, FontChooserK a) => a -> Bool -> m ()
- data FontChooserFontPropertyInfo
- constructFontChooserFont :: Text -> IO ([Char], GValue)
- getFontChooserFont :: (MonadIO m, FontChooserK o) => o -> m Text
- setFontChooserFont :: (MonadIO m, FontChooserK o) => o -> Text -> m ()
- data FontChooserFontDescPropertyInfo
- constructFontChooserFontDesc :: FontDescription -> IO ([Char], GValue)
- getFontChooserFontDesc :: (MonadIO m, FontChooserK o) => o -> m FontDescription
- setFontChooserFontDesc :: (MonadIO m, FontChooserK o) => o -> FontDescription -> m ()
- data FontChooserPreviewTextPropertyInfo
- constructFontChooserPreviewText :: Text -> IO ([Char], GValue)
- getFontChooserPreviewText :: (MonadIO m, FontChooserK o) => o -> m Text
- setFontChooserPreviewText :: (MonadIO m, FontChooserK o) => o -> Text -> m ()
- data FontChooserShowPreviewEntryPropertyInfo
- constructFontChooserShowPreviewEntry :: Bool -> IO ([Char], GValue)
- getFontChooserShowPreviewEntry :: (MonadIO m, FontChooserK o) => o -> m Bool
- setFontChooserShowPreviewEntry :: (MonadIO m, FontChooserK o) => o -> Bool -> m ()
- type FontChooserFontActivatedCallback = Text -> IO ()
- type FontChooserFontActivatedCallbackC = Ptr () -> CString -> Ptr () -> IO ()
- data FontChooserFontActivatedSignalInfo
- afterFontChooserFontActivated :: (GObject a, MonadIO m) => a -> FontChooserFontActivatedCallback -> m SignalHandlerId
- fontChooserFontActivatedCallbackWrapper :: FontChooserFontActivatedCallback -> Ptr () -> CString -> Ptr () -> IO ()
- fontChooserFontActivatedClosure :: FontChooserFontActivatedCallback -> IO Closure
- mkFontChooserFontActivatedCallback :: FontChooserFontActivatedCallbackC -> IO (FunPtr FontChooserFontActivatedCallbackC)
- noFontChooserFontActivatedCallback :: Maybe FontChooserFontActivatedCallback
- onFontChooserFontActivated :: (GObject a, MonadIO m) => a -> FontChooserFontActivatedCallback -> m SignalHandlerId
Exported types
newtype FontChooser Source
Constructors
| FontChooser (ForeignPtr FontChooser) |
Instances
| GObject FontChooser | |
| type ParentTypes FontChooser | |
| type AttributeList FontChooser | |
| type SignalList FontChooser |
class GObject o => FontChooserK o Source
Instances
| (GObject o, IsDescendantOf FontChooser o) => FontChooserK o |
toFontChooser :: FontChooserK o => o -> IO FontChooser Source
Methods
fontChooserGetFont
fontChooserGetFont :: (MonadIO m, FontChooserK a) => a -> m Text Source
fontChooserGetFontDesc
fontChooserGetFontDesc :: (MonadIO m, FontChooserK a) => a -> m FontDescription Source
fontChooserGetFontFace
fontChooserGetFontFace :: (MonadIO m, FontChooserK a) => a -> m FontFace Source
fontChooserGetFontFamily
fontChooserGetFontFamily :: (MonadIO m, FontChooserK a) => a -> m FontFamily Source
fontChooserGetFontMap
fontChooserGetFontMap :: (MonadIO m, FontChooserK a) => a -> m FontMap Source
fontChooserGetFontSize
fontChooserGetFontSize :: (MonadIO m, FontChooserK a) => a -> m Int32 Source
fontChooserGetPreviewText
fontChooserGetPreviewText :: (MonadIO m, FontChooserK a) => a -> m Text Source
fontChooserGetShowPreviewEntry
fontChooserGetShowPreviewEntry :: (MonadIO m, FontChooserK a) => a -> m Bool Source
fontChooserSetFilterFunc
fontChooserSetFilterFunc :: (MonadIO m, FontChooserK a) => a -> Maybe FontFilterFunc -> m () Source
fontChooserSetFont
fontChooserSetFont :: (MonadIO m, FontChooserK a) => a -> Text -> m () Source
fontChooserSetFontDesc
fontChooserSetFontDesc :: (MonadIO m, FontChooserK a) => a -> FontDescription -> m () Source
fontChooserSetFontMap
fontChooserSetFontMap :: (MonadIO m, FontChooserK a, FontMapK b) => a -> Maybe b -> m () Source
fontChooserSetPreviewText
fontChooserSetPreviewText :: (MonadIO m, FontChooserK a) => a -> Text -> m () Source
fontChooserSetShowPreviewEntry
fontChooserSetShowPreviewEntry :: (MonadIO m, FontChooserK a) => a -> Bool -> m () Source
Properties
Font
data FontChooserFontPropertyInfo Source
Instances
| AttrInfo FontChooserFontPropertyInfo | |
| type AttrLabel FontChooserFontPropertyInfo = "FontChooser::font" | |
| type AttrGetType FontChooserFontPropertyInfo = Text | |
| type AttrBaseTypeConstraint FontChooserFontPropertyInfo = FontChooserK | |
| type AttrSetTypeConstraint FontChooserFontPropertyInfo = * ~ Text | |
| type AttrAllowedOps FontChooserFontPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getFontChooserFont :: (MonadIO m, FontChooserK o) => o -> m Text Source
setFontChooserFont :: (MonadIO m, FontChooserK o) => o -> Text -> m () Source
FontDesc
data FontChooserFontDescPropertyInfo Source
Instances
| AttrInfo FontChooserFontDescPropertyInfo | |
| type AttrLabel FontChooserFontDescPropertyInfo = "FontChooser::font-desc" | |
| type AttrGetType FontChooserFontDescPropertyInfo = FontDescription | |
| type AttrBaseTypeConstraint FontChooserFontDescPropertyInfo = FontChooserK | |
| type AttrSetTypeConstraint FontChooserFontDescPropertyInfo = * ~ FontDescription | |
| type AttrAllowedOps FontChooserFontDescPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
constructFontChooserFontDesc :: FontDescription -> IO ([Char], GValue) Source
getFontChooserFontDesc :: (MonadIO m, FontChooserK o) => o -> m FontDescription Source
setFontChooserFontDesc :: (MonadIO m, FontChooserK o) => o -> FontDescription -> m () Source
PreviewText
data FontChooserPreviewTextPropertyInfo Source
Instances
| AttrInfo FontChooserPreviewTextPropertyInfo | |
| type AttrLabel FontChooserPreviewTextPropertyInfo = "FontChooser::preview-text" | |
| type AttrGetType FontChooserPreviewTextPropertyInfo = Text | |
| type AttrBaseTypeConstraint FontChooserPreviewTextPropertyInfo = FontChooserK | |
| type AttrSetTypeConstraint FontChooserPreviewTextPropertyInfo = * ~ Text | |
| type AttrAllowedOps FontChooserPreviewTextPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getFontChooserPreviewText :: (MonadIO m, FontChooserK o) => o -> m Text Source
setFontChooserPreviewText :: (MonadIO m, FontChooserK o) => o -> Text -> m () Source
ShowPreviewEntry
data FontChooserShowPreviewEntryPropertyInfo Source
Instances
| AttrInfo FontChooserShowPreviewEntryPropertyInfo | |
| type AttrLabel FontChooserShowPreviewEntryPropertyInfo = "FontChooser::show-preview-entry" | |
| type AttrGetType FontChooserShowPreviewEntryPropertyInfo = Bool | |
| type AttrBaseTypeConstraint FontChooserShowPreviewEntryPropertyInfo = FontChooserK | |
| type AttrSetTypeConstraint FontChooserShowPreviewEntryPropertyInfo = * ~ Bool | |
| type AttrAllowedOps FontChooserShowPreviewEntryPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getFontChooserShowPreviewEntry :: (MonadIO m, FontChooserK o) => o -> m Bool Source
setFontChooserShowPreviewEntry :: (MonadIO m, FontChooserK o) => o -> Bool -> m () Source
Signals
FontActivated
type FontChooserFontActivatedCallback = Text -> IO () Source
afterFontChooserFontActivated :: (GObject a, MonadIO m) => a -> FontChooserFontActivatedCallback -> m SignalHandlerId Source
fontChooserFontActivatedCallbackWrapper :: FontChooserFontActivatedCallback -> Ptr () -> CString -> Ptr () -> IO () Source
mkFontChooserFontActivatedCallback :: FontChooserFontActivatedCallbackC -> IO (FunPtr FontChooserFontActivatedCallbackC) Source
onFontChooserFontActivated :: (GObject a, MonadIO m) => a -> FontChooserFontActivatedCallback -> m SignalHandlerId Source