FastUIDraw
Public Member Functions | List of all members
fastuidraw::PainterPackedValuePool Class Reference

A PainterPackedValuePool can be used to create PainterPackedValue objects. More...

#include <painter_packed_value_pool.hpp>

Inheritance diagram for fastuidraw::PainterPackedValuePool:
Inheritance graph
[legend]

Public Member Functions

 PainterPackedValuePool (void)
 
PainterData::brush_value create_packed_brush (const PainterBrush &brush)
 
PainterData::brush_value create_packed_brush (const PainterCustomBrush &brush)
 
PainterPackedValue< PainterItemShaderDatacreate_packed_value (const PainterItemShaderData &value)
 
PainterPackedValue< PainterBlendShaderDatacreate_packed_value (const PainterBlendShaderData &value)
 
PainterPackedValue< PainterBrushShaderDatacreate_packed_value (const PainterBrushShaderData &value)
 

Detailed Description

A PainterPackedValuePool can be used to create PainterPackedValue objects.

Just like PainterPackedValue, PainterPackedValuePool is NOT thread safe, as such it is not a safe operation to use the same PainterPackedValuePool object from multiple threads at the same time. A fixed PainterPackedValuePool can create PainterPackedValue objects used by different Painter objects.

Definition at line 43 of file painter_packed_value_pool.hpp.

Constructor & Destructor Documentation

◆ PainterPackedValuePool()

fastuidraw::PainterPackedValuePool::PainterPackedValuePool ( void  )
explicit

Ctor.

Member Function Documentation

◆ create_packed_brush() [1/2]

PainterData::brush_value fastuidraw::PainterPackedValuePool::create_packed_brush ( const PainterBrush brush)
inline

Returns a PainterData::brush_value whose data is packed from a PainterBrush value.

Definition at line 83 of file painter_packed_value_pool.hpp.

◆ create_packed_brush() [2/2]

PainterData::brush_value fastuidraw::PainterPackedValuePool::create_packed_brush ( const PainterCustomBrush brush)
inline

Returns a PainterData::brush_value whose data is packed from a PainterCustomBrush value.

Definition at line 95 of file painter_packed_value_pool.hpp.

◆ create_packed_value() [1/3]

PainterPackedValue<PainterItemShaderData> fastuidraw::PainterPackedValuePool::create_packed_value ( const PainterItemShaderData value)

Create and return a PainterPackedValue<PainterItemShaderData> object for the value of a PainterItemShaderData object.

Parameters
valuedata to pack into returned PainterPackedValue

◆ create_packed_value() [2/3]

PainterPackedValue<PainterBlendShaderData> fastuidraw::PainterPackedValuePool::create_packed_value ( const PainterBlendShaderData value)

Create and return a PainterPackedValue<PainterBlendShaderData> object for the value of a PainterBlendShaderData object.

Parameters
valuedata to pack into returned PainterPackedValue

◆ create_packed_value() [3/3]

PainterPackedValue<PainterBrushShaderData> fastuidraw::PainterPackedValuePool::create_packed_value ( const PainterBrushShaderData value)

Create and return a PainterPackedValue<PainterBrushShaderData> object for the value of a PainterBrushShaderData object.

Parameters
valuedata to pack into returned PainterPackedValue

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