cave-story-solaris/external/fltk/test/radio.fl
Clownacy ac465d29b4 Mean CMake dependency overhaul
I'm taking a page from Dolphin's book, and including copies of each
dependency's source code. This combines the ease of use of including
pre-built libraries instead of needing to navigate a package manager
 - as is (or was) the case for MSVC - with the portability of using
packages. Granted, this method's more of a jack of all trades,
master of none, since it's *less* user-friendly than prebuilt
packages (compilation times), and you don't get the per-distro
compatibility fixes you'd get from a package manager.

You can still use system libs if you want. In fact, it's still the
default behaviour: compiling the libs manually is just a fallback.
I'll add an option to force-enable this soon, however, since it's a
nicer way to produce static MSYS2 builds than the hackish nightmare
that I was using before. Not to mention, having my own copy of the
sources means I can provide my own fixes and tweaks your package
manager may not. For example, I can combine MSYS2's FreeType
subpixel rendering with vcpkg's fix for SDL2 exporting its symbols
in static builds.
2019-04-26 01:52:02 +01:00

100 lines
3.9 KiB
Text

# data file for the Fltk User Interface Designer (fluid)
version 1.0305
header_name {.h}
code_name {.cxx}
Function {button_cb(Fl_Button *b, void *)} {
comment {Buttons test callback} open private return_type void
} {
code {char msg[256];
sprintf(msg, "Label: '%s'\\nValue: %d", b->label(),b->value());
cb_info->value(msg);
cb_info->redraw();
printf("%s\\n",msg);} {selected
}
}
Function {} {open
} {
Fl_Window {} {open
xywh {463 67 369 214} type Double hide
} {
Fl_Button {} {
label {&Fl_Button A1}
tooltip {Normal button (callback called only when released)} xywh {20 10 160 30} labelsize 13
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Button {} {
label {Fl_Button &A2}
tooltip {Normal button with callback called when changed (push and released)} xywh {20 44 160 30} labelsize 13 when 1
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Return_Button {} {
label {Fl_Return_Button &B}
tooltip {Button with Return key as default shortcut} xywh {20 78 160 30} labelsize 13
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Light_Button {} {
label {Fl_Light_Button &C}
tooltip {Button with toggle state and a visual indicator of the current state} xywh {20 113 160 30} labelsize 13
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Check_Button {} {
label {Fl_Check_Button &D}
tooltip {Check button with toggle state} xywh {20 148 160 30} down_box DOWN_BOX labelsize 13
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Round_Button {} {
label {Fl_Round_Button &E}
tooltip {Round Button with toggle state} xywh {20 178 160 30} down_box ROUND_DOWN_BOX labelsize 13
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Group {} {open
xywh {190 10 70 120} box THIN_UP_FRAME
} {
Fl_Round_Button {} {
label {radio &1}
tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 10 70 30} type Radio down_box ROUND_DOWN_BOX
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Round_Button {} {
label {radio &2}
tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 40 70 30} type Radio down_box ROUND_DOWN_BOX
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Round_Button {} {
label {radio &3}
tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 70 70 30} type Radio down_box ROUND_DOWN_BOX
code0 {o->callback((Fl_Callback*) button_cb);}
}
Fl_Round_Button {} {
label {radio &4}
tooltip {Radio button, only one button is set at a time, in the corresponding group.} xywh {190 100 70 30} type Radio down_box ROUND_DOWN_BOX
code0 {o->callback((Fl_Callback*) button_cb);}
}
}
Fl_Group {} {open
xywh {270 10 90 120} box THIN_UP_BOX
} {
Fl_Button {} {
label radio
tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 20 20 20} type Radio selection_color 1 align 8
}
Fl_Button {} {
label radio
tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 45 20 20} type Radio selection_color 1 align 8
}
Fl_Button {} {
label radio
tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 70 20 20} type Radio selection_color 1 align 8
}
Fl_Button {} {
label radio
tooltip {Custom look button, only one button is set at a time, in the corresponding group.} xywh {280 95 20 20} type Radio selection_color 1 align 8
}
}
Fl_Output cb_info {
label {callback:}
xywh {190 148 170 62} type Multiline align 133 textsize 12
}
}
}