MeVisLab Toolbox Reference
macos::DockTile Class Reference

Dock related functions. More...

#include <macDockTile.h>

Static Public Member Functions

static void setApplicationIcon (CGImageRef img)
 Set application icon. More...
 
static void setApplicationIcon (const std::string &iconFileName)
 Set application icon (UTF8) More...
 
static CGImageRef applicationIcon (unsigned int widthAndHeight=0)
 Get application icon. widthAndHeight is a proposed value used to guide the selection of the returned CGImage. More...
 
static void addBadgeToApplicationIcon (CGImageRef img, const std::string &name)
 Add named badge image to application icon (UTF8) More...
 
static void removeBadgeFromApplicationIcon (const std::string &name)
 Remove named badge from application icon (UTF8) More...
 
static void removeAllBadgesFromApplicationIcon ()
 Remove all badges from application icon. More...
 

Detailed Description

Dock related functions.

Definition at line 30 of file macDockTile.h.

Member Function Documentation

◆ addBadgeToApplicationIcon()

static void macos::DockTile::addBadgeToApplicationIcon ( CGImageRef  img,
const std::string &  name 
)
static

Add named badge image to application icon (UTF8)

◆ applicationIcon()

static CGImageRef macos::DockTile::applicationIcon ( unsigned int  widthAndHeight = 0)
static

Get application icon. widthAndHeight is a proposed value used to guide the selection of the returned CGImage.

There's nothing guaranteed about the characteristics of the returned CGImage

◆ removeAllBadgesFromApplicationIcon()

static void macos::DockTile::removeAllBadgesFromApplicationIcon ( )
static

Remove all badges from application icon.

◆ removeBadgeFromApplicationIcon()

static void macos::DockTile::removeBadgeFromApplicationIcon ( const std::string &  name)
static

Remove named badge from application icon (UTF8)

◆ setApplicationIcon() [1/2]

static void macos::DockTile::setApplicationIcon ( CGImageRef  img)
static

Set application icon.

◆ setApplicationIcon() [2/2]

static void macos::DockTile::setApplicationIcon ( const std::string &  iconFileName)
static

Set application icon (UTF8)

The icon is looked up in the application bundle's resources folder


The documentation for this class was generated from the following file: