- otk::AppWidget foo(&app);
-
- foo.resize(600, 500);
- foo.setTexture(app.getStyle()->titlebarFocusBackground());
-// foo.setUnfocusTexture(app.getStyle()->titlebarUnfocusBackground());
-
- foo.setBevelWidth(2);
- foo.setDirection(otk::Widget::Horizontal);
-
- otk::FocusWidget left(&foo);
- otk::FocusWidget right(&foo);
-
- left.setDirection(otk::Widget::Horizontal);
- left.setStretchableVert(true);
- left.setStretchableHorz(true);
- left.setTexture(app.getStyle()->titlebarFocusBackground());
- left.setUnfocusTexture(app.getStyle()->titlebarUnfocusBackground());
-
- right.setDirection(otk::Widget::Vertical);
- right.setBevelWidth(10);
- right.setStretchableVert(true);
- right.setWidth(300);
- right.setTexture(app.getStyle()->titlebarFocusBackground());
- right.setUnfocusTexture(app.getStyle()->titlebarUnfocusBackground());
-
- otk::Button iconb(&left);
- iconb.resize(40,20);
- otk::FocusWidget label(&left);
- otk::Button maxb(&left);
- otk::Button closeb(&left);
+ otk::AppWidget foo(&app, otk::Widget::Vertical, 3);
+ otk::Label lab(&foo);
+ otk::Label lab2(&foo);
+ otk::Button but(&foo);
+ otk::Button but2(&foo);