Style value resolver.
More...
#include <style_cascade.h>
◆ StyleCascade() [1/2]
clan::StyleCascade::StyleCascade |
( |
| ) |
|
|
inline |
◆ StyleCascade() [2/2]
clan::StyleCascade::StyleCascade |
( |
std::vector< Style * > |
cascade, |
|
|
StyleCascade * |
parent = nullptr |
|
) |
| |
|
inline |
◆ array_size() [1/2]
int clan::StyleCascade::array_size |
( |
const char * |
property_name | ) |
const |
Value array size for the property.
◆ array_size() [2/2]
int clan::StyleCascade::array_size |
( |
const std::string & |
property_name | ) |
const |
|
inline |
◆ cascade_value() [1/2]
StyleGetValue clan::StyleCascade::cascade_value |
( |
const char * |
property_name | ) |
const |
Find the first declared value in the cascade for the specified property.
◆ cascade_value() [2/2]
StyleGetValue clan::StyleCascade::cascade_value |
( |
const std::string & |
property_name | ) |
const |
|
inline |
◆ compute_angle()
Convert angle into radians.
◆ compute_frequency()
◆ compute_length()
Convert length into px (device independent pixel) units.
◆ compute_resolution()
Convert resolution to dots per px unit (pixel ratio scale)
◆ compute_time()
◆ computed_value() [1/2]
StyleGetValue clan::StyleCascade::computed_value |
( |
const char * |
property_name | ) |
const |
Find the computed value for the specified value
The computed value is a simplified value for the property. Lengths are resolved to device independent pixels and so on.
◆ computed_value() [2/2]
StyleGetValue clan::StyleCascade::computed_value |
( |
const std::string & |
property_name | ) |
const |
|
inline |
◆ get_font()
Font clan::StyleCascade::get_font |
( |
Canvas & |
canvas | ) |
const |
Font used by this style cascade.
◆ render_background()
void clan::StyleCascade::render_background |
( |
Canvas & |
canvas, |
|
|
const ViewGeometry & |
geometry |
|
) |
| const |
Render styled background.
◆ render_border()
void clan::StyleCascade::render_border |
( |
Canvas & |
canvas, |
|
|
const ViewGeometry & |
geometry |
|
) |
| const |
◆ specified_value() [1/2]
StyleGetValue clan::StyleCascade::specified_value |
( |
const char * |
property_name | ) |
const |
Resolve any inheritance or initial values for the cascade value.
◆ specified_value() [2/2]
StyleGetValue clan::StyleCascade::specified_value |
( |
const std::string & |
property_name | ) |
const |
|
inline |
◆ cascade
std::vector<Style *> clan::StyleCascade::cascade |
Property sets to be examined.
◆ parent
Parent cascade used for inheritance.
The documentation for this class was generated from the following file: