![]() |
Lumiera 0.pre.04
»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 99 of file element-box-widget.hpp.
Public Member Functions | |
| ~IDLabel () | |
| IDLabel (Literal iconID, Literal menuSymb, Gtk::IconSize) | |
| cuString | getCaption () const |
| void | setCaption (cuString &) |
| void | imposeSizeConstraint (int, int) |
| Ensure the IDLabel stays within a given size constraint. | |
Private Member Functions | |
| void | adaptSize (int, int) |
| Multi-step procedure to keep this IDLabel widget within the given screen size constraints. | |
Private Attributes | |
| Gtk::Image | imgIcon_ |
| Gtk::Image | imgMenu_ |
| Gtk::Button | icon_ |
| Gtk::Button | menu_ |
| Gtk::Label | name_ |
| Gtk::Requisition | labelFullSize_ {} |
| ~IDLabel | ( | ) |
Definition at line 112 of file element-box-widget.cpp.
Definition at line 150 of file element-box-widget.cpp.
References stage::CLASS_background, stage::CLASS_idlabel, stage::CLASS_idlabel_icon, stage::CLASS_idlabel_menu, stage::CLASS_idlabel_name, IDLabel::icon_, stage::ID_idlabel, IDLabel::imgIcon_, IDLabel::imgMenu_, IDLabel::menu_, and IDLabel::name_.
| cuString getCaption | ( | ) | const |
Definition at line 184 of file element-box-widget.cpp.
References IDLabel::name_.
Referenced by ElementBoxWidget::getName().
Here is the caller graph for this function:| void setCaption | ( | cuString & | idCaption | ) |
Definition at line 174 of file element-box-widget.cpp.
References IDLabel::labelFullSize_, and IDLabel::name_.
Referenced by ElementBoxWidget::ElementBoxWidget(), and ElementBoxWidget::setName().
Here is the caller graph for this function:| 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 331 of file element-box-widget.cpp.
References IDLabel::adaptSize(), and IDLabel::labelFullSize_.
Referenced by ElementBoxWidget::imposeSizeConstraint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 436 of file element-box-widget.cpp.
References IDLabel::icon_, IDLabel::menu_, and IDLabel::name_.
Referenced by IDLabel::imposeSizeConstraint().
Here is the caller graph for this function:
|
private |
Definition at line 102 of file element-box-widget.hpp.
Referenced by IDLabel::IDLabel().
|
private |
Definition at line 103 of file element-box-widget.hpp.
Referenced by IDLabel::IDLabel().
|
private |
Definition at line 104 of file element-box-widget.hpp.
Referenced by IDLabel::IDLabel(), and IDLabel::adaptSize().
|
private |
Definition at line 105 of file element-box-widget.hpp.
Referenced by IDLabel::IDLabel(), and IDLabel::adaptSize().
|
private |
Definition at line 106 of file element-box-widget.hpp.
Referenced by IDLabel::IDLabel(), IDLabel::adaptSize(), IDLabel::getCaption(), and IDLabel::setCaption().
|
private |
Definition at line 118 of file element-box-widget.hpp.
Referenced by IDLabel::imposeSizeConstraint(), and IDLabel::setCaption().
Inheritance diagram for IDLabel:
Collaboration diagram for IDLabel: