/// Function to get the pointer to enclosing cairo_surface_t
cairo_surface_t* getBuffer(); /// Used to set the pixel buffer of this object void setSurface(cairo_surface_t*);
private: /// Pixel buffer data for this tile
cairo_surface_t* m_pBuffer;
};
@returnthetileatthementionedposition(x,y)
*/
Tile& getTile(int x, int y, GTask* task, GThreadPool* pool);
/* Takesownershipofthesurfaceandsetsitonatileatagivenlocation
*/ void setTile(int x, int y, cairo_surface_t* surface);
/// Returns true if a valid tile exists at this location bool hasValidTile(int x, int y);
/// Destroys all the tiles in the tile buffer; also frees the memory allocated /// for all the Tile objects. void resetAllTiles(); /** Marksthetileasinvalid.Thetile(0,0)isthelefttopmosttilein thetilebuffer.
@paramxthepositionoftilealongx-axis @paramythepositionoftilealongy-axis @paramzoomzoomfactorofthedocument @paramtaskGTaskobjectcontainingthenecessarydata @parampoolGThreadPoolmanagedbythewidgetinstanceusedforallthe LOKcallsmadebywidget.ItisneededherebecausesetInvalid()invokesone oftheLOKcall:paintTile.
*/ void setInvalid(int x, int y, float zoom, GTask* task, GThreadPool*);
private: /// Stores all the tiles cached by this tile buffer.
std::map<int, Tile> m_mTiles; /// Width of the current tile buffer (number of columns) int m_nWidth; /// Dummy tile
Tile m_DummyTile;
};
ObjectofthistypeispassedwithalltheLOKcalls, sothattheycanbeidentified.Additionally,italsocontains thedatathatLOKcallneeds.
*/ struct LOEvent
{ /// To identify the type of LOK call int m_nType;
/// @name postKeyEvent parameters ///@{ int m_nKeyEvent; int m_nCharCode; int m_nKeyCode; ///@}
/// @name paintTile parameters ///@{ int m_nPaintTileX; int m_nPaintTileY; float m_fPaintTileZoom;
TileBuffer* m_pTileBuffer; ///@}
/// @name postMouseEvent parameters ///@{ int m_nPostMouseEventType; int m_nPostMouseEventX; int m_nPostMouseEventY; int m_nPostMouseEventCount; int m_nPostMouseEventButton; int m_nPostMouseEventModifier; ///@}
/// @name setGraphicSelection parameters ///@{ int m_nSetGraphicSelectionType; int m_nSetGraphicSelectionX; int m_nSetGraphicSelectionY; ///@}
/// @name setClientView parameters ///@{ int m_nTilePixelWidth; int m_nTilePixelHeight; int m_nTileTwipWidth; int m_nTileTwipHeight; ///@}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.1Bemerkung:
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.