#include <path_dash_effect.hpp>
|
PathDashEffect & | add_dash (float draw, float skip) |
|
PathDashEffect & | clear (void) |
|
PathDashEffect & | dash_offset (float v) |
|
virtual void | process_cap (const TessellatedPath::cap &cap, Storage &dst) const override |
|
virtual void | process_chain (const segment_chain &chain, Storage &dst) const override |
|
virtual void | process_join (const TessellatedPath::join &join, Storage &dst) const override |
|
template<typename iterator > |
void | process_caps (iterator begin, iterator end, Storage &dst) const |
|
template<typename iterator > |
void | process_chains (iterator begin, iterator end, Storage &dst) const |
|
template<typename iterator > |
void | process_joins (iterator begin, iterator end, Storage &dst) const |
|
A PathDashEffect implemented PathEffect to apply a dash pattern to a path. The output data of a PathDashEffect -keeps- the distance values of how far along an ege or countour, i.e. the values of TessellatedPath::cap::m_contour_length, TessellatedPath::cap::m_edge_length, TessellatedPath::cap::m_distance_from_edge_start, TessellatedPath::cap::m_distance_from_contour_start, TessellatedPath::join::m_distance_from_previous_join, TessellatedPath::join::m_distance_from_contour_start, TessellatedPath::join::m_contour_length, TessellatedPath::segment::m_distance_from_edge_start, TessellatedPath::segment::m_distance_from_contour_start, TessellatedPath::segment::m_contour_length and TessellatedPath::segment::m_edge_length are copied directly from the source data. Only the value TessellatedPath::segment::m_length is adjusted (because a given segment might be split into multiple segments).
Definition at line 50 of file path_dash_effect.hpp.
◆ add_dash()
PathDashEffect& fastuidraw::PathDashEffect::add_dash |
( |
float |
draw, |
|
|
float |
skip |
|
) |
| |
Add an element to the dash pattern. An element in the dash pattern is a length to draw following by a length to skip.
- Parameters
-
draw | length of draw in element |
skip | length of skip in element |
◆ clear()
◆ dash_offset()
Distance values from the elements of the path have this value added to them before having the dash-pattern applied.
◆ process_cap()
◆ process_chain()
virtual void fastuidraw::PathDashEffect::process_chain |
( |
const segment_chain & |
chain, |
|
|
Storage & |
dst |
|
) |
| const |
|
overridevirtual |
◆ process_join()
The documentation for this class was generated from the following file: