文書の過去の版を表示しています。
ボタン
Fl_Buttonクラス
Fl_Buttonクラスから派生するクラス全体の階層図
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Button demo");
auto button1 = new Fl_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Radio_Buttonクラス
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Radio_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Radio_Button demo");
auto button1 = new Fl_Radio_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Radio_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Radio_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Repeat_Buttonクラス
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Repeat_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Repeat_Button demo");
auto button1 = new Fl_Repeat_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Repeat_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Repeat_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Return_Buttonクラス
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Return_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Return_Button demo");
auto button1 = new Fl_Return_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Return_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Return_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Toggle_Buttonクラス
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Toggle_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Toggle_Button demo");
auto button1 = new Fl_Toggle_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Toggle_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Toggle_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Shortcut_Buttonクラス
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Shortcut_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Shortcut_Button demo");
auto button1 = new Fl_Shortcut_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Shortcut_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Shortcut_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Light_Buttonクラス
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Light_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Light_Button demo");
auto button1 = new Fl_Light_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Light_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Light_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Check_Button
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Check_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Check_Button demo");
auto button1 = new Fl_Check_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Check_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Check_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Radio_Light_Button
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Radio_Light_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Radio_Light_Button demo");
auto button1 = new Fl_Radio_Light_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Radio_Light_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Radio_Light_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Round_Button
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Round_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Round_Button demo");
auto button1 = new Fl_Round_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Round_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Round_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}
Fl_Radio_Round_Button
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Radio_Round_Button.H>
int main(int argc, char **argv) {
auto window = new Fl_Window(400, 300, "Fl_Radio_Round_Button demo");
auto button1 = new Fl_Radio_Round_Button(100, 85, 200, 30, "Hello, SMALL world!");
auto button2 = new Fl_Radio_Round_Button(100, 135, 200, 30, "Hello, MEDIUM world!");
auto button3 = new Fl_Radio_Round_Button(100, 185, 200, 30, "Hello, LARGE world!");
window->end();
window->show();
return Fl::run();
}