◆ draw()
|
|
inlineoverridevirtualnoexcept |
Draw the cell.
- Parameters
-
| context | The current draw context. |
| color | The color to use for drawing. |
Implements tt::stencil.
◆ preferred_extent()
| extent2 tt::label_stencil::preferred_extent |
( |
| ) |
|
|
inlineoverridevirtualnoexcept |
Return the extent that this cell wants to be drawn as.
Reimplemented from tt::stencil.
◆ set_layout_parameters()
|
|
inlineoverridevirtualnoexcept |
Pass layout parameters in local coordinates.
- Parameters
-
| rectangle | The rectangle the stencil will be drawn into. |
| base_line_position | The position of the base line within the rectangle. |
Reimplemented from tt::stencil.
◆ set_show_icon()
| void tt::label_stencil::set_show_icon |
( |
bool | flag | ) |
|
|
inlinenoexcept |
◆ show_icon()
| bool tt::label_stencil::show_icon |
( |
| ) |
const |
|
inlinenoexcept |
Whether the text in the label will align to an optional icon in the label.
Make space for, and optionally display, an icon in front of the text. This option should be used when any of the labels in a menu has an icon.
This should not be used when a menu is displayed in the same direction as the icon label. For example a left or right aligned menu item in a row menu; such as the tool-bar.
- Return values
-
| true | The text of the label will be aligned after an optional icon of the label. |
| false | The text of the label will be not be aligned to an optional icon of the label. |
The documentation for this class was generated from the following file: