Champlain.Renderer

g Champlain.Renderer Champlain.Renderer GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Champlain.Renderer GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:Champlain.ErrorTileRenderer, Champlain.ImageRenderer

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
  render (tile)
  set_data (data)

Virtual Methods

Inherited:GObject.Object (7)
  do_render (tile)
  do_set_data (data)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.InitiallyUnowned r  

Class Details

class Champlain.Renderer(**kwargs)
Bases:GObject.InitiallyUnowned
Abstract:No
Structure:Champlain.RendererClass

The Champlain.Renderer structure contains only private data and should be accessed using the provided API

New in version 0.8.

render(tile)
Parameters:tile (Champlain.Tile) – the tile to render

Renders the texture for the provided tile and calls Champlain.Tile.set_content() to set the content of the tile. When the rendering is finished, the renderer emits the Champlain.Tile ::render-complete signal. The tile has to be displayed manually by calling Champlain.Tile.display_content().

New in version 0.8.

set_data(data)
Parameters:data (bytes) – data used for tile rendering

Sets the data which is used to render tiles by the renderer.

New in version 0.8.

do_render(tile) virtual
Parameters:tile (Champlain.Tile) – the tile to render

Renders the texture for the provided tile and calls Champlain.Tile.set_content() to set the content of the tile. When the rendering is finished, the renderer emits the Champlain.Tile ::render-complete signal. The tile has to be displayed manually by calling Champlain.Tile.display_content().

New in version 0.8.

do_set_data(data) virtual
Parameters:data (bytes) – data used for tile rendering

Sets the data which is used to render tiles by the renderer.

New in version 0.8.