FastUIDraw
painter_dashed_stroke_shader_set.hpp
Go to the documentation of this file.
1 /*!
2  * \file painter_dashed_stroke_shader_set.hpp
3  * \brief file painter_dashed_stroke_shader_set.hpp
4  *
5  * Copyright 2016 by Intel.
6  *
7  * Contact: kevin.rogovin@gmail.com
8  *
9  * This Source Code Form is subject to the
10  * terms of the Mozilla Public License, v. 2.0.
11  * If a copy of the MPL was not distributed with
12  * this file, You can obtain one at
13  * http://mozilla.org/MPL/2.0/.
14  *
15  * \author Kevin Rogovin <kevin.rogovin@gmail.com>
16  *
17  */
18 
19 
20 #ifndef FASTUIDRAW_PAINTER_DASHED_STROKE_SHADER_SET_HPP
21 #define FASTUIDRAW_PAINTER_DASHED_STROKE_SHADER_SET_HPP
22 
26 
27 namespace fastuidraw
28 {
29 /*!\addtogroup PainterShaders
30  * @{
31  */
32 
33  /*!
34  * \brief
35  * A PainterDashedStrokeShaderSet holds a collection of
36  * PainterStrokeShaderSet objects for the purpose of
37  * dashed stroking. The shaders within a
38  * PainterDashedStrokeShaderSet are expected to draw
39  * any caps of dashed stroking from using just the edge
40  * data. In particular, attributes/indices for caps induced
41  * by stroking are NOT given to a shader within a
42  * PainterDashedStrokeShaderSet.
43  */
45  {
46  public:
47  /*!
48  * Ctor
49  */
51 
52  /*!
53  * Copy ctor.
54  */
56 
58 
59  /*!
60  * Assignment operator.
61  */
64 
65  /*!
66  * Swap operation
67  * \param obj object with which to swap
68  */
69  void
71 
72  /*!
73  * Shader set for dashed stroking of paths where the stroking
74  * width is given in same units as the original path.
75  * The stroking parameters are given by PainterDashedStrokeParams.
76  * \param st cap style
77  */
78  const PainterStrokeShader&
79  shader(enum PainterEnums::cap_style st) const;
80 
81  /*!
82  * Set the value returned by dashed_stroke_shader(enum PainterEnums::cap_style) const.
83  * \param st cap style
84  * \param sh value to use
85  */
88 
89  private:
90  void *m_d;
91  };
92 
93 /*! @} */
94 }
95 
96 #endif
A PainterDashedStrokeShaderSet holds a collection of PainterStrokeShaderSet objects for the purpose o...
file matrix.hpp
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Definition: colorstop.hpp:28
A PainterStrokeShader holds shaders for stroking. It is to hold shaders for stroking paths linearly o...
void swap(PainterDashedStrokeShaderSet &obj)
cap_style
Enumeration specifying if and how to draw caps when stroking.
PainterDashedStrokeShaderSet & operator=(const PainterDashedStrokeShaderSet &rhs)
file painter_stroke_shader.hpp
file reference_counted.hpp
const PainterStrokeShader & shader(enum PainterEnums::cap_style st) const