| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン |
| fltk:widget-basic-texts [2025/06/02 14:42] – Add code and screenshots of demo programs freemikan | fltk:widget-basic-texts [2025/06/12 11:50] (現在) – [参照] Simplify freemikan |
|---|
| |
| ===== Fl_Inputクラス ===== | ===== Fl_Inputクラス ===== |
| [{{ https://www.fltk.org/doc-1.4/classFl__Input.png |Fl_Inputクラス前後のクラス階層図}}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Input.png |Fl_Inputクラス前後のクラス階層図}} |
| | Fl_Inputクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_input1.jpg |Fl_Inputクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_input1.jpg |Fl_Inputクラスを使ったサンプルプログラム}}] |
| |
| |
| ==== Fl_Outputクラス ==== | ==== Fl_Multiline_Inputクラス ==== |
| [{{ https://www.fltk.org/doc-1.4/classFl__Output.png |Fl_Inputクラス前後のクラス階層図}}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Multiline__Input.png |Fl_Multiline_Inputクラス前後のクラス階層図 }} |
| | Fl_Multiline_Inputクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_output1.jpg |Fl_Outputクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_multiline_input1.jpg |Fl_Multiline_Inputクラスを使ったサンプルプログラム}}] |
| |
| <code cpp> | <code cpp> |
| #include <FL/Fl.H> | #include <FL/Fl.H> |
| #include <FL/Fl_Output.H> | #include <FL/Fl_Multiline_Input.H> |
| #include <FL/Fl_Window.H> | #include <FL/Fl_Window.H> |
| |
| int main(int argc, char **argv) { | int main(int argc, char **argv) { |
| auto window = new Fl_Window{400, 300, "Fl_Output demo"}; | auto window = new Fl_Window{400, 400, "Fl_Multiline_Input demo"}; |
| auto output1 = new Fl_Output{130, 85, 200, 30, "Message 1"}; | auto input1 = new Fl_Multiline_Input{150, 85, 200, 30, "Your name"}; |
| auto output2 = new Fl_Output{130, 135, 200, 30, "Message 2"}; | auto input2 = new Fl_Multiline_Input{150, 135, 200, 30, "Your e-mail address"}; |
| auto output3 = new Fl_Output{130, 185, 200, 30, "Mesasge 3"}; | auto input3 = new Fl_Multiline_Input{150, 185, 200, 100, "Message body"}; |
| | |
| output1->value("Hello, SMALL world! 入力不可"); | |
| output2->value("Hello, MEDIUM world! 入力不可"); | |
| output3->value("Hello, LARGE world! 入力不可"); | |
| | |
| window->end(); | window->end(); |
| |
| |
| ==== Fl_Multiline_Inputクラス ==== | ==== Fl_Outputクラス ==== |
| [{{ https://www.fltk.org/doc-1.4/classFl__Multiline__Input.png |Fl_Multiline_Inputクラス前後のクラス階層図 }}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Output.png |Fl_Inputクラス前後のクラス階層図}} |
| | Fl_Inputクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_multiline_input1.jpg |Fl_Multiline_Inputクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_output1.jpg |Fl_Outputクラスを使ったサンプルプログラム}}] |
| |
| <code cpp> | <code cpp> |
| #include <FL/Fl.H> | #include <FL/Fl.H> |
| #include <FL/Fl_Multiline_Input.H> | #include <FL/Fl_Output.H> |
| #include <FL/Fl_Window.H> | #include <FL/Fl_Window.H> |
| |
| int main(int argc, char **argv) { | int main(int argc, char **argv) { |
| auto window = new Fl_Window{400, 400, "Fl_Multiline_Input demo"}; | auto window = new Fl_Window{400, 300, "Fl_Output demo"}; |
| auto input1 = new Fl_Multiline_Input{150, 85, 200, 30, "Your name"}; | auto output1 = new Fl_Output{130, 85, 200, 30, "Message 1"}; |
| auto input2 = new Fl_Multiline_Input{150, 135, 200, 30, "Your e-mail address"}; | auto output2 = new Fl_Output{130, 135, 200, 30, "Message 2"}; |
| auto input3 = new Fl_Multiline_Input{150, 185, 200, 100, "Message body"}; | auto output3 = new Fl_Output{130, 185, 200, 30, "Mesasge 3"}; |
| | |
| | output1->value("Hello, SMALL world! 入力不可"); |
| | output2->value("Hello, MEDIUM world! 入力不可"); |
| | output3->value("Hello, LARGE world! 入力不可"); |
| | |
| window->end(); | window->end(); |
| |
| |
| ==== Fl_Multiline_Outputクラス ==== | === Fl_Multiline_Outputクラス === |
| [{{ https://www.fltk.org/doc-1.4/classFl__Multiline__Output.png |Fl_Multiline_Outputクラス前後のクラス階層図 }}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Multiline__Output.png |Fl_Multiline_Outputクラス前後のクラス階層図 }} |
| | Fl_Multiline_Outputクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_multiline_output1.jpg |Fl_Multiline_Outputクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_multiline_output1.jpg |Fl_Multiline_Outputクラスを使ったサンプルプログラム}}] |
| |
| ===== Fl_Text_Displayクラス ===== | ===== Fl_Text_Displayクラス ===== |
| [{{ https://www.fltk.org/doc-1.4/classFl__Text__Display.png |Fl_Text_Displayクラス前後のクラス階層図}}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Text__Display.png |Fl_Text_Displayクラス前後のクラス階層図}} |
| | Fl_Text_Displayクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_text_display1.jpg |Fl_Text_Displayクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_text_display1.jpg |Fl_Text_Displayクラスを使ったサンプルプログラム}}] |
| |
| ==== Fl_Text_Editorクラス ==== | ==== Fl_Text_Editorクラス ==== |
| [{{ https://www.fltk.org/doc-1.4/classFl__Text__Editor.png |Fl_Text_Displayクラス前後のクラス階層図}}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Text__Editor.png |Fl_Text_Displayクラス前後のクラス階層図}} |
| | Fl_Text_Displayクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_text_editor1.jpg |Fl_Text_Editorクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_text_editor1.jpg |Fl_Text_Editorクラスを使ったサンプルプログラム}}] |
| |
| ===== Fl_Help_Viewクラス ===== | ===== Fl_Help_Viewクラス ===== |
| [{{ https://www.fltk.org/doc-1.4/classFl__Help__View.png |Fl_Help_Viewクラス前後のクラス階層図}}] | <WRAP centeralign> |
| | {{ https://www.fltk.org/doc-1.4/classFl__Help__View.png |Fl_Help_Viewクラス前後のクラス階層図}} |
| | Fl_Help_Viewクラス前後のクラス階層図 |
| | </WRAP> |
| |
| [{{ :fltk:fltk_widget_demo_help_view1.jpg |Fl_Help_Viewクラスを使ったサンプルプログラム}}] | [{{ :fltk:fltk_widget_demo_help_view1.jpg |Fl_Help_Viewクラスを使ったサンプルプログラム}}] |
| |
| |
| ===== 参照 ===== | ===== リファレンス文書へのリンク ===== |
| |
| * [[https://www.fltk.org/doc-1.4/classFl__Input.html|Fl_Inputクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Input.html|Fl_Inputクラス]] |
| * [[https://www.fltk.org/doc-1.4/classFl__Output.html|Fl_Outputクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Output.html|Fl_Outputクラス]] |
| * [[https://www.fltk.org/doc-1.4/classFl__Multiline__Input.html|Fl_Multiline_Inputクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Multiline__Input.html|Fl_Multiline_Inputクラス]] |
| * [[https://www.fltk.org/doc-1.4/classFl__Multiline__Output.html|Fl_Multiline_Outputクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Multiline__Output.html|Fl_Multiline_Outputクラス]] |
| * [[https://www.fltk.org/doc-1.4/classFl__Text__Display.html|Fl_Text_Displayクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Text__Display.html|Fl_Text_Displayクラス]] |
| * [[https://www.fltk.org/doc-1.4/classFl__Text__Editor.html|Fl_Text_Editorクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Text__Editor.html|Fl_Text_Editorクラス]] |
| * [[https://www.fltk.org/doc-1.4/classFl__Help__View.html|Fl_Help_Viewクラスのリファレンス]] | * [[https://www.fltk.org/doc-1.4/classFl__Help__View.html|Fl_Help_Viewクラス]] |
| |