Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::MeterSkin Struct Reference

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

Detailed Description

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).

Member Function Documentation

◆ valid()

bool pulp::view::MeterSkin::valid ( ) const
inline

Member Data Documentation

◆ background

canvas::Color pulp::view::MeterSkin::background {}

◆ bar_fill_ratio

float pulp::view::MeterSkin::bar_fill_ratio = 1.0f

◆ bar_width_px

float pulp::view::MeterSkin::bar_width_px = 0.0f

◆ fill_level

float pulp::view::MeterSkin::fill_level = 0.0f

◆ gradient

std::vector<canvas::Color> pulp::view::MeterSkin::gradient

◆ has_background

bool pulp::view::MeterSkin::has_background = false

◆ has_bar_fill_ratio

bool pulp::view::MeterSkin::has_bar_fill_ratio = false

◆ has_bar_width

bool pulp::view::MeterSkin::has_bar_width = false

◆ has_fill_level

bool pulp::view::MeterSkin::has_fill_level = false

◆ has_housing_height

bool pulp::view::MeterSkin::has_housing_height = false

◆ housing_height_px

float pulp::view::MeterSkin::housing_height_px = 0.0f

The documentation for this struct was generated from the following file: