/[svn]/gigedit/trunk/src/gigedit/MacHelper.h
ViewVC logotype

Contents of /gigedit/trunk/src/gigedit/MacHelper.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3314 - (show annotations) (download) (as text)
Tue Jul 18 22:00:56 2017 UTC (6 years, 8 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1258 byte(s)
* Script Editor: Right aligned line numbers.
* Script Editor: Fixed font readability issue on Mac.
* Bumped version (1.0.0.svn59).

1 /*
2 Copyright (c) 2013 - 2017 Christian Schoenebeck
3
4 This file is part of "gigedit" and released under the terms of the
5 GNU General Public License version 2.
6 */
7
8 #ifndef GIGEDIT_MAC_HELPER
9 #define GIGEDIT_MAC_HELPER
10
11 #if defined(__cplusplus)
12 extern "C" {
13 #endif // __cplusplus
14
15 /**
16 * Run the given C callback function @a fn on the process's main thread. This
17 * function will return immediately. The callback function will be scheduled
18 * for asynchronous execution. In general this function will only succeed if
19 * if there is a CoreFoundation event loop established and running in this
20 * process, if not, the callback function will never be executed!
21 *
22 * @param fn - callback function to be executed on main thread
23 * @param info - arbitrary pointer which will be passed to the callback call
24 */
25 void macHelperRunCFuncOnMainThread(void (*fn)(void* info), void* info);
26
27 /**
28 * Calling this function ensures that the app windows really becomes visible
29 * in front of all other windows if the window is raised.
30 */
31 void macRaiseAppWindow();
32
33 /**
34 * Returns @c true if this Mac runs at least OS X 10.6 ("Snow Leopard") or
35 * higher.
36 */
37 bool macIsMinMac10_6();
38
39 #if defined(__cplusplus)
40 }
41 #endif // __cplusplus
42
43 #endif // GIGEDIT_MAC_HELPER

  ViewVC Help
Powered by ViewVC