]>
Dogcows Code - chaz/openbox/blob - otk/otk_test.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
7 #include "application.hh"
8 #include "appwidget.hh"
12 int main(int argc
, char **argv
) {
13 otk::Application
app(argc
, argv
);
15 otk::AppWidget
foo(&app
, otk::Widget::Vertical
, 3);
17 otk::Label
lab2(&foo
);
18 otk::Button
but(&foo
);
19 otk::Button
but2(&foo
);
21 foo
.resize(otk::Size(100, 150));
23 lab
.setText("Hi, I'm a sexy\nlabel!!!");
24 lab
.setMaxSize(otk::Size(0,0));
25 lab2
.setText("Me too!!");
26 lab2
.setBorderWidth(10);
27 lab2
.setBorderColor(otk::RenderStyle::style(app
.screen())->buttonFocusColor());
28 but
.setText("Im not the default button...");
29 but2
.setText("But I AM!!");
30 but2
.setDefault(true);
This page took 0.039353 seconds and 4 git commands to generate.