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

A push / toggle button. More...

#include <widget_painter.hpp>

Public Attributes

bool toggled = false
std::string text
canvas::Color background {}
Rect bounds {}
 paint area, LOCAL to the widget (origin 0,0)
bool enabled = true
bool hovered = false
 pointer is over the control
bool pressed = false
 pointer is down on the control
bool focused = false
 control holds keyboard focus

Detailed Description

A push / toggle button.

background is the color the widget itself would have used, offered so a skin can tint rather than replace it.

Member Data Documentation

◆ background

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

◆ bounds

Rect pulp::view::ControlPaintState::bounds {}
inherited

paint area, LOCAL to the widget (origin 0,0)

◆ enabled

bool pulp::view::ControlPaintState::enabled = true
inherited

◆ focused

bool pulp::view::ControlPaintState::focused = false
inherited

control holds keyboard focus

◆ hovered

bool pulp::view::ControlPaintState::hovered = false
inherited

pointer is over the control

◆ pressed

bool pulp::view::ControlPaintState::pressed = false
inherited

pointer is down on the control

◆ text

std::string pulp::view::ButtonPaintState::text

◆ toggled

bool pulp::view::ButtonPaintState::toggled = false

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