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

A PainterCustomBrush is just a conveniance to wrap a pointer to a PainterBrushShader together with a PainterDataValue<PainterBrushShaderData>. More...

#include <painter_custom_brush.hpp>

Public Member Functions

 PainterCustomBrush (const PainterBrushShader *sh, const PainterDataValue< PainterBrushShaderData > &d=PainterDataValue< PainterBrushShaderData >())
 
 PainterCustomBrush (const PainterDataValue< PainterBrushShaderData > &d, const PainterBrushShader *sh)
 

Public Attributes

PainterDataValue< PainterBrushShaderDatam_data
 
const PainterBrushShaderm_shader
 

Detailed Description

A PainterCustomBrush is just a conveniance to wrap a pointer to a PainterBrushShader together with a PainterDataValue<PainterBrushShaderData>.

Definition at line 38 of file painter_custom_brush.hpp.

Constructor & Destructor Documentation

◆ PainterCustomBrush() [1/2]

fastuidraw::PainterCustomBrush::PainterCustomBrush ( const PainterBrushShader sh,
const PainterDataValue< PainterBrushShaderData > &  d = PainterDataValue<PainterBrushShaderData>() 
)
inline

Ctor.

Parameters
shvalue with which to initialize m_shader
dvalue with which to initialize m_data

Definition at line 46 of file painter_custom_brush.hpp.

◆ PainterCustomBrush() [2/2]

fastuidraw::PainterCustomBrush::PainterCustomBrush ( const PainterDataValue< PainterBrushShaderData > &  d,
const PainterBrushShader sh 
)
inline

Ctor.

Parameters
shvalue with which to initialize m_shader
dvalue with which to initialize m_data

Definition at line 58 of file painter_custom_brush.hpp.

Member Data Documentation

◆ m_data

PainterDataValue<PainterBrushShaderData> fastuidraw::PainterCustomBrush::m_data

What, if any, data for m_shader to use.

Definition at line 72 of file painter_custom_brush.hpp.

◆ m_shader

const PainterBrushShader* fastuidraw::PainterCustomBrush::m_shader

What PainterBrushShader is used

Definition at line 67 of file painter_custom_brush.hpp.


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