fltk/test/resize.C
Michael R Sweet f9039b2ae2 Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:21:25 +00:00

72 lines
1.9 KiB
C

// generated by Fast Light User Interface Designer (fluid) version 0.99
#include "resize.H"
static void callback_1008ed30(Fl_Button* o, void*) {
Fl_Window* w = o->window();
w->position(w->x()-50,w->y());
}
static void callback_1008ee58(Fl_Button* o, void*) {
Fl_Window* w = o->window();
w->position(w->x(),w->y()+50);
}
static void callback_1008ef40(Fl_Button* o, void*) {
Fl_Window* w = o->window();
w->position(w->x()+50,w->y());
}
static void callback_1008f048(Fl_Button* o, void*) {
Fl_Window* w = o->window();
w->position(w->x(),w->y()-50);
}
static void callback_1008f130(Fl_Button* o, void*) {
Fl_Window* w = o->window();
w->size(w->w()+50, w->h()+50);
}
static void callback_1008f360(Fl_Button* o, void*) {
Fl_Window* w = o->window();
w->size(w->w()/2+1, w->h()/2+1);
}
int main(int argc, char **argv) {
Fl_Window *w;
{Fl_Window* o = new Fl_Window(366, 261);
w = o;
Fl_Group::current()->resizable(o);
{Fl_Button* o = new Fl_Button(20, 40, 40, 40, "@<-");
o->labeltype(FL_SYMBOL_LABEL);
o->callback((Fl_Callback*)callback_1008ed30);
}
{Fl_Button* o = new Fl_Button(60, 80, 40, 40, "@2->");
o->labeltype(FL_SYMBOL_LABEL);
o->callback((Fl_Callback*)callback_1008ee58);
}
{Fl_Button* o = new Fl_Button(100, 40, 40, 40, "@->");
o->labeltype(FL_SYMBOL_LABEL);
o->callback((Fl_Callback*)callback_1008ef40);
}
{Fl_Button* o = new Fl_Button(60, 0, 40, 40, "@8->");
o->labeltype(FL_SYMBOL_LABEL);
o->callback((Fl_Callback*)callback_1008f048);
}
{Fl_Button* o = new Fl_Button(30, 130, 110, 40, "grow");
o->labeltype(FL_SYMBOL_LABEL);
o->labelfont(1);
o->labelsize(18);
o->callback((Fl_Callback*)callback_1008f130);
}
{Fl_Button* o = new Fl_Button(30, 190, 110, 40, "shrink");
o->labeltype(FL_SYMBOL_LABEL);
o->labelfont(1);
o->labelsize(18);
o->callback((Fl_Callback*)callback_1008f360);
}
w->end();
}
w->show(argc, argv);
return Fl::run();
}