[Xcb-commit] xcb-util/icccm xcb_icccm.h,1.4,1.5

Vincent Torri xcb-commit at lists.freedesktop.org
Sun Jun 5 03:41:20 PDT 2005


Update of /cvs/xcb/xcb-util/icccm
In directory gabe:/tmp/cvs-serv20302

Modified Files:
	xcb_icccm.h 
Log Message:
add some stuff to WMHints and WMrotocol. Clean up

Index: xcb_icccm.h
===================================================================
RCS file: /cvs/xcb/xcb-util/icccm/xcb_icccm.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- xcb_icccm.h	22 May 2005 19:33:45 -0000	1.4
+++ xcb_icccm.h	5 Jun 2005 10:41:18 -0000	1.5
@@ -45,6 +45,55 @@
 
 void       FreeSizeHints          (SizeHints *hints);
 
+void       SizeHintsGetPosition (SizeHints *hints,
+				 INT32     *x,
+				 INT32     *y);
+void       SizeHintsGetSize     (SizeHints *hints,
+				 INT32     *width,
+				 INT32     *height);
+void       SizeHintsGetMinSize  (SizeHints *hints,
+				 INT32     *min_width,
+				 INT32     *min_height);
+void       SizeHintsGetMaxSize  (SizeHints *hints,
+				 INT32     *max_width,
+				 INT32     *max_height);
+void       SizeHintsGetIncrease  (SizeHints *hints,
+				  INT32     *width_inc,
+				  INT32     *height_inc);
+void       SizeHintsGetMinAspect (SizeHints *hints,
+				  INT32     *min_aspect_num, 
+				  INT32     *min_aspect_den);
+void       SizeHintsGetMaxAspect (SizeHints *hints,
+				  INT32     *max_aspect_num, 
+				  INT32     *max_aspect_den);
+void       SizeHintsGetBaseSize  (SizeHints *hints,
+				  INT32     *base_width,
+				  INT32     *base_height);
+CARD32     SizeHintsGetWinGravity (SizeHints *hints);
+
+BOOL       SizeHintsIsUSPosition  (SizeHints *hints);
+BOOL       SizeHintsIsUSSize      (SizeHints *hints);
+BOOL       SizeHintsIsPPosition   (SizeHints *hints);
+BOOL       SizeHintsIsPSize       (SizeHints *hints);
+BOOL       SizeHintsIsPMinSize    (SizeHints *hints);
+BOOL       SizeHintsIsPMaxSize    (SizeHints *hints);
+BOOL       SizeHintsIsPResizeInc  (SizeHints *hints);
+BOOL       SizeHintsIsPAspect     (SizeHints *hints);
+BOOL       SizeHintsIsPBaseSize   (SizeHints *hints);
+BOOL       SizeHintsIsPWinGravity (SizeHints *hints);
+
+void       SizeHintsSetFlagNone        (SizeHints *hints);
+void       SizeHintsSetFlagUSPosition  (SizeHints *hints);
+void       SizeHintsSetFlagUSSize      (SizeHints *hints);
+void       SizeHintsSetFlagPPosition   (SizeHints *hints);
+void       SizeHintsSetFlagPSize       (SizeHints *hints);
+void       SizeHintsSetFlagPMinSize    (SizeHints *hints);
+void       SizeHintsSetFlagPMaxSize    (SizeHints *hints);
+void       SizeHintsSetFlagPResizeInc  (SizeHints *hints);
+void       SizeHintsSetFlagPAspect     (SizeHints *hints);
+void       SizeHintsSetFlagPBaseSize   (SizeHints *hints);
+void       SizeHintsSetFlagPWinGravity (SizeHints *hints);
+
 void       SizeHintsSetPosition   (SizeHints *hints,
 				   int        user_specified,
 				   INT32      x,
@@ -105,6 +154,43 @@
 /* WM_HINTS */
 
 typedef struct WMHints WMHints;
+#define NumWMHintsElements 9 /* number of elements in this structure */
+
+typedef enum {
+    XCBWMWithdrawnState = 0,
+    XCBWMNormalState    = 1,
+    XCBWMIconicState    = 3
+} XCBWMState;
+
+BOOL      WMHintsGetInput       (WMHints *hints);
+XCBPIXMAP WMHintsGetIconPixmap  (WMHints *hints);
+XCBPIXMAP WMHintsGetIconMask    (WMHints *hints);
+XCBWINDOW WMHintsGetIconWindow  (WMHints *hints);
+XCBWINDOW WMHintsGetWindowGroup (WMHints *hints);
+
+BOOL WMHintsIsInputHint        (WMHints *hints);
+BOOL WMHintsIsStateHint        (WMHints *hints);
+BOOL WMHintsIsIconPixmapHint   (WMHints *hints);
+BOOL WMHintsIsIconWindowHint   (WMHints *hints);
+BOOL WMHintsIsIconPositionHint (WMHints *hints);
+BOOL WMHintsIsIconMaskHint     (WMHints *hints);
+BOOL WMHintsIsWindowGroupHint  (WMHints *hints);
+BOOL WMHintsIsXUrgencyHint     (WMHints *hints);
+
+BOOL WMHintsStateIsWithdrawn (WMHints *hints);
+BOOL WMHintsStateIsNormal    (WMHints *hints);
+BOOL WMHintsStateIsIconic    (WMHints *hints);
+
+void WMHintsSetInput       (WMHints *hints, BOOL input);
+void WMHintsSetIconic      (WMHints *hints);
+void WMHintsSetNormal      (WMHints *hints);
+void WMHintsSetWithdrawn   (WMHints *hints);
+void WMHintsSetNone        (WMHints *hints);
+void WMHintsSetUrgent      (WMHints *hints);
+void WMHintsSetIconPixmap  (WMHints *hints, XCBPIXMAP icon_pixmap);
+void WMHintsSetIconMask    (WMHints *hints, XCBPIXMAP icon_mask);
+void WMHintsSetIconWindow  (WMHints *hints, XCBWINDOW icon_window);
+void WMHintsSetWindowGroup (WMHints *hints, XCBWINDOW window_group);
 
 WMHints *GetWMHints (XCBConnection *c,
 		     XCBWINDOW      window);
@@ -115,6 +201,10 @@
 		     XCBWINDOW      window,
 		     CARD32         list_len,
 		     XCBATOM       *list);
+int  GetWMProtocols (XCBConnection *c,
+		     XCBWINDOW      window,
+		     CARD32        *list_len,
+		     XCBATOM      **list);
 
 #define HAS_DISCRIMINATED_NAME 0
 #if HAS_DISCRIMINATED_NAME



More information about the xcb-commit mailing list