diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-02 11:25:03 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-02 11:25:03 +0300 |
commit | 1e548eac8c63922315f89c96436b622615c488c7 (patch) | |
tree | d2c36fdaaa0bcc42cbc34bb804de5a7201dba2b1 /src/app.h | |
parent | 8ed2faadc4ca2497fc3b2e9d2eae6d40921de918 (diff) | |
parent | e2b5ea14d25dbbb62a1e827803e67c30df79c6a1 (diff) |
Merge branch 'master' of skyjake.fi:skyjake/lagrange
Diffstat (limited to 'src/app.h')
-rw-r--r-- | src/app.h | 35 |
1 files changed, 30 insertions, 5 deletions
@@ -1,3 +1,25 @@ | |||
1 | /* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
2 | |||
3 | Redistribution and use in source and binary forms, with or without | ||
4 | modification, are permitted provided that the following conditions are met: | ||
5 | |||
6 | 1. Redistributions of source code must retain the above copyright notice, this | ||
7 | list of conditions and the following disclaimer. | ||
8 | 2. Redistributions in binary form must reproduce the above copyright notice, | ||
9 | this list of conditions and the following disclaimer in the documentation | ||
10 | and/or other materials provided with the distribution. | ||
11 | |||
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
13 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
14 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
15 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
16 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
17 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
18 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
20 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | ||
22 | |||
1 | #pragma once | 23 | #pragma once |
2 | 24 | ||
3 | /* Application core: event loop, base event processing, audio synth. */ | 25 | /* Application core: event loop, base event processing, audio synth. */ |
@@ -26,14 +48,16 @@ enum iUserEventCode { | |||
26 | const iString *execPath_App (void); | 48 | const iString *execPath_App (void); |
27 | const iString *dataDir_App (void); | 49 | const iString *dataDir_App (void); |
28 | 50 | ||
29 | int run_App (int argc, char **argv); | 51 | int run_App (int argc, char **argv); |
30 | void processEvents_App (enum iAppEventMode mode); | 52 | void processEvents_App (enum iAppEventMode mode); |
31 | iBool handleCommand_App (const char *cmd); | 53 | iBool handleCommand_App (const char *cmd); |
32 | void refresh_App (void); | 54 | void refresh_App (void); |
33 | iBool isRefreshPending_App(void); | 55 | iBool isRefreshPending_App (void); |
56 | uint32_t elapsedSinceLastTicker_App (void); /* milliseconds */ | ||
34 | 57 | ||
35 | int zoom_App (void); | 58 | int zoom_App (void); |
36 | enum iColorTheme colorTheme_App (void); | 59 | enum iColorTheme colorTheme_App (void); |
60 | const iString * schemeProxy_App (iRangecc scheme); | ||
37 | 61 | ||
38 | iGmCerts * certs_App (void); | 62 | iGmCerts * certs_App (void); |
39 | iVisited * visited_App (void); | 63 | iVisited * visited_App (void); |
@@ -53,3 +77,4 @@ iLocalDef void postCommandString_App(const iString *command) { | |||
53 | } | 77 | } |
54 | 78 | ||
55 | void openInDefaultBrowser_App (const iString *url); | 79 | void openInDefaultBrowser_App (const iString *url); |
80 | void revealPath_App (const iString *path); | ||