Derived meter skin: gradient stops ordered low→high (bottom→top), plus an optional background color. More...
#include <widget_skin_derive.hpp>
Public Member Functions | |
| bool | valid () const |
Public Attributes | |
| std::vector< canvas::Color > | gradient |
| canvas::Color | background {} |
| bool | has_background = false |
| float | bar_width_px = 0.0f |
| bool | has_bar_width = false |
| float | housing_height_px = 0.0f |
| bool | has_housing_height = false |
| float | bar_fill_ratio = 1.0f |
| bool | has_bar_fill_ratio = false |
| float | fill_level = 0.0f |
| bool | has_fill_level = false |
Derived meter skin: gradient stops ordered low→high (bottom→top), plus an optional background color.
gradient is empty when no gradient could be recovered (caller should then leave the meter on its default look).
|
inline |
| canvas::Color pulp::view::MeterSkin::background {} |
| float pulp::view::MeterSkin::bar_fill_ratio = 1.0f |
| float pulp::view::MeterSkin::bar_width_px = 0.0f |
| float pulp::view::MeterSkin::fill_level = 0.0f |
| std::vector<canvas::Color> pulp::view::MeterSkin::gradient |
| bool pulp::view::MeterSkin::has_background = false |
| bool pulp::view::MeterSkin::has_bar_fill_ratio = false |
| bool pulp::view::MeterSkin::has_bar_width = false |
| bool pulp::view::MeterSkin::has_fill_level = false |
| bool pulp::view::MeterSkin::has_housing_height = false |
| float pulp::view::MeterSkin::housing_height_px = 0.0f |