AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
AeonGUI::CairoPath Class Reference

Cairo-backend path implementation. More...

#include <aeongui/CairoPath.hpp>

Inheritance diagram for AeonGUI::CairoPath:
[legend]
Collaboration diagram for AeonGUI::CairoPath:
[legend]

Public Member Functions

 CairoPath ()
 Default constructor.
void Construct (const std::vector< DrawType > &aCommands) final
 Build the Cairo path from a vector of draw commands.
void Construct (const DrawType *aCommands, size_t aCommandCount) final
 Build the Cairo path from a raw array of draw commands.
 ~CairoPath ()
 Destructor. Frees path data.
const cairo_path_t * GetCairoPath () const
 Get the underlying Cairo path structure.
Public Member Functions inherited from AeonGUI::Path
virtual ~Path ()=0
 Virtual destructor.

Detailed Description

Cairo-backend path implementation.

Converts DrawType command sequences into a cached cairo_path_t structure for efficient repeated rendering.

Member Function Documentation

◆ Construct() [1/2]

void AeonGUI::CairoPath::Construct ( const DrawType * aCommands,
size_t aCommandCount )
finalvirtual

Build the Cairo path from a raw array of draw commands.

Parameters
aCommandsPointer to the command array.
aCommandCountNumber of commands.
Todo
calculate mPathData size if posible

Implements AeonGUI::Path.

◆ Construct() [2/2]

void AeonGUI::CairoPath::Construct ( const std::vector< DrawType > & aCommands)
finalvirtual

Build the Cairo path from a vector of draw commands.

Parameters
aCommandsThe draw command sequence.

Implements AeonGUI::Path.

◆ GetCairoPath()

const cairo_path_t * AeonGUI::CairoPath::GetCairoPath ( ) const

Get the underlying Cairo path structure.

Returns
Pointer to the cairo_path_t.

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