LibreOffice Module libreofficekit (master) 1
Public Member Functions | Public Attributes | Private Attributes | List of all members
Tile Class Reference

This class represents a single tile in the tile buffer. More...

#include <tilebuffer.hxx>

Public Member Functions

 Tile ()
 
 ~Tile ()
 
cairo_surface_tgetBuffer ()
 Function to get the pointer to enclosing cairo_surface_t. More...
 
void setSurface (cairo_surface_t *)
 Used to set the pixel buffer of this object. More...
 

Public Attributes

bool valid
 Tells if this tile is valid or not. More...
 

Private Attributes

cairo_surface_tm_pBuffer
 Pixel buffer data for this tile. More...
 

Detailed Description

This class represents a single tile in the tile buffer.

It encloses a reference to GdkPixBuf containing the pixel data of the tile.

Definition at line 53 of file tilebuffer.hxx.

Constructor & Destructor Documentation

◆ Tile()

Tile::Tile ( )
inline

Definition at line 56 of file tilebuffer.hxx.

◆ ~Tile()

Tile::~Tile ( )
inline

Definition at line 61 of file tilebuffer.hxx.

References m_pBuffer.

Member Function Documentation

◆ getBuffer()

cairo_surface_t * Tile::getBuffer ( )

Function to get the pointer to enclosing cairo_surface_t.

Definition at line 34 of file tilebuffer.cxx.

References m_pBuffer.

Referenced by renderDocument().

◆ setSurface()

void Tile::setSurface ( cairo_surface_t buffer)

Used to set the pixel buffer of this object.

Definition at line 39 of file tilebuffer.cxx.

References m_pBuffer.

Referenced by TileBuffer::TileBuffer().

Member Data Documentation

◆ m_pBuffer

cairo_surface_t* Tile::m_pBuffer
private

Pixel buffer data for this tile.

Definition at line 80 of file tilebuffer.hxx.

Referenced by getBuffer(), setSurface(), and ~Tile().

◆ valid

bool Tile::valid

Tells if this tile is valid or not.

Initialised to 0 (invalid) during object creation.

Definition at line 71 of file tilebuffer.hxx.


The documentation for this class was generated from the following files: