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 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
- 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 ()
- 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
class GObject o => FontChooserK o Source
(GObject o, IsDescendantOf FontChooser o) => FontChooserK o Source |
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
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
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
AttrInfo FontChooserFontPropertyInfo Source | |
type AttrLabel FontChooserFontPropertyInfo = "FontChooser::font" Source | |
type AttrGetType FontChooserFontPropertyInfo = Text Source | |
type AttrBaseTypeConstraint FontChooserFontPropertyInfo = FontChooserK Source | |
type AttrSetTypeConstraint FontChooserFontPropertyInfo = * ~ Text Source | |
type AttrAllowedOps FontChooserFontPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getFontChooserFont :: (MonadIO m, FontChooserK o) => o -> m Text Source
setFontChooserFont :: (MonadIO m, FontChooserK o) => o -> Text -> m () Source
FontDesc
data FontChooserFontDescPropertyInfo Source
AttrInfo FontChooserFontDescPropertyInfo Source | |
type AttrLabel FontChooserFontDescPropertyInfo = "FontChooser::font-desc" Source | |
type AttrGetType FontChooserFontDescPropertyInfo = FontDescription Source | |
type AttrBaseTypeConstraint FontChooserFontDescPropertyInfo = FontChooserK Source | |
type AttrSetTypeConstraint FontChooserFontDescPropertyInfo = * ~ FontDescription Source | |
type AttrAllowedOps FontChooserFontDescPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
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
AttrInfo FontChooserPreviewTextPropertyInfo Source | |
type AttrLabel FontChooserPreviewTextPropertyInfo = "FontChooser::preview-text" Source | |
type AttrGetType FontChooserPreviewTextPropertyInfo = Text Source | |
type AttrBaseTypeConstraint FontChooserPreviewTextPropertyInfo = FontChooserK Source | |
type AttrSetTypeConstraint FontChooserPreviewTextPropertyInfo = * ~ Text Source | |
type AttrAllowedOps FontChooserPreviewTextPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getFontChooserPreviewText :: (MonadIO m, FontChooserK o) => o -> m Text Source
setFontChooserPreviewText :: (MonadIO m, FontChooserK o) => o -> Text -> m () Source
ShowPreviewEntry
data FontChooserShowPreviewEntryPropertyInfo Source
AttrInfo FontChooserShowPreviewEntryPropertyInfo Source | |
type AttrLabel FontChooserShowPreviewEntryPropertyInfo = "FontChooser::show-preview-entry" Source | |
type AttrGetType FontChooserShowPreviewEntryPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint FontChooserShowPreviewEntryPropertyInfo = FontChooserK Source | |
type AttrSetTypeConstraint FontChooserShowPreviewEntryPropertyInfo = * ~ Bool Source | |
type AttrAllowedOps FontChooserShowPreviewEntryPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
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