From eb17d362304629c08d3d8fccec760fc291db270d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 11 Sep 2009 04:50:26 +0200 Subject: define properties for window position/size information --- src/canberra.h.in | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/src/canberra.h.in b/src/canberra.h.in index 5bf198a..47505bd 100644 --- a/src/canberra.h.in +++ b/src/canberra.h.in @@ -208,6 +208,72 @@ extern "C" { */ #define CA_PROP_WINDOW_ICON_NAME "window.icon_name" +/** + * CA_PROP_WINDOW_X: + * + * If this sound event was triggered by a window on the screen, the X + * position of the window measured from the top left corner of the + * screen to the top left corner of the window. + * + * Since: 0.17 + */ +#define CA_PROP_WINDOW_X "window.x" + +/** + * CA_PROP_WINDOW_Y: + * + * If this sound event was triggered by a window on the screen, the y + * position of the window measured from the top left corner of the + * screen to the top left corner of the window. + * + * Since: 0.17 + */ +#define CA_PROP_WINDOW_Y "window.y" + +/** + * CA_PROP_WINDOW_WIDTH: + * + * If this sound event was triggered by a window on the screen, the + * pixel width of the window. + * + * Since: 0.17 + */ +#define CA_PROP_WINDOW_WIDTH "window.width" + +/** + * CA_PROP_WINDOW_HEIGHT: + * + * If this sound event was triggered by a window on the screen, the + * pixel height of the window. + * + * Since: 0.17 + */ +#define CA_PROP_WINDOW_HEIGHT "window.height" + +/** + * CA_PROP_WINDOW_HPOS: + * + * If this sound event was triggered by a window on the screen, the X + * position of the center of the window as fractional value between 0 + * and 1, formatted as string, 0 reflecting the left side of the + * screen, 1 the right side. + * + * Since: 0.17 + */ +#define CA_PROP_WINDOW_HPOS "window.hpos" + +/** + * CA_PROP_WINDOW_VPOS: + * + * If this sound event was triggered by a window on the screen, the Y + * position of the center of the window as fractional value between 0 + * and 1, formatted as string, 0 reflecting the top side of the + * screen, 1 the bottom side. + * + * Since: 0.17 + */ +#define CA_PROP_WINDOW_VPOS "window.vpos" + /** * CA_PROP_WINDOW_X11_DISPLAY: * -- cgit