差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| fltk:widget-basic-buttons [2025/05/28 12:00] – Update list of button classes to latest FLTK state freemikan | fltk:widget-basic-buttons [2025/05/30 17:36] (現在) – Apply imagebox plugin freemikan | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== ボタン ====== | ====== ボタン ====== | ||
| - | {{: | + | [[fltk:|{{: |
| - | ===== Fl_Button ===== | + | ===== Fl_Buttonクラス |
| + | [{{ https:// | ||
| - | Fl_Buttonクラス前後のクラス階層 | + | {{ : |
| - | Fl_Widget | + | <code cpp> |
| - | | | + | #include < |
| - | +----Fl_Button | + | #include <FL/Fl_Button.H> |
| - | | | + | #include < |
| - | | + | |
| - | Fl_Return_Button, | + | |
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Button(100, | ||
| + | auto button2 = new Fl_Button(100, | ||
| + | auto button3 = new Fl_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl::run(); | ||
| + | } | ||
| + | </ | ||
| - | {{ https:// | ||
| + | ==== Fl_Radio_Buttonクラス ==== | ||
| + | {{ : | ||
| - | ==== Fl_Radio_Button | + | <code cpp> |
| + | #include < | ||
| + | #include <FL/Fl_Radio_Button.H> | ||
| + | #include < | ||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Radio_Button(100, | ||
| + | auto button2 = new Fl_Radio_Button(100, | ||
| + | auto button3 = new Fl_Radio_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl::run(); | ||
| + | } | ||
| + | </ | ||
| - | ==== Fl_Repeat_Button ==== | ||
| + | ==== Fl_Repeat_Buttonクラス ==== | ||
| - | ==== Fl_Return_Button ==== | + | {{ : |
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| - | ==== Fl_Toggle_Button ==== | + | int main(int argc, char **argv) { |
| + | auto window | ||
| + | auto button1 | ||
| + | auto button2 | ||
| + | auto button3 | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| - | ==== Fl_Shortcut_Button | + | ==== Fl_Return_Buttonクラス |
| + | {{ : | ||
| - | ==== Fl_Light_Button ==== | + | <code cpp> |
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| - | Fl_Light_Button前後のクラス階層 | + | int main(int argc, char **argv) { |
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Return_Button(100, | ||
| + | auto button2 = new Fl_Return_Button(100, | ||
| + | auto button3 = new Fl_Return_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Fl_Toggle_Buttonクラス ==== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Toggle_Button(100, | ||
| + | auto button2 = new Fl_Toggle_Button(100, | ||
| + | auto button3 = new Fl_Toggle_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Fl_Shortcut_Buttonクラス ==== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Shortcut_Button(100, | ||
| + | auto button2 = new Fl_Shortcut_Button(100, | ||
| + | auto button3 = new Fl_Shortcut_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Fl_Light_Buttonクラス ==== | ||
| + | [{{ https:// | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Light_Button(100, | ||
| + | auto button2 = new Fl_Light_Button(100, | ||
| + | auto button3 = new Fl_Light_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | === Fl_Check_Button === | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Check_Button(100, | ||
| + | auto button2 = new Fl_Check_Button(100, | ||
| + | auto button3 = new Fl_Check_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Fl_Radio_Light_Button === | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Radio_Light_Button(100, | ||
| + | auto button2 = new Fl_Radio_Light_Button(100, | ||
| + | auto button3 = new Fl_Radio_Light_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Fl_Round_Button === | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Round_Button(100, | ||
| + | auto button2 = new Fl_Round_Button(100, | ||
| + | auto button3 = new Fl_Round_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | == Fl_Radio_Round_Button == | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code cpp> | ||
| + | #include < | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | int main(int argc, char **argv) { | ||
| + | auto window = new Fl_Window(400, | ||
| + | auto button1 = new Fl_Radio_Round_Button(100, | ||
| + | auto button2 = new Fl_Radio_Round_Button(100, | ||
| + | auto button3 = new Fl_Radio_Round_Button(100, | ||
| + | window-> | ||
| + | window-> | ||
| + | return Fl:: | ||
| + | } | ||
| + | </ | ||
| - | Fl_Button | ||
| - | | | ||
| - | | ||
| - | | | ||
| - | | ||
| - | | | ||
| - | | ||
| - | | | ||
| - | | ||
| - | | | ||
| - | | ||
| 行 54: | 行 239: | ||
| * [[https:// | * [[https:// | ||
| - | |||
