Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PangoFontsetSimple
is a implementation of the abstract
PangoFontset
base class as an array of fonts.
When creating a PangoFontsetSimple
, you have to provide
the array of fonts that make up the fontset.
Synopsis
- newtype FontsetSimple = FontsetSimple (ManagedPtr FontsetSimple)
- class (GObject o, IsDescendantOf FontsetSimple o) => IsFontsetSimple o
- toFontsetSimple :: (MonadIO m, IsFontsetSimple o) => o -> m FontsetSimple
- fontsetSimpleAppend :: (HasCallStack, MonadIO m, IsFontsetSimple a, IsFont b) => a -> b -> m ()
- fontsetSimpleNew :: (HasCallStack, MonadIO m) => Language -> m FontsetSimple
- fontsetSimpleSize :: (HasCallStack, MonadIO m, IsFontsetSimple a) => a -> m Int32
Exported types
newtype FontsetSimple Source #
Memory-managed wrapper type.
Instances
Eq FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple (==) :: FontsetSimple -> FontsetSimple -> Bool # (/=) :: FontsetSimple -> FontsetSimple -> Bool # | |
GObject FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple | |
ManagedPtrNewtype FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple | |
TypedObject FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple | |
HasParentTypes FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple | |
IsGValue (Maybe FontsetSimple) Source # | Convert |
Defined in GI.Pango.Objects.FontsetSimple gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe FontsetSimple -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe FontsetSimple) # | |
type ParentTypes FontsetSimple Source # | |
Defined in GI.Pango.Objects.FontsetSimple |
class (GObject o, IsDescendantOf FontsetSimple o) => IsFontsetSimple o Source #
Type class for types which can be safely cast to FontsetSimple
, for instance with toFontsetSimple
.
Instances
(GObject o, IsDescendantOf FontsetSimple o) => IsFontsetSimple o Source # | |
Defined in GI.Pango.Objects.FontsetSimple |
toFontsetSimple :: (MonadIO m, IsFontsetSimple o) => o -> m FontsetSimple Source #
Cast to FontsetSimple
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
append, bindProperty, bindPropertyFull, forceFloating, foreach, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, size, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getFont, getMetrics, getProperty, getQdata.
Setters
append
:: (HasCallStack, MonadIO m, IsFontsetSimple a, IsFont b) | |
=> a |
|
-> b |
|
-> m () |
Adds a font to the fontset.
The fontset takes ownership of font
.
new
:: (HasCallStack, MonadIO m) | |
=> Language |
|
-> m FontsetSimple | Returns: the newly allocated |
Creates a new PangoFontsetSimple
for the given language.
size
:: (HasCallStack, MonadIO m, IsFontsetSimple a) | |
=> a |
|
-> m Int32 | Returns: the size of |
Returns the number of fonts in the fontset.