Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/widget/element-box-widget.hpp"
Widget arrangement to represent an entity for manipulation.
This uniform standard arrangement is comprised of
Definition at line 108 of file element-box-widget.hpp.
Public Member Functions | |
IDLabel (Literal iconID, Literal menuSymb, Gtk::IconSize) | |
cuString | getCaption () const |
void | imposeSizeConstraint (int, int) |
Ensure the IDLabel stays within a given size constraint. More... | |
void | setCaption (cuString &) |
Private Member Functions | |
void | adaptSize (int, int) |
Multi-step procedure to keep this IDLabel widget within the given screen size constraints. More... | |
Private Attributes | |
Gtk::Button | icon_ |
Gtk::Image | imgIcon_ |
Gtk::Image | imgMenu_ |
Gtk::Requisition | labelFullSize_ {} |
Gtk::Button | menu_ |
Gtk::Label | name_ |
void imposeSizeConstraint | ( | int | widthC, |
int | heightC | ||
) |
Ensure the IDLabel stays within a given size constraint.
In case the standard rendering complete with icon and name caption exceeds the given screen space, try to bring this widget into imposed limits by reducing or hiding some parts.
Definition at line 340 of file element-box-widget.cpp.
References IDLabel::adaptSize().
|
private |
Multi-step procedure to keep this IDLabel widget within the given screen size constraints.
In case the extension needs to be reduced, the name label and both icons are probed and possibly reduced. Otherwise, if there is sufficient headroom, an attempt is made possibly to show parts again, albeit with some hysteresis.
Definition at line 445 of file element-box-widget.cpp.
Referenced by IDLabel::imposeSizeConstraint().