差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
fltk:widget-basic-buttons [2025/05/28 11:42] – freemikan | fltk:widget-basic-buttons [2025/05/30 17:36] (現在) – Apply imagebox plugin freemikan | ||
---|---|---|---|
行 1: | 行 1: | ||
====== ボタン ====== | ====== ボタン ====== | ||
- | {{: | + | [[fltk:|{{: |
- | ===== Fl_Button ===== | + | ===== Fl_Buttonクラス |
+ | [{{ https:// | ||
+ | {{ : | ||
- | ==== Fl_Check_Button ==== | + | <code cpp> |
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | 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(); | ||
+ | } | ||
+ | </ | ||
- | ==== Fl_Light_Button ==== | ||
+ | ==== Fl_Radio_Buttonクラス ==== | ||
- | ==== Fl_Repeat_Button ==== | + | {{ : |
+ | <code cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
- | ==== Fl_Return_Button ==== | + | int main(int argc, char **argv) { |
+ | auto window | ||
+ | auto button1 | ||
+ | auto button2 | ||
+ | auto button3 | ||
+ | window-> | ||
+ | window-> | ||
+ | return Fl:: | ||
+ | } | ||
+ | </ | ||
- | ==== Fl_Toggle_Button ==== | + | ==== Fl_Repeat_Buttonクラス ==== |
+ | |||
+ | {{ : | ||
+ | |||
+ | <code cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main(int argc, char **argv) { | ||
+ | auto window = new Fl_Window(400, | ||
+ | auto button1 = new Fl_Repeat_Button(100, | ||
+ | auto button2 = new Fl_Repeat_Button(100, | ||
+ | auto button3 = new Fl_Repeat_Button(100, | ||
+ | window-> | ||
+ | window-> | ||
+ | return Fl:: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Fl_Return_Buttonクラス ==== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <code cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | 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 | ||
+ | auto button1 | ||
+ | auto button2 | ||
+ | auto button3 | ||
+ | window-> | ||
+ | window-> | ||
+ | return Fl:: | ||
+ | } | ||
+ | </ | ||
行 25: | 行 239: | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||