FastUIDraw
stroking_style.hpp
Go to the documentation of this file.
1 /*!
2  * \file stroking_style.hpp
3  * \brief file stroking_style.hpp
4  *
5  * Copyright 2018 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_STROKING_STYLE_HPP
21 #define FASTUIDRAW_STROKING_STYLE_HPP
22 
24 
25 namespace fastuidraw
26 {
27 /*!\addtogroup Painter
28  * @{
29  */
30 
31  /*!
32  * Simple class to wrap how to stroke: closed or open,
33  * join style and cap style. Does NOT include stroking
34  * parameters (i.e. \ref PainterStrokeParams).
35  */
37  {
38  public:
39  StrokingStyle(void):
42  {}
43 
44  /*!
45  * Set \ref m_cap_style to the specified value.
46  * Default value is \ref PainterEnums::square_caps.
47  */
50  {
51  m_cap_style = c;
52  return *this;
53  }
54 
55  /*!
56  * Set \ref m_join_style to the specified value.
57  */
60  {
61  m_join_style = j;
62  return *this;
63  }
64 
65  /*!
66  * Specifies the what cap-style to use when stroking
67  * the path. Default value is PainterEnums::square_caps.
68  */
70 
71  /*!
72  * Specifies what join style to use when stroking the
73  * path. Default value is PainterEnums::miter_clip_joins
74  */
76  };
77 /*! @} */
78 }
79 
80 #endif
all classes and functions of FastUIDraw are in the namespace fastuidraw.
Definition: colorstop.hpp:28
cap_style
Enumeration specifying if and how to draw caps when stroking.
StrokingStyle & join_style(enum PainterEnums::join_style j)
enum PainterEnums::cap_style m_cap_style
StrokingStyle & cap_style(enum PainterEnums::cap_style c)
join_style
Enumeration specifying if and how to draw joins when stroking.
file painter_enums.hpp
enum PainterEnums::join_style m_join_style