Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
Graphics.Rendering.Pango.Types
Description
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
Constructors
PangoContext (ForeignPtr PangoContext) |
class GObjectClass o => PangoContextClass o
Instances
toPangoContext :: PangoContextClass o => o -> PangoContext
mkPangoContext :: (ForeignPtr PangoContext -> PangoContext, FinalizerPtr a)
castToPangoContext :: GObjectClass obj => obj -> PangoContext
newtype PangoLayoutRaw
Constructors
PangoLayoutRaw (ForeignPtr PangoLayoutRaw) |
class GObjectClass o => PangoLayoutRawClass o
Instances
toPangoLayoutRaw :: PangoLayoutRawClass o => o -> PangoLayoutRaw
castToPangoLayoutRaw :: GObjectClass obj => obj -> PangoLayoutRaw
newtype Font
Constructors
Font (ForeignPtr Font) |
class GObjectClass o => FontClass o
mkFont :: (ForeignPtr Font -> Font, FinalizerPtr a)
unFont :: Font -> ForeignPtr Font
castToFont :: GObjectClass obj => obj -> Font
newtype FontFamily
Constructors
FontFamily (ForeignPtr FontFamily) |
class GObjectClass o => FontFamilyClass o
Instances
toFontFamily :: FontFamilyClass o => o -> FontFamily
mkFontFamily :: (ForeignPtr FontFamily -> FontFamily, FinalizerPtr a)
castToFontFamily :: GObjectClass obj => obj -> FontFamily
newtype FontFace
Constructors
FontFace (ForeignPtr FontFace) |
class GObjectClass o => FontFaceClass o
Instances
toFontFace :: FontFaceClass o => o -> FontFace
mkFontFace :: (ForeignPtr FontFace -> FontFace, FinalizerPtr a)
unFontFace :: FontFace -> ForeignPtr FontFace
castToFontFace :: GObjectClass obj => obj -> FontFace
class GObjectClass o => FontMapClass o
Instances
toFontMap :: FontMapClass o => o -> FontMap
mkFontMap :: (ForeignPtr FontMap -> FontMap, FinalizerPtr a)
unFontMap :: FontMap -> ForeignPtr FontMap
castToFontMap :: GObjectClass obj => obj -> FontMap
class GObjectClass o => FontSetClass o
Instances
toFontSet :: FontSetClass o => o -> FontSet
mkFontSet :: (ForeignPtr FontSet -> FontSet, FinalizerPtr a)
unFontSet :: FontSet -> ForeignPtr FontSet
castToFontSet :: GObjectClass obj => obj -> FontSet