NotificationAreaIcon

Undocumented in source.

Constructors

this
this(string name, MemoryImage icon, void delegate(MouseButton button) onClick)
this(string name, Image icon, void delegate(MouseButton button) onClick)

Note that on Windows, only left, right, and middle buttons are sent. Mouse wheel buttons are NOT set, so don't rely on those events if your program is meant to be used on Windows too.

this
this(string name, MemoryImage icon, void delegate(int x, int y, MouseButton button, ModifierState mods) onClickEx)
this(string name, Image icon, void delegate(int x, int y, MouseButton button, ModifierState mods) onClickEx)

X-specific extension (for now at least)

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

close
void close()
getWindowRect
void getWindowRect(int x, int y, int width, int height)

X11 only. Get global window coordinates and size. This can be used to show various notifications.

hide
void hide()
show
void show()
showBalloon
void showBalloon(string title, string message, MemoryImage icon, void delegate() onclick, int timeout)

Shows a balloon notification. You can only show one balloon at a time, if you call it twice while one is already up, the first balloon will be replaced.

Properties

icon
MemoryImage icon [@property setter]
Image icon [@property setter]
onClick
void delegate(MouseButton) onClick [@property getter]
void delegate(MouseButton) onClick [@property setter]

Variables

onClickEx
void delegate(int x, int y, MouseButton button, ModifierState mods) onClickEx;

x and y are globals (relative to root window). X11 only.

onEnter
void delegate(int x, int y, ModifierState mods) onEnter;

x and y are global window coordinates. X11 only.

onLeave
void delegate() onLeave;

X11 only.

Meta