gi-coglpango-1.0.3: Cogl Pango GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.CoglPango.Functions

Description

 
Synopsis

Methods

ensureGlyphCacheForLayout

ensureGlyphCacheForLayout Source #

Arguments

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

layout: A Layout

-> m () 

This updates any internal glyph cache textures as necessary to be able to render the given layout.

This api should be used to avoid mid-scene modifications of glyph-cache textures which can lead to undefined rendering results.

Since: 1.0

fontMapClearGlyphCache

fontMapClearGlyphCache Source #

Arguments

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

fontMap: a CoglPangoFontMap

-> m () 

Clears the glyph cache for fontMap.

Since: 1.0

fontMapCreateContext

fontMapCreateContext Source #

Arguments

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

fontMap: a CoglPangoFontMap

-> m Context

Returns: the newly created context: free with objectUnref.

Create a Context for the given fontMap.

fontMapGetRenderer

fontMapGetRenderer Source #

Arguments

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

fontMap: a CoglPangoFontMap

-> m Renderer

Returns: a Renderer

Retrieves the Renderer for the passed fontMap.

Since: 1.0

fontMapGetUseMipmapping

fontMapGetUseMipmapping Source #

Arguments

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

fontMap: a CoglPangoFontMap

-> m Int32

Returns: True if mipmapping is used, False otherwise.

Retrieves whether the Renderer used by fontMap will use mipmapping when rendering the glyphs.

Since: 1.0

fontMapNew

fontMapNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m FontMap

Returns: the newly created FontMap

Creates a new font map.

Since: 1.14

fontMapSetResolution

fontMapSetResolution Source #

Arguments

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

fontMap: a CoglPangoFontMap

-> Double

dpi: The resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.)

-> m () 

Sets the resolution for the fontMap. This is a scale factor between points specified in a FontDescription and Cogl units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3).

Since: 1.14

fontMapSetUseMipmapping

fontMapSetUseMipmapping Source #

Arguments

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

fontMap: a CoglPangoFontMap

-> Int32

value: True to enable the use of mipmapping

-> m () 

Sets whether the renderer for the passed font map should use mipmapping when rendering a Layout.

Since: 1.0

renderLayout

renderLayout Source #

Arguments

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

layout: a Layout

-> Int32

x: X coordinate to render the layout at

-> Int32

y: Y coordinate to render the layout at

-> Color

color: color to use when rendering the layout

-> Int32 
-> m () 

Deprecated: (Since version 1.16)Use cogl_pango_show_layout() instead

Draws a solidly coloured layout on the given framebuffer at (x, y) within the framebuffer's current model-view coordinate space.

Since: 1.0

renderLayoutLine

renderLayoutLine Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> LayoutLine

line: a LayoutLine

-> Int32

x: X coordinate to render the line at

-> Int32

y: Y coordinate to render the line at

-> Color

color: color to use when rendering the line

-> m () 

Deprecated: (Since version 1.16)Use cogl_pango_show_layout() instead

Renders line at the given coordinates using the given color.

Since: 1.0

renderLayoutSubpixel

renderLayoutSubpixel Source #

Arguments

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

layout: a Layout

-> Int32

x: X coordinate (in Pango units) to render the layout at

-> Int32

y: Y coordinate (in Pango units) to render the layout at

-> Color

color: color to use when rendering the layout

-> Int32 
-> m () 

Deprecated: (Since version 1.16)Use cogl_pango_show_layout() instead

Draws a solidly coloured layout on the given framebuffer at (x, y) within the framebuffer's current model-view coordinate space.

Since: 1.0