FastUIDraw
painter_brush_shader_set.hpp
Go to the documentation of this file.
1 /*!
2  * \file painter_brush_shader_set.hpp
3  * \brief file painter_brush_shader_set.hpp
4  *
5  * Copyright 2019 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 #ifndef FASTUIDRAW_PAINTER_BRUSH_SHADER_SET_HPP
20 #define FASTUIDRAW_PAINTER_BRUSH_SHADER_SET_HPP
21 
25 
26 namespace fastuidraw
27 {
28 
29 /*!\addtogroup PainterShaders
30  * @{
31  */
32 
33  /*!
34  * \brief
35  * A \ref PainterBrushShaderSet holds the \ref PainterBrushShader
36  * objects to be used with the default brushes.
37  */
39  {
40  public:
41  /*!
42  * Ctor
43  */
45 
46  /*!
47  * Copy ctor.
48  */
50 
52 
53  /*!
54  * Assignment operator.
55  */
57  operator=(const PainterBrushShaderSet &rhs);
58 
59  /*!
60  * Swap operation
61  * \param obj object with which to swap
62  */
63  void
65 
66  /*!
67  * Returns the \ref PainterBrushShader that uses
68  * data packed by \ref PainterBrush to apply a
69  * brush as specified by the \ref PainterBrush that
70  * packed the data.
71  */
73  standard_brush(void) const;
74 
75  /*!
76  * Set the value returned by standard_brush(void) const.
77  * \param sh value to use
78  */
81 
82  /*!
83  * Returns the \ref PainterImageBrushShader.
84  */
86  image_brush(void) const;
87 
88  /*!
89  * Set the value returned by image_brush(void) const.
90  * \param sh value to use
91  */
94 
95  /*!
96  * Returns the \ref PainterGradientBrushShader.
97  */
99  gradient_brush(void) const;
100 
101  /*!
102  * Set the value returned by gradient_brush(void) const.
103  * \param sh value to use
104  */
107  private:
108  void *m_d;
109  };
110 
111 /*! @} */
112 }
113 
114 #endif
file painter_image_brush_shader.hpp
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Definition: colorstop.hpp:28
A wrapper over a pointer to implement reference counting.
file painter_brush_shader.hpp
file painter_gradient_brush_shader.hpp
const reference_counted_ptr< PainterBrushShader > & standard_brush(void) const
PainterBrushShaderSet & operator=(const PainterBrushShaderSet &rhs)
const reference_counted_ptr< const PainterImageBrushShader > & image_brush(void) const
void swap(PainterBrushShaderSet &obj)
const reference_counted_ptr< const PainterGradientBrushShader > & gradient_brush(void) const
A PainterBrushShaderSet holds the PainterBrushShader objects to be used with the default brushes...