1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
5 #include "application.hh"
6 #include "appwidget.hh"
10 int main(int argc, char **argv) {
11 otk::Application app(argc, argv);
13 otk::AppWidget foo(&app, otk::Widget::Vertical, 3);
15 otk::Label lab2(&foo);
16 otk::Button but(&foo);
17 otk::Button but2(&foo);
19 foo.resize(otk::Size(100, 150));
21 lab.setText("Hi, I'm a sexy\nlabel!!!");
22 lab.setMaxSize(otk::Size(0,0));
23 lab2.setText("Me too!!");
24 lab2.setBorderWidth(10);
25 lab2.setBorderColor(otk::RenderStyle::style(app.screen())->buttonFocusColor());
26 but.setText("Im not the default button...");
27 but2.setText("But I AM!!");
28 but2.setHighlighted(true);