fltk/test/mandelbrot_ui.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

88 lines
2.2 KiB
C

// generated by Fast Light User Interface Designer (fluid) version 0.99
#include "mandelbrot_ui.H"
Fl_Window* make_window(Drawing_Window& s) {
Fl_Window *w;
{Fl_Window* o = new Fl_Window(429, 510);
w = s.window = o;
{Drawing_Area* o = new Drawing_Area(10, 70, 410, 430);
s.d = o;
o->box(FL_DOWN_BOX);
o->color(0);
o->user_data((void*)(&s));
Fl_Group::current()->resizable(o);
}
{Fl_Input* o = new Fl_Input(20, 5, 125, 30, "x:");
s.x_input = o;
o->type(1);
o->box(FL_THIN_DOWN_BOX);
o->color(8);
o->color2(7);
o->labelfont(11);
o->labelsize(20);
o->textfont(11);
o->textsize(20);
o->callback((Fl_Callback*)x_callback, (void*)(&s));
o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);
}
{Fl_Input* o = new Fl_Input(165, 5, 125, 30, "y:");
s.y_input = o;
o->type(1);
o->box(FL_THIN_DOWN_BOX);
o->color(8);
o->color2(7);
o->labelfont(11);
o->labelsize(20);
o->textfont(11);
o->textsize(20);
o->callback((Fl_Callback*)y_callback, (void*)(&s));
o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);
}
{Fl_Input* o = new Fl_Input(315, 5, 105, 30, "w:");
s.w_input = o;
o->type(1);
o->box(FL_THIN_DOWN_BOX);
o->color(8);
o->color2(7);
o->labelfont(11);
o->labelsize(20);
o->textfont(11);
o->textsize(20);
o->callback((Fl_Callback*)w_callback, (void*)(&s));
o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);
}
{Fl_Slider* o = new Fl_Slider(70, 40, 160, 15, "brightness:");
o->type(1);
o->box(FL_THIN_DOWN_BOX);
o->labelsize(10);
o->step(1);
o->slider_size(0.1);
o->callback((Fl_Callback*)brightness_slider_cb, (void*)(&s));
o->align(4);
o->bounds(0,s.d->MAX_BRIGHTNESS);
o->value(s.d->DEFAULT_BRIGHTNESS);
o->slider(FL_UP_BOX);
}
{Fl_Box* o = new Fl_Box(230, 40, 190, 30, "left: click = zoom out, drag = zoom in\nright click: Julia set");
o->labelsize(10);
o->align(24);
o->deactivate();
}
{Fl_Slider* o = new Fl_Slider(70, 55, 160, 15, "iterations:");
o->type(1);
o->box(FL_THIN_DOWN_BOX);
o->labelsize(10);
o->step(1);
o->slider_size(0.1);
o->callback((Fl_Callback*)iterations_slider_cb, (void*)(&s));
o->align(4);
o->bounds(1,s.d->MAX_ITERATIONS);
o->value(s.d->DEFAULT_ITERATIONS);
o->slider(FL_UP_BOX);
}
w->end();
o->size_range(220,220);
}
return w;
}