MeVisLab Toolbox Reference
|
Application related functions. More...
#include <macApplication.h>
Public Types | |
enum | { ApplicationPresentationDefault = 0 , ApplicationPresentationAutoHideDock = (1 << 0) , ApplicationPresentationHideDock = (1 << 1) , ApplicationPresentationAutoHideMenuBar = (1 << 2) , ApplicationPresentationHideMenuBar = (1 << 3) } |
The constants control the presentation of the application. More... | |
enum | ActivationPolicy { ActivationPolicyRegular , ActivationPolicyAccessory , ActivationPolicyProhibited } |
Activation policies that control whether and how an app may be activated. More... | |
enum | { ActivityIdleDisplaySleepDisabled = (1 << 0) , ActivityIdleSystemSleepDisabled = (1 << 1) , ActivityAutomaticTerminationDisabled = (1 << 2) , ActivityUserInitiated = (1 << 3) , ActivityBackground = (1 << 4) } |
Application activity options. More... | |
typedef unsigned int | PresentationOptions |
Application presentation options storage type. More... | |
typedef unsigned int | ActivityOptions |
Activity options storage type. More... | |
Static Public Member Functions | |
static void | indicateBusyState (const std::string &message=std::string()) |
Show busy state indicator, possibly displaying a descriptive message (UTF8) More... | |
static void | removeBusyStateIndicator () |
Hide busy state indicator. More... | |
static void | initializeCocoa () |
Startup function to call when running Cocoa code from a Carbon application. More... | |
static void | setPresentationOptions (PresentationOptions options) |
Sets the application presentation options to use when this application is active. Only certain combinations of “PresentationOptions” flags are supported. More... | |
static bool | setActivationPolicy (ActivationPolicy policy) |
Attempts to modify the app's activation policy. More... | |
static bool | isActive (pid_t pid=0) |
Returns a boolean value indicating whether the referenced application is currently frontmost (active) More... | |
static bool | activate (pid_t pid=0, uint32_t timeout=800) |
Activate application and bring all process windows forward, timeout allows to wait for application to connect to window server (milliseconds) More... | |
static void | enableSuddenTermination () |
Enables the application for quick killing using sudden termination of Mac OS X 10.6 or later. More... | |
static void | disableSuddenTermination () |
Disables the application for quickly killing using sudden termination of Mac OS X 10.6 or later. More... | |
static void | enableAutomaticTermination (const std::string &reason=std::string()) |
Enables automatic termination for the application of Mac OS X 10.7 or later. More... | |
static void | disableAutomaticTermination (const std::string &reason=std::string()) |
Disables automatic termination for the application of Mac OS X 10.7 or later. More... | |
static void | enableRelaunchOnLogin () |
Enables relaunching the application on login of Mac OS X 10.7 or later. More... | |
static void | disableRelaunchOnLogin () |
Disables relaunching the application on login of Mac OS X 10.7 or later. More... | |
static void | disableWindowRestoration () |
Disables the window restoration of Mac OS X 10.7 or later. More... | |
static bool | isAppearingDarkAqua () |
Returns true if effective appearance of the App is Dark Aqua (macOS 10.14 or later) More... | |
static ApplicationActivityToken | beginActivityWithOptions (ActivityOptions options, const std::string &reason=std::string()) |
Begin an activity using the given options and reason. More... | |
static void | endActivity (ApplicationActivityToken &token) |
Ends the given activity. More... | |
Application related functions.
Definition at line 31 of file macApplication.h.
typedef unsigned int macos::Application::ActivityOptions |
Activity options storage type.
Definition at line 114 of file macApplication.h.
typedef unsigned int macos::Application::PresentationOptions |
Application presentation options storage type.
Definition at line 63 of file macApplication.h.
anonymous enum |
The constants control the presentation of the application.
Definition at line 55 of file macApplication.h.
anonymous enum |
Application activity options.
Definition at line 106 of file macApplication.h.
Activation policies that control whether and how an app may be activated.
Definition at line 69 of file macApplication.h.
|
static |
Activate application and bring all process windows forward, timeout allows to wait for application to connect to window server (milliseconds)
|
static |
Begin an activity using the given options and reason.
|
static |
Disables automatic termination for the application of Mac OS X 10.7 or later.
|
static |
Disables relaunching the application on login of Mac OS X 10.7 or later.
|
static |
Disables the application for quickly killing using sudden termination of Mac OS X 10.6 or later.
|
static |
Disables the window restoration of Mac OS X 10.7 or later.
|
static |
Enables automatic termination for the application of Mac OS X 10.7 or later.
|
static |
Enables relaunching the application on login of Mac OS X 10.7 or later.
|
static |
Enables the application for quick killing using sudden termination of Mac OS X 10.6 or later.
|
static |
Ends the given activity.
|
static |
Show busy state indicator, possibly displaying a descriptive message (UTF8)
|
static |
Startup function to call when running Cocoa code from a Carbon application.
|
static |
Returns a boolean value indicating whether the referenced application is currently frontmost (active)
|
static |
Returns true if effective appearance of the App is Dark Aqua (macOS 10.14 or later)
|
static |
Hide busy state indicator.
|
static |
Attempts to modify the app's activation policy.
|
static |
Sets the application presentation options to use when this application is active. Only certain combinations of “PresentationOptions” flags are supported.