Lumiera
0.pre.03
»edit your freedom«
|
Functions | |
void | initIconSizeHeuristic (Gtk::Widget const &icon) |
template<class FUN > | |
bool | maybeShow (Gtk::Button &icon, int w, int h, FUN &reCheck) |
attempt to use available space to show more content More... | |
template<class FUN > | |
bool | maybeShow (Gtk::Label &label, int w, int h, FUN &reCheck) |
int | queryNaturalHeight (Gtk::Widget const &widget) |
void | queryNaturalSize (Gtk::Widget const &widget, Gtk::Requisition &natSize) |
Helper to retrieve what GTK effectively uses as minimal extension of a widget. More... | |
int | queryNaturalWidth (Gtk::Widget const &widget) |
int | reduce (Gtk::Button &icon) |
attempt to reduce space consumption More... | |
int | reduce (Gtk::Label &label, int goal) |
Variables | |
const double | HYSTERESIS = 1.6 |
excess factor used to prevent "layout flickering" More... | |
Gtk::Requisition | ICON_SIZ {} |
point of reference for layout computations | |
|
inline |
Helper to retrieve what GTK effectively uses as minimal extension of a widget.
Gtk::Layout
(which we use as foundation for our Timeline canvas) indeed starts its calculation from the minimal width of the attached child widget. Thus, as far as implementing the VFuncs, both cases should be treated symmetrically. Definition at line 79 of file element-box-widget.cpp.
|
inline |
attempt to reduce space consumption
Definition at line 356 of file element-box-widget.cpp.
Referenced by IterExplorer< SRC >::count(), TestChainLoad< maxFan >::getHash(), IterExplorer< SRC >::resultSum(), and IterExplorer_test::verify_reduceVal().
|
inline |
Definition at line 369 of file element-box-widget.cpp.
|
inline |
attempt to use available space to show more content
icon | widget to possibly expand |
w | additional width available |
h | vertical headroom available |
reCheck | function to update and verify success |
Definition at line 397 of file element-box-widget.cpp.
const double HYSTERESIS = 1.6 |
excess factor used to prevent "layout flickering"
Definition at line 107 of file element-box-widget.cpp.