gi-pangocairo-1.0.28: PangoCairo bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.PangoCairo.Interfaces.Font

Description

PangoCairoFont is an interface exported by fonts for use with Cairo.

The actual type of the font will depend on the particular font technology Cairo was compiled to use.

Since: 1.18

Synopsis

Exported types

newtype Font Source #

Memory-managed wrapper type.

Constructors

Font (ManagedPtr Font) 

Instances

Instances details
Eq Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

Methods

(==) :: Font -> Font -> Bool #

(/=) :: Font -> Font -> Bool #

GObject Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

ManagedPtrNewtype Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

Methods

toManagedPtr :: Font -> ManagedPtr Font

TypedObject Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

Methods

glibType :: IO GType

HasParentTypes Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

IsGValue (Maybe Font) Source #

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

Instance details

Defined in GI.PangoCairo.Interfaces.Font

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Font Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

type ParentTypes Font = '[Font, Object]

class (GObject o, IsDescendantOf Font o) => IsFont o Source #

Type class for types which can be safely cast to Font, for instance with toFont.

Instances

Instances details
(GObject o, IsDescendantOf Font o) => IsFont o Source # 
Instance details

Defined in GI.PangoCairo.Interfaces.Font

toFont :: (MonadIO m, IsFont o) => o -> m Font Source #

Cast to Font, for types for which this is known to be safe. For general casts, use castTo.

Methods

getScaledFont

fontGetScaledFont Source #

Arguments

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

font: a PangoFont from a PangoCairoFontMap

-> m (Maybe ScaledFont)

Returns: the cairo_scaled_font_t used by font

Gets the cairo_scaled_font_t used by font. The scaled font can be referenced and kept using cairo_scaled_font_reference().

Since: 1.18