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

A PainterDashedStrokeShaderSet holds a collection of PainterStrokeShaderSet objects for the purpose of dashed stroking. The shaders within a PainterDashedStrokeShaderSet are expected to draw any caps of dashed stroking from using just the edge data. In particular, attributes/indices for caps induced by stroking are NOT given to a shader within a PainterDashedStrokeShaderSet. More...

#include <painter_dashed_stroke_shader_set.hpp>

Public Member Functions

 PainterDashedStrokeShaderSet (void)
 
 PainterDashedStrokeShaderSet (const PainterDashedStrokeShaderSet &obj)
 
PainterDashedStrokeShaderSetoperator= (const PainterDashedStrokeShaderSet &rhs)
 
const PainterStrokeShadershader (enum PainterEnums::cap_style st) const
 
PainterDashedStrokeShaderSetshader (enum PainterEnums::cap_style st, const PainterStrokeShader &sh)
 
void swap (PainterDashedStrokeShaderSet &obj)
 

Detailed Description

A PainterDashedStrokeShaderSet holds a collection of PainterStrokeShaderSet objects for the purpose of dashed stroking. The shaders within a PainterDashedStrokeShaderSet are expected to draw any caps of dashed stroking from using just the edge data. In particular, attributes/indices for caps induced by stroking are NOT given to a shader within a PainterDashedStrokeShaderSet.

Definition at line 44 of file painter_dashed_stroke_shader_set.hpp.

Constructor & Destructor Documentation

◆ PainterDashedStrokeShaderSet() [1/2]

fastuidraw::PainterDashedStrokeShaderSet::PainterDashedStrokeShaderSet ( void  )

Ctor

◆ PainterDashedStrokeShaderSet() [2/2]

fastuidraw::PainterDashedStrokeShaderSet::PainterDashedStrokeShaderSet ( const PainterDashedStrokeShaderSet obj)

Copy ctor.

Member Function Documentation

◆ operator=()

PainterDashedStrokeShaderSet& fastuidraw::PainterDashedStrokeShaderSet::operator= ( const PainterDashedStrokeShaderSet rhs)

Assignment operator.

◆ shader() [1/2]

const PainterStrokeShader& fastuidraw::PainterDashedStrokeShaderSet::shader ( enum PainterEnums::cap_style  st) const

Shader set for dashed stroking of paths where the stroking width is given in same units as the original path. The stroking parameters are given by PainterDashedStrokeParams.

Parameters
stcap style

◆ shader() [2/2]

PainterDashedStrokeShaderSet& fastuidraw::PainterDashedStrokeShaderSet::shader ( enum PainterEnums::cap_style  st,
const PainterStrokeShader sh 
)

Set the value returned by dashed_stroke_shader(enum PainterEnums::cap_style) const.

Parameters
stcap style
shvalue to use

◆ swap()

void fastuidraw::PainterDashedStrokeShaderSet::swap ( PainterDashedStrokeShaderSet obj)

Swap operation

Parameters
objobject with which to swap

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