]> Dogcows Code - chaz/openbox/blobdiff - otk/otk_test.cc
add an OBBackgroundWidget and use it for setting colors so far.
[chaz/openbox] / otk / otk_test.cc
index ec352f9f13ebf58d8e4b44cafc325474a1893a65..495b81d59ff687c425f3c7f748d9be517e936b83 100644 (file)
@@ -1,15 +1,22 @@
+// -*- 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);
@@ -31,13 +38,14 @@ int main(int argc, char **argv) {
   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);
This page took 0.024659 seconds and 4 git commands to generate.