]> Dogcows Code - chaz/openbox/blob - openbox/popup.h
prefixing and capitalizing the StackLayer -> ObStackingLayer enum.
[chaz/openbox] / openbox / popup.h
1 #ifndef __popup_h
2 #define __popup_h
3
4 #include <glib.h>
5
6 struct _ObClientIcon;
7
8 typedef struct _ObPopup Popup;
9
10 Popup *popup_new(gboolean hasicon);
11 void popup_free(Popup *self);
12
13 /*! Position the popup. The gravity rules are not the same X uses for windows,
14 instead of the position being the top-left of the window, the gravity
15 specifies which corner of the popup will be placed at the given coords.
16 Static and Forget gravity are equivilent to NorthWest.
17 */
18 void popup_position(Popup *self, gint gravity, gint x, gint y);
19 /*! Set the sizes for the popup. When set to 0, the size will be based on
20 the text size. */
21 void popup_size(Popup *self, gint w, gint h);
22 void popup_size_to_string(Popup *self, gchar *text);
23
24 void popup_show(Popup *self, gchar *text, struct _ObClientIcon *icon);
25 void popup_hide(Popup *self);
26
27 #endif
This page took 0.036516 seconds and 5 git commands to generate.