gi-pango-1.0.26: Pango bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Pango.Objects.FontsetSimple

Description

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

Exported types

newtype FontsetSimple Source #

Memory-managed wrapper type.

Constructors

FontsetSimple (ManagedPtr FontsetSimple) 

Instances

Instances details
Eq FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

GObject FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

ManagedPtrNewtype FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

Methods

toManagedPtr :: FontsetSimple -> ManagedPtr FontsetSimple

TypedObject FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

Methods

glibType :: IO GType

HasParentTypes FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

IsGValue (Maybe FontsetSimple) Source #

Convert FontsetSimple to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Pango.Objects.FontsetSimple

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe FontsetSimple -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe FontsetSimple)

type ParentTypes FontsetSimple Source # 
Instance details

Defined in GI.Pango.Objects.FontsetSimple

type ParentTypes FontsetSimple = '[Fontset, Object]

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

Instances details
(GObject o, IsDescendantOf FontsetSimple o) => IsFontsetSimple o Source # 
Instance details

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

append

fontsetSimpleAppend Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontsetSimple a, IsFont b) 
=> a

fontset: a PangoFontsetSimple.

-> b

font: a PangoFont.

-> m () 

Adds a font to the fontset.

The fontset takes ownership of font.

new

fontsetSimpleNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Language

language: a PangoLanguage tag

-> m FontsetSimple

Returns: the newly allocated PangoFontsetSimple

Creates a new PangoFontsetSimple for the given language.

size

fontsetSimpleSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontsetSimple a) 
=> a

fontset: a PangoFontsetSimple.

-> m Int32

Returns: the size of fontset

Returns the number of fonts in the fontset.