summaryrefslogtreecommitdiff
path: root/third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2014-08-08 14:42:07 +0300
committerYuval Adam <yuv.adm@gmail.com>2014-08-08 14:42:07 +0300
commita6163888f3c56123b1db313743c6147ba498732c (patch)
treeff7d15d991d1d09ba6cbc0cec80924f57445bfdd /third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl
parentc3e4c9a25c2910d2d66d52215b3406b13d5b23d5 (diff)
Add third_party libs
Diffstat (limited to 'third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl')
-rw-r--r--third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl71
1 files changed, 71 insertions, 0 deletions
diff --git a/third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl b/third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl
new file mode 100644
index 0000000..ae462d4
--- /dev/null
+++ b/third_party/windows/fltk-1.1.10/test/mandelbrot_ui.fl
@@ -0,0 +1,71 @@
+# data file for the Fltk User Interface Designer (fluid)
+version 1.0108
+header_name {.h}
+code_name {.cxx}
+decl {\#include "mandelbrot.h"} {public
+}
+
+decl {\#include <stdlib.h>} {}
+
+class Drawing_Window {open
+} {
+ Function {make_window()} {open return_type void
+ } {
+ Fl_Window window {open selected
+ xywh {178 479 450 520} type Single resizable
+ code0 {o->size_range(220,220);} visible
+ } {
+ Fl_Box d {
+ user_data this user_data_type {void*}
+ xywh {20 80 410 430} box DOWN_BOX color 0 selection_color 47 resizable
+ class Drawing_Area
+ }
+ Fl_Input x_input {
+ label {x:}
+ callback {d->X = atof(o->value());;
+d->new_display();}
+ xywh {30 15 125 30} type Float box THIN_DOWN_BOX color 8 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
+ code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
+ }
+ Fl_Input y_input {
+ label {y:}
+ callback {d->Y = atof(o->value());
+d->new_display();}
+ xywh {175 15 125 30} type Float box THIN_DOWN_BOX color 8 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
+ code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
+ }
+ Fl_Input w_input {
+ label {w:}
+ callback {d->scale = atof(o->value());
+d->new_display();}
+ xywh {325 15 105 30} type Float box THIN_DOWN_BOX color 8 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
+ code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
+ }
+ Fl_Slider {} {
+ label {brightness:}
+ callback {d->brightness = int(o->value());
+d->new_display();}
+ xywh {80 50 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
+ code0 {o->bounds(0,d->MAX_BRIGHTNESS);}
+ code2 {o->value(d->DEFAULT_BRIGHTNESS);}
+ code3 {o->slider(FL_UP_BOX);}
+ }
+ Fl_Box {} {
+ label {left: click = zoom out, drag = zoom in
+right click: Julia set}
+ xywh {240 50 190 30} labelsize 10 align 24 deactivate
+ }
+ Fl_Slider {} {
+ label {iterations:}
+ callback {d->iterations = 1<<int(o->value());
+d->new_display();}
+ xywh {80 65 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
+ code0 {o->bounds(1,d->MAX_ITERATIONS);}
+ code2 {o->value(d->DEFAULT_ITERATIONS);}
+ code3 {o->slider(FL_UP_BOX);}
+ }
+ }
+ }
+ decl {void update_label();} {public
+ }
+}