[go: up one dir, main page]

File: fast_slow.fl

package info (click to toggle)
fltk1.3 1.3.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,224 kB
  • sloc: cpp: 105,017; ansic: 91,383; sh: 6,825; makefile: 1,948; perl: 24; xml: 7
file content (37 lines) | stat: -rw-r--r-- 1,227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# data file for the Fltk User Interface Designer (fluid)
version 1.0310
header_name {.h}
code_name {.cxx}
Function {} {open
} {
  Fl_Window {} {open
    xywh {397 202 318 443} type Double hide resizable
  } {
    Fl_Slider control {
      label {move
this}
      callback {fast->value(o->value());
if (!Fl::pushed()) slow->value(o->value());}
      xywh {90 200 30 200}
      code0 {o->when(FL_WHEN_CHANGED|FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED);}
    }
    Fl_Slider fast {
      label {fast
redraw} selected
      xywh {140 200 30 200}
      code0 {o->set_output();}
    }
    Fl_Slider slow {
      label {slow
redraw} selected
      xywh {190 200 30 200}
      code0 {o->set_output();}
    }
    Fl_Box {} {
      label {The left slider has changed( FL_WHEN_CHANGED | FL_WHEN_RELEASE | FL_WHEN_NOT_CHANGED) so it produces a callback on both drag and release mouse events.
The middle slider (representing a widget with low overhead) is changed on every mouse movement.
The right slider (representing a widget with high overhead) is only updated when the mouse is released, by checking if Fl::pushed() is zero.}
      xywh {10 10 300 180} box DOWN_BOX color 53 selection_color 47 labelfont 4 labelsize 12 align 148
    }
  }
}