struct _GtkTreeModel;
struct _GtkTreePath;
struct _GtkTreeSelection;
+struct _GtkTreeStore;
struct _GtkTreeView;
struct _GtkTreeViewColumn;
struct _GtkVBox;
WRAP(ToggleButton, Button, _GtkToggleButton, (),
,
- bool active();
+ bool active() const;
+ void active(bool value);
);
WRAP(CheckButton, ToggleButton, _GtkCheckButton, (),
,
);
+ struct TableAttach {
+ unsigned int left, right, top, bottom;
+ };
+
+ struct TableAttachOptions {
+ // todo: type safety
+ unsigned int x, y;
+ };
+
+ struct TablePadding {
+ unsigned int x, y;
+ };
+
WRAP(Table, Container, _GtkTable, (),
Table(std::size_t rows, std::size_t columns, bool homogenous);
,
+ // 5 = expand | fill
+ void attach(Widget child, TableAttach attach, TableAttachOptions options = {5, 5}, TablePadding padding = {0, 0});
);
WRAP(TextView, Container, _GtkTextView, (),
void append();
);
+ WRAP(TreeStore, Object, _GtkTreeStore, (ITreeModel),
+ ,
+ );
+
WRAP(TreeSelection, Object, _GtkTreeSelection, (),
,
);