| Top |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkBin
╰── GwyShrinkWrap
GwyShrinkWrap is a simple wrapper container widget which requests its child's minimum size as the natural size, essentially making it never request more than the minimum size. It is mainly useful for corner cases such as ellipsised labels, which have small minimum size but the natural size corresponds to the full text. This causes containers to give them a lot of space they do not need and can also make default window sizes unnecessarily large.
Child widgets that trade width for height may not behave reasonably inside because the shrinking breaks the trading.
GtkWidget *
gwy_shrink_wrap_new (GtkSizeGroupMode mode);
Creates a new shrink-wrap container.
The mode is given as GtkSizeGroupMode because it has the same logic.
void gwy_shrink_wrap_set_mode (GwyShrinkWrap *shrinkwrap,GtkSizeGroupMode mode);
Sets the direction in which a shrink-wrap container shrinks its child.
GtkSizeGroupMode
gwy_shrink_wrap_get_mode (GwyShrinkWrap *shrinkwrap);
Reports the direction in which a shrink-wrap container shrinks its child.