A text field's frame.
More...
#include <widget_painter.hpp>
|
| bool | read_only = false |
| bool | empty = true |
| | no text (the placeholder is showing)
|
| 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
|
A text field's frame.
bounds is the whole field. Split into a background hook and an outline hook because the two are independently restyled far more often than they are restyled together: a field that wants a flat fill and no frame overrides one and lets the other decline.
◆ bounds
| Rect pulp::view::ControlPaintState::bounds {} |
|
inherited |
paint area, LOCAL to the widget (origin 0,0)
◆ empty
| bool pulp::view::TextFieldPaintState::empty = true |
no text (the placeholder is showing)
◆ 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
◆ read_only
| bool pulp::view::TextFieldPaintState::read_only = false |
The documentation for this struct was generated from the following file: