2018-10-06 19:29:20 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// (c) 2018 AntiCat
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// macOS framework bindings
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef UTIL_DARWIN_H__
|
|
|
|
#define UTIL_DARWIN_H__
|
|
|
|
|
|
|
|
void disableAppNap(const char* reason);
|
|
|
|
void enableAppNap();
|
2018-10-07 15:01:24 +08:00
|
|
|
void makeUnfocusable();
|
|
|
|
void makeFocusable();
|
2018-10-06 19:29:20 +08:00
|
|
|
|
|
|
|
#endif
|