The text-insertion caret.
More...
#include <widget_painter.hpp>
|
| float | width = 1.0f |
| 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
|
The text-insertion caret.
bounds is the caret's cell — the full rect the caret is allowed to occupy, at the field's line height. A skin that wants a hairline draws a narrower rect inside it; width is the stroke the field's metrics resolved to (see WidgetMetrics::caret_width), offered so a painter and a metrics delegate that both restyle the caret cannot disagree.
◆ 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
◆ width
| float pulp::view::CaretPaintState::width = 1.0f |
The documentation for this struct was generated from the following file: