Gjsify LogoGjsify Logo

Index

Type Aliases

Functions

  • ensure_glyph_cache_for_layout(layout: Pango.Layout): void
  • 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.

    Parameters

    Returns void

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

    Parameters

    • font_map: PangoCairo.FontMap

      a #CoglPangoFontMap

    • dpi: number

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

    Returns void

  • Sets whether the renderer for the passed font map should use mipmapping when rendering a #PangoLayout.

    Parameters

    • font_map: PangoCairo.FontMap

      a #CoglPangoFontMap

    • value: number

      %TRUE to enable the use of mipmapping

    Returns void

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

    Parameters

    • layout: Pango.Layout

      a #PangoLayout

    • x: number

      X coordinate to render the layout at

    • y: number

      Y coordinate to render the layout at

    • color: Cogl.Color

      color to use when rendering the layout

    • flags: number

    Returns void

  • Renders line at the given coordinates using the given color.

    Parameters

    • line: LayoutLine

      a #PangoLayoutLine

    • x: number

      X coordinate to render the line at

    • y: number

      Y coordinate to render the line at

    • color: Cogl.Color

      color to use when rendering the line

    Returns void

  • render_layout_subpixel(layout: Pango.Layout, x: number, y: number, color: Cogl.Color, flags: number): void
  • Draws a solidly coloured layout on the given framebuffer at (x, y) within the framebuffer<!-- -->'s current model-view coordinate space.

    Parameters

    • layout: Pango.Layout

      a #PangoLayout

    • x: number

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

    • y: number

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

    • color: Cogl.Color

      color to use when rendering the layout

    • flags: number

    Returns void

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

    Parameters

    • framebuffer: Cogl.Framebuffer

      A #CoglFramebuffer to draw too.

    • layout: Pango.Layout

      a #PangoLayout

    • x: number

      X coordinate to render the layout at

    • y: number

      Y coordinate to render the layout at

    • color: Cogl.Color

      color to use when rendering the layout

    Returns void

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

    Parameters

    • framebuffer: Cogl.Framebuffer

      A #CoglFramebuffer to draw too.

    • line: LayoutLine

      a #PangoLayoutLine

    • x: number

      X coordinate to render the line at

    • y: number

      Y coordinate to render the line at

    • color: Cogl.Color

      color to use when rendering the line

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method