]> Dogcows Code - chaz/openbox/blobdiff - otk/otk_test.cc
add an OtkAppWidget which are "root windows", i.e. the managed child of root, to...
[chaz/openbox] / otk / otk_test.cc
index ec352f9f13ebf58d8e4b44cafc325474a1893a65..39baa7f6e45a6db6d2e43bde6f61f3d975545db9 100644 (file)
@@ -1,15 +1,16 @@
 #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 +32,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.023016 seconds and 4 git commands to generate.