MeVisLab Toolbox Reference
macDockTile.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_DOCK_TILE_H
14 #define MAC_DOCK_TILE_H
15 
17 
18 #if defined(__APPLE__)
19 
21 #include <ApplicationServices/ApplicationServices.h>
22 #include <string>
23 
24 namespace macos {
25 
26  // Forward declaration
27  class DockTilePrivate;
28 
31  {
32  public:
33 
35  static void setApplicationIcon(CGImageRef img);
36 
38 
40  static void setApplicationIcon(const std::string &iconFileName);
41 
43 
45  static CGImageRef applicationIcon(unsigned int widthAndHeight = 0);
46 
48  static void addBadgeToApplicationIcon(CGImageRef img, const std::string &name);
49 
51  static void removeBadgeFromApplicationIcon(const std::string &name);
52 
55 
56  private:
57 
58  OSXSUPPORT_PRIVATE_API static DockTilePrivate *priv();
59  };
60 
61 }
62 
63 #endif // __APPLE__
64 #endif // __macDockTile_H
Dock related functions.
Definition: macDockTile.h:31
static void setApplicationIcon(const std::string &iconFileName)
Set application icon (UTF8)
static void removeAllBadgesFromApplicationIcon()
Remove all badges from application icon.
static void addBadgeToApplicationIcon(CGImageRef img, const std::string &name)
Add named badge image to application icon (UTF8)
static void setApplicationIcon(CGImageRef img)
Set application icon.
static void removeBadgeFromApplicationIcon(const std::string &name)
Remove named badge from application icon (UTF8)
static CGImageRef applicationIcon(unsigned int widthAndHeight=0)
Get application icon. widthAndHeight is a proposed value used to guide the selection of the returned ...
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
#define OSXSUPPORT_PRIVATE_API
AppleScript support.