FastUIDraw
|
Class to specify dashed stroking parameters, data is packed as according to PainterDashedStrokeParams::stroke_data_offset_t. Data for dashing is packed [TODO describe]. More...
#include <painter_dashed_stroke_params.hpp>
Classes | |
class | DashPatternElement |
A DashPatternElement is an element of a dash pattern. It specifies how long to draw then how much space to emit before the next DashPatternElement. More... | |
Public Types | |
enum | stroke_data_offset_t { stroke_radius_offset, stroke_miter_limit_offset, stroking_units_offset, stroke_dash_offset_offset, stroke_total_length_offset, stroke_first_interval_start_offset, stroke_first_interval_start_on_looping_offset, stroke_number_intervals_offset, stroke_static_data_size } |
Enumeration that provides offsets for the stroking parameters. The dashed pattern is packed in the next block of the data store. More... | |
Static Public Member Functions | |
static reference_counted_ptr< const StrokingDataSelectorBase > | stroking_data_selector (bool pixel_arc_stroking_possible) |
Class to specify dashed stroking parameters, data is packed as according to PainterDashedStrokeParams::stroke_data_offset_t. Data for dashing is packed [TODO describe].
Definition at line 38 of file painter_dashed_stroke_params.hpp.
Enumeration that provides offsets for the stroking parameters. The dashed pattern is packed in the next block of the data store.
Definition at line 47 of file painter_dashed_stroke_params.hpp.
fastuidraw::PainterDashedStrokeParams::PainterDashedStrokeParams | ( | void | ) |
Ctor.
fastuidraw::PainterDashedStrokeParams::PainterDashedStrokeParams | ( | const PainterDashedStrokeParams & | obj | ) |
Copy ctor.
float fastuidraw::PainterDashedStrokeParams::dash_offset | ( | void | ) | const |
The dashed offset, i.e. the starting point of the dash pattern to start dashed stroking.
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::dash_offset | ( | float | f | ) |
Set the value of dash_offset(void) const
c_array<const DashPatternElement> fastuidraw::PainterDashedStrokeParams::dash_pattern | ( | void | ) | const |
Returns the dash pattern for stroking.
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::dash_pattern | ( | c_array< const DashPatternElement > | v | ) |
Set the value return by dash_pattern(void) const.
v | dash pattern; the values are -copied-. |
|
overridevirtual |
To be implemented by a derived class to return the number of uvec4 blocks needed to pack the data.
Implements fastuidraw::PainterShaderData.
float fastuidraw::PainterDashedStrokeParams::miter_limit | ( | void | ) | const |
The miter limit for miter joins
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::miter_limit | ( | float | f | ) |
Set the value of miter_limit(void) const value is clamped to be non-negative.
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::operator= | ( | const PainterDashedStrokeParams & | obj | ) |
Assignment operator.
obj | value from which to copy |
To be implemented by a derived class to pack the data.
dst | location to which to pack the data |
Implements fastuidraw::PainterShaderData.
float fastuidraw::PainterDashedStrokeParams::radius | ( | void | ) | const |
The stroking radius, equivalent to
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::radius | ( | float | f | ) |
Set the value of radius(void) const, equivalent to
|
static |
Returns a StrokingDataSelectorBase suitable for PainterDashedStrokeParams.
pixel_arc_stroking_possible | if true, will inform that arc-stroking width in PainterStrokeParams::pixel_stroking_units is possible. |
enum PainterStrokeParams::stroking_units_t fastuidraw::PainterDashedStrokeParams::stroking_units | ( | void | ) | const |
Returns the units of the stroking, default value is PainterStrokeParams::path_stroking_units
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::stroking_units | ( | enum PainterStrokeParams::stroking_units_t | ) |
Set the value of stroking_units(void) const, values are clamped to be non-negative.
void fastuidraw::PainterDashedStrokeParams::swap | ( | PainterDashedStrokeParams & | obj | ) |
Swap operation
obj | object with which to swap |
float fastuidraw::PainterDashedStrokeParams::width | ( | void | ) | const |
The stroking width
PainterDashedStrokeParams& fastuidraw::PainterDashedStrokeParams::width | ( | float | f | ) |
Set the value of width(void) const, values are clamped to be non-negative.