| 1 | #cxx . . $ `<file>/sys/DemoEditor.h`/ifndef _DemoEditor_h_ |
| 2 | #define _DemoEditor_h_cxx . . $ `sys/DemoEditor.h:2:9`! |
| 3 | /* DemoEditor.h |
| 4 | * |
| 5 | * Copyright (C) 2009-2011,2012,2015-2018,2020,2022,2024-2026 Paul Boersma |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 3 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | * See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "Editor.h"cxx . . $ `<file>/sys/Editor.h`/ |
| 22 | |
| 23 | Thing_definecxx . . $ autoSomeThing# (DemoEditor, Editor) { |
| 24 | GuiDrawingAreacxx . . $ GuiDrawingArea# drawingAreacxx . . $ structDemoEditor#drawingArea.; |
| 25 | autoGraphicscxx . . $ autoGraphics# graphicscxx . . $ structDemoEditor#graphics.; |
| 26 | void *praatPicturecxx . . $ structDemoEditor#praatPicture.; |
| 27 | bool clickedcxx . . $ structDemoEditor#clicked., keyPressedcxx . . $ structDemoEditor#keyPressed., shiftKeyPressedcxx . . $ structDemoEditor#shiftKeyPressed., commandKeyPressedcxx . . $ structDemoEditor#commandKeyPressed., optionKeyPressedcxx . . $ structDemoEditor#optionKeyPressed.; |
| 28 | integercxx . . $ integer# xcxx . . $ structDemoEditor#x., ycxx . . $ structDemoEditor#y.; |
| 29 | char32cxx . . $ char32# keycxx . . $ structDemoEditor#key.; |
| 30 | bool waitingForInputcxx . . $ structDemoEditor#waitingForInput., userWantsToClosecxx . . $ structDemoEditor#userWantsToClose., fullScreencxx . . $ structDemoEditor#fullScreen.; |
| 31 | Interpretercxx . . $ Interpreter# interpreterReferencecxx . . $ structDemoEditor#interpreterReference.; |
| 32 | |
| 33 | void v9_destroycxx . . $ structDemoEditor#v9_destroy(ced63f7c635d850d). () noexcept |
| 34 | override; |
| 35 | void v1_infocxx . . $ structDemoEditor#v1_info(49f6e7a06ebc5aa8). () |
| 36 | override; |
| 37 | void v_goAwaycxx . . $ structDemoEditor#v_goAway(49f6e7a06ebc5aa8). () |
| 38 | override; |
| 39 | bool v_hasMenuBarcxx . . $ structDemoEditor#v_hasMenuBar(c9857a73d68e59ba). () |
| 40 | override { return false; } |
| 41 | bool v_canFullScreencxx . . $ structDemoEditor#v_canFullScreen(c9857a73d68e59ba). () |
| 42 | override { return true; } |
| 43 | bool v_scriptablecxx . . $ structDemoEditor#v_scriptable(c9857a73d68e59ba). () |
| 44 | override { return false; } |
| 45 | void v_createChildrencxx . . $ structDemoEditor#v_createChildren(49f6e7a06ebc5aa8). () |
| 46 | override; |
| 47 | void v_createMenuscxx . . $ structDemoEditor#v_createMenus(49f6e7a06ebc5aa8). () |
| 48 | override; |
| 49 | }; |
| 50 | |
| 51 | void DemoEditor_initcxx . . $ DemoEditor_init(aaf60ee962c4898e). (DemoEditorcxx . . $ DemoEditor# me); |
| 52 | autoDemoEditorcxx . . $ autoDemoEditor# DemoEditor_createcxx . . $ DemoEditor_create(2aaf7ae1aaf2cbbb). (); |
| 53 | bool Demo_hasGraphicscxx . . $ Demo_hasGraphics(ce6516af4677a324). (Graphicscxx . . $ Graphics# graphics); |
| 54 | |
| 55 | void Demo_opencxx . . $ Demo_open(49f6e7a06ebc5aa8). (); |
| 56 | void Demo_closecxx . . $ Demo_close(49f6e7a06ebc5aa8). (); |
| 57 | struct autoDemoOpencxx . . $ autoDemoOpen# { |
| 58 | autoDemoOpencxx . . $ autoDemoOpen#autoDemoOpen(49f6e7a06ebc5aa8). () { Demo_opencxx . . $ Demo_open(49f6e7a06ebc5aa8). (); } |
| 59 | ~cxx . . $ autoDemoOpen#`~autoDemoOpen`(ced63f7c635d850d).autoDemoOpencxx . . $ autoDemoOpen# () { Demo_closecxx . . $ Demo_close(49f6e7a06ebc5aa8). (); } |
| 60 | }; |
| 61 | |
| 62 | int Demo_windowTitlecxx . . $ Demo_windowTitle(e049ab16a3067c7). (conststring32cxx . . $ conststring32# title); |
| 63 | int Demo_showcxx . . $ Demo_show(b126dc7c1de90089). (); |
| 64 | void Demo_waitForInputcxx . . $ Demo_waitForInput(448c181fe9dacca8). (Interpretercxx . . $ Interpreter# interpreter); |
| 65 | void Demo_peekInputcxx . . $ Demo_peekInput(448c181fe9dacca8). (Interpretercxx . . $ Interpreter# interpreter); |
| 66 | bool Demo_clickedcxx . . $ Demo_clicked(c9857a73d68e59ba). (); |
| 67 | double Demo_xcxx . . $ Demo_x(31fa7155c10fdd13). (); |
| 68 | double Demo_ycxx . . $ Demo_y(31fa7155c10fdd13). (); |
| 69 | bool Demo_keyPressedcxx . . $ Demo_keyPressed(c9857a73d68e59ba). (); |
| 70 | char32cxx . . $ char32# Demo_keycxx . . $ Demo_key(6dd2c6f75f2e2a2f). (); |
| 71 | bool Demo_shiftKeyPressedcxx . . $ Demo_shiftKeyPressed(c9857a73d68e59ba). (); |
| 72 | bool Demo_commandKeyPressedcxx . . $ Demo_commandKeyPressed(c9857a73d68e59ba). (); |
| 73 | bool Demo_optionKeyPressedcxx . . $ Demo_optionKeyPressed(c9857a73d68e59ba). (); |
| 74 | /* Shortcuts: */ |
| 75 | bool Demo_inputcxx . . $ Demo_input(2df281243f91fe91). (conststring32cxx . . $ conststring32# keys); |
| 76 | bool Demo_clickedIncxx . . $ Demo_clickedIn(ad3a29c0330224a3). (double left, double right, double bottom, double top); |
| 77 | void Demo_timercxx . . $ Demo_timer(ba8836b59fb42830). (double duration); |
| 78 | |
| 79 | void Demo_saveToPdfFilecxx . . $ Demo_saveToPdfFile(1145552d769d7b5d). (MelderFilecxx . . $ MelderFile# file); |
| 80 | |
| 81 | void Demo_interpreterGoesAwaycxx . . $ Demo_interpreterGoesAway(448c181fe9dacca8). (Interpretercxx . . $ Interpreter# interpreter); |
| 82 | |
| 83 | #endif // !_DemoEditor_h_ |