Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
This file reflects the Gtk+ object hierarchy in terms of Haskell classes.
Note: the mk... functions were originally meant to simply be an alias for the constructor. However, in order to communicate the destructor of an object to objectNew, the mk... functions are now a tuple containing Haskell constructor and the destructor function pointer. This hack avoids changing all modules that simply pass mk... to objectNew.
Documentation
module System.Glib.GObject
newtype PangoContext Source
class GObjectClass o => PangoContextClass o Source
toPangoContext :: PangoContextClass o => o -> PangoContextSource
castToPangoContext :: GObjectClass obj => obj -> PangoContextSource
newtype PangoLayoutRaw Source
toPangoLayoutRaw :: PangoLayoutRawClass o => o -> PangoLayoutRawSource
castToPangoLayoutRaw :: GObjectClass obj => obj -> PangoLayoutRawSource
class GObjectClass o => FontClass o Source
mkFont :: (ForeignPtr Font -> Font, FinalizerPtr a)Source
unFont :: Font -> ForeignPtr FontSource
castToFont :: GObjectClass obj => obj -> FontSource
newtype FontFamily Source
class GObjectClass o => FontFamilyClass o Source
toFontFamily :: FontFamilyClass o => o -> FontFamilySource
mkFontFamily :: (ForeignPtr FontFamily -> FontFamily, FinalizerPtr a)Source
castToFontFamily :: GObjectClass obj => obj -> FontFamilySource
class GObjectClass o => FontFaceClass o Source
toFontFace :: FontFaceClass o => o -> FontFaceSource
mkFontFace :: (ForeignPtr FontFace -> FontFace, FinalizerPtr a)Source
castToFontFace :: GObjectClass obj => obj -> FontFaceSource
class GObjectClass o => FontMapClass o Source
toFontMap :: FontMapClass o => o -> FontMapSource
mkFontMap :: (ForeignPtr FontMap -> FontMap, FinalizerPtr a)Source
castToFontMap :: GObjectClass obj => obj -> FontMapSource
class GObjectClass o => FontSetClass o Source
toFontSet :: FontSetClass o => o -> FontSetSource
mkFontSet :: (ForeignPtr FontSet -> FontSet, FinalizerPtr a)Source
castToFontSet :: GObjectClass obj => obj -> FontSetSource