|
FastUIDraw
|
Represents the geometric data for a cap. More...
#include <tessellated_path.hpp>
Public Member Functions | |
| cap (void) | |
| cap (const segment &seg, bool is_start_cap) | |
Public Attributes | |
| unsigned int | m_contour_id |
| float | m_contour_length |
| float | m_distance_from_contour_start |
| float | m_distance_from_edge_start |
| float | m_edge_length |
| bool | m_is_starting_cap |
| vec2 | m_position |
| vec2 | m_unit_vector |
Represents the geometric data for a cap.
Definition at line 563 of file tessellated_path.hpp.
|
inline |
Default ctor that does NOT initialize any of the fields of cap
Definition at line 570 of file tessellated_path.hpp.
| fastuidraw::TessellatedPath::cap::cap | ( | const segment & | seg, |
| bool | is_start_cap | ||
| ) |
| unsigned int fastuidraw::TessellatedPath::cap::m_contour_id |
Gives the contour from which the join originates, following the same convention as segment::m_contour_id.
Definition at line 628 of file tessellated_path.hpp.
| float fastuidraw::TessellatedPath::cap::m_contour_length |
Length of the contour on which the cap resides.
Definition at line 597 of file tessellated_path.hpp.
| float fastuidraw::TessellatedPath::cap::m_distance_from_contour_start |
Gives the distance of the cap start of the -contour-. For cap values of a TessellatedPath, this is 0 for a starting cap and m_contour_length for an ending cap.
Definition at line 616 of file tessellated_path.hpp.
| float fastuidraw::TessellatedPath::cap::m_distance_from_edge_start |
Gives the distance of the cap from the start of the edge on which the cap resides.
Definition at line 608 of file tessellated_path.hpp.
| float fastuidraw::TessellatedPath::cap::m_edge_length |
Length of the edge on which the cap resides.
Definition at line 602 of file tessellated_path.hpp.
| bool fastuidraw::TessellatedPath::cap::m_is_starting_cap |
True if the cap is from the start of a contour
Definition at line 621 of file tessellated_path.hpp.
| vec2 fastuidraw::TessellatedPath::cap::m_position |
Gives the position of the cap
Definition at line 587 of file tessellated_path.hpp.
| vec2 fastuidraw::TessellatedPath::cap::m_unit_vector |
Gives the unit-vector into the cap
Definition at line 592 of file tessellated_path.hpp.
1.8.13