3 This file is part of libmspgltk
4 Copyright © 2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_MIXEDROWS_H_
9 #define MSP_GLTK_MIXEDROWS_H_
17 Places widgets on multiple heterogeneous rows.
19 This layout class creates rows of widgets, with no horizontal constraints
20 between rows. Widgets are placed on rows left-to-right and rows are placed
23 The start of each new row must be indicated manually. The widgets on a row
24 can be specified to have a uniform width, and similarly all rows can be set to
25 have a uniform height.
27 By default widgets have a top-left gravity. It's possible to specify a "split"
28 to align remaining widgets on a row to the right, or remaining rows to the
29 bottom. This does not change the placement order of widgets.
31 class MixedRows: public Layout
43 MixedRows(bool = false);
45 void start_row(bool = false);
50 virtual Slot *create_slot(Widget &);