Install on a View to supply the SIZES of the controls in its subtree.
More...
#include <widget_metrics.hpp>
|
| virtual | ~WidgetMetrics ()=default |
| virtual bool | menu_item_size (const MenuItemMetricsQuery &query, BoxSize &out, View &source) |
| virtual bool | menu_border (float &out, View &source) |
| | Padding between the panel edge and the rows, all four sides.
|
| virtual bool | menu_font (FontSpec &out, View &source) |
| virtual bool | button_font (FontSpec &out, View &source) |
| virtual bool | combo_box_font (FontSpec &out, View &source) |
| virtual bool | text_field_font (FontSpec &out, View &source) |
| virtual bool | text_field_insets (EdgeInsets &out, View &source) |
| | The gap between a text field's frame and its text — the sum of whatever the skin thinks of as its frame inset and its text indent.
|
| virtual bool | caret_width (float &out, View &source) |
| | Caret stroke width in pixels.
|
Install on a View to supply the SIZES of the controls in its subtree.
Every hook declines by default.
◆ ~WidgetMetrics()
| virtual pulp::view::WidgetMetrics::~WidgetMetrics |
( |
| ) |
|
|
virtualdefault |
◆ button_font()
| virtual bool pulp::view::WidgetMetrics::button_font |
( |
FontSpec & | out, |
|
|
View & | source ) |
|
inlinevirtual |
◆ caret_width()
| virtual bool pulp::view::WidgetMetrics::caret_width |
( |
float & | out, |
|
|
View & | source ) |
|
inlinevirtual |
Caret stroke width in pixels.
Sub-pixel values are legal and render as an antialiased hairline.
◆ combo_box_font()
| virtual bool pulp::view::WidgetMetrics::combo_box_font |
( |
FontSpec & | out, |
|
|
View & | source ) |
|
inlinevirtual |
◆ menu_border()
| virtual bool pulp::view::WidgetMetrics::menu_border |
( |
float & | out, |
|
|
View & | source ) |
|
inlinevirtual |
Padding between the panel edge and the rows, all four sides.
◆ menu_font()
| virtual bool pulp::view::WidgetMetrics::menu_font |
( |
FontSpec & | out, |
|
|
View & | source ) |
|
inlinevirtual |
◆ menu_item_size()
◆ text_field_font()
| virtual bool pulp::view::WidgetMetrics::text_field_font |
( |
FontSpec & | out, |
|
|
View & | source ) |
|
inlinevirtual |
◆ text_field_insets()
| virtual bool pulp::view::WidgetMetrics::text_field_insets |
( |
EdgeInsets & | out, |
|
|
View & | source ) |
|
inlinevirtual |
The gap between a text field's frame and its text — the sum of whatever the skin thinks of as its frame inset and its text indent.
One hook, because the widget only ever needs the total.
The documentation for this class was generated from the following file: