+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
#include "application.hh"
#include "focuswidget.hh"
+#include "appwidget.hh"
#include "button.hh"
int main(int argc, char **argv) {
otk::OtkApplication app(argc, argv);
- otk::OtkFocusWidget foo(&app);
+ otk::OtkAppWidget foo(&app);
foo.resize(600, 500);
foo.setTexture(app.getStyle()->getTitleFocus());
- foo.setUnfocusTexture(app.getStyle()->getTitleUnfocus());
+// foo.setUnfocusTexture(app.getStyle()->getTitleUnfocus());
foo.setBevelWidth(2);
foo.setDirection(otk::OtkWidget::Horizontal);
right.setUnfocusTexture(app.getStyle()->getTitleUnfocus());
otk::OtkButton iconb(&left);
+ iconb.resize(40,20);
otk::OtkFocusWidget label(&left);
otk::OtkButton maxb(&left);
otk::OtkButton closeb(&left);
// fixed size
iconb.setText("foo");
- iconb.press();
+ iconb.press(Button1);
// fix width to 60 and let the height be calculated by its parent
//label.setHeight(20);