Implement vertical meters.

This commit is contained in:
Zed A. Shaw 2026-04-19 23:47:14 -04:00
parent ad116b5515
commit 48b672eec4
3 changed files with 26 additions and 4 deletions

View file

@ -70,9 +70,12 @@ namespace guecs {
float percent = 1.0f;
sf::Color color = THEME.BG_COLOR_DARK;
int padding = THEME.PADDING;
bool vertical = false;
Rectangle bar{padding, color};
// this is set automatically if a Rectangle is configured for the cell
Rectangle backing_rect{padding, color};
size_t $cell_x = 0;
size_t $cell_y = 0;
size_t $cell_w = 0;
size_t $cell_h = 0;