FastUIDraw
|
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) | |
PainterDashedStrokeShaderSet & | operator= (const PainterDashedStrokeShaderSet &rhs) |
const PainterStrokeShader & | shader (enum PainterEnums::cap_style st) const |
PainterDashedStrokeShaderSet & | shader (enum PainterEnums::cap_style st, const PainterStrokeShader &sh) |
void | swap (PainterDashedStrokeShaderSet &obj) |
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.
fastuidraw::PainterDashedStrokeShaderSet::PainterDashedStrokeShaderSet | ( | void | ) |
Ctor
fastuidraw::PainterDashedStrokeShaderSet::PainterDashedStrokeShaderSet | ( | const PainterDashedStrokeShaderSet & | obj | ) |
Copy ctor.
PainterDashedStrokeShaderSet& fastuidraw::PainterDashedStrokeShaderSet::operator= | ( | const PainterDashedStrokeShaderSet & | rhs | ) |
Assignment operator.
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.
st | cap style |
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.
st | cap style |
sh | value to use |
void fastuidraw::PainterDashedStrokeShaderSet::swap | ( | PainterDashedStrokeShaderSet & | obj | ) |
Swap operation
obj | object with which to swap |