| 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 |
GI.CoglPango.Functions
Description
Synopsis
- ensureGlyphCacheForLayout :: (HasCallStack, MonadIO m, IsLayout a) => a -> m ()
- fontMapClearGlyphCache :: (HasCallStack, MonadIO m, IsFontMap a) => a -> m ()
- fontMapCreateContext :: (HasCallStack, MonadIO m, IsFontMap a) => a -> m Context
- fontMapGetRenderer :: (HasCallStack, MonadIO m, IsFontMap a) => a -> m Renderer
- fontMapGetUseMipmapping :: (HasCallStack, MonadIO m, IsFontMap a) => a -> m Int32
- fontMapNew :: (HasCallStack, MonadIO m) => m FontMap
- fontMapSetResolution :: (HasCallStack, MonadIO m, IsFontMap a) => a -> Double -> m ()
- fontMapSetUseMipmapping :: (HasCallStack, MonadIO m, IsFontMap a) => a -> Int32 -> m ()
- renderLayout :: (HasCallStack, MonadIO m, IsLayout a) => a -> Int32 -> Int32 -> Color -> Int32 -> m ()
- renderLayoutLine :: (HasCallStack, MonadIO m) => LayoutLine -> Int32 -> Int32 -> Color -> m ()
- renderLayoutSubpixel :: (HasCallStack, MonadIO m, IsLayout a) => a -> Int32 -> Int32 -> Color -> Int32 -> m ()
Methods
ensureGlyphCacheForLayout
ensureGlyphCacheForLayout Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLayout a) | |
| => a |
|
| -> 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 |
|
| -> m () |
Clears the glyph cache for fontMap.
Since: 1.0
fontMapCreateContext
Arguments
| :: (HasCallStack, MonadIO m, IsFontMap a) | |
| => a |
|
| -> m Context | Returns: the newly created context: free with |
Create a Context for the given fontMap.
fontMapGetRenderer
Arguments
| :: (HasCallStack, MonadIO m, IsFontMap a) | |
| => a |
|
| -> m Renderer | Returns: a |
Retrieves the Renderer for the passed fontMap.
Since: 1.0
fontMapGetUseMipmapping
fontMapGetUseMipmapping Source #
Arguments
| :: (HasCallStack, MonadIO m, IsFontMap a) | |
| => a |
|
| -> m Int32 |
Retrieves whether the Renderer used by fontMap will use
mipmapping when rendering the glyphs.
Since: 1.0
fontMapNew
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m FontMap | Returns: the newly created |
Creates a new font map.
Since: 1.14
fontMapSetResolution
Arguments
| :: (HasCallStack, MonadIO m, IsFontMap a) | |
| => a |
|
| -> Double |
|
| -> 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 |
|
| -> Int32 |
|
| -> m () |
Sets whether the renderer for the passed font map should use
mipmapping when rendering a Layout.
Since: 1.0
renderLayout
Arguments
| :: (HasCallStack, MonadIO m, IsLayout a) | |
| => a |
|
| -> Int32 |
|
| -> Int32 |
|
| -> Color |
|
| -> 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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LayoutLine |
|
| -> Int32 |
|
| -> Int32 |
|
| -> Color |
|
| -> 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
Arguments
| :: (HasCallStack, MonadIO m, IsLayout a) | |
| => a |
|
| -> Int32 |
|
| -> Int32 |
|
| -> Color |
|
| -> 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