xinerama.h

00001 /*
00002  * This file generated automatically from xinerama.xml by c-client.xsl using XSLT.
00003  * Edit at your peril.
00004  */
00005 
00012 #ifndef __XINERAMA_H
00013 #define __XINERAMA_H
00014 
00015 #include "xcb.h"
00016 #include "xproto.h"
00017 
00018 #define XCB_XINERAMA_MAJOR_VERSION 1
00019 #define XCB_XINERAMA_MINOR_VERSION 1
00020   
00021 extern xcb_extension_t xcb_xinerama_id;
00022 
00026 typedef struct xcb_xinerama_screen_info_t {
00027     int16_t  x_org; 
00028     int16_t  y_org; 
00029     uint16_t width; 
00030     uint16_t height; 
00031 } xcb_xinerama_screen_info_t;
00032 
00036 typedef struct xcb_xinerama_screen_info_iterator_t {
00037     xcb_xinerama_screen_info_t *data; 
00038     int                         rem; 
00039     int                         index; 
00040 } xcb_xinerama_screen_info_iterator_t;
00041 
00045 typedef struct xcb_xinerama_query_version_cookie_t {
00046     unsigned int sequence; 
00047 } xcb_xinerama_query_version_cookie_t;
00048 
00050 #define XCB_XINERAMA_QUERY_VERSION 0
00051 
00055 typedef struct xcb_xinerama_query_version_request_t {
00056     uint8_t  major_opcode; 
00057     uint8_t  minor_opcode; 
00058     uint16_t length; 
00059     uint8_t  major; 
00060     uint8_t  minor; 
00061 } xcb_xinerama_query_version_request_t;
00062 
00066 typedef struct xcb_xinerama_query_version_reply_t {
00067     uint8_t  response_type; 
00068     uint8_t  pad0; 
00069     uint16_t sequence; 
00070     uint32_t length; 
00071     uint16_t major; 
00072     uint16_t minor; 
00073 } xcb_xinerama_query_version_reply_t;
00074 
00078 typedef struct xcb_xinerama_get_state_cookie_t {
00079     unsigned int sequence; 
00080 } xcb_xinerama_get_state_cookie_t;
00081 
00083 #define XCB_XINERAMA_GET_STATE 1
00084 
00088 typedef struct xcb_xinerama_get_state_request_t {
00089     uint8_t      major_opcode; 
00090     uint8_t      minor_opcode; 
00091     uint16_t     length; 
00092     xcb_window_t window; 
00093 } xcb_xinerama_get_state_request_t;
00094 
00098 typedef struct xcb_xinerama_get_state_reply_t {
00099     uint8_t      response_type; 
00100     uint8_t      state; 
00101     uint16_t     sequence; 
00102     uint32_t     length; 
00103     xcb_window_t window; 
00104 } xcb_xinerama_get_state_reply_t;
00105 
00109 typedef struct xcb_xinerama_get_screen_count_cookie_t {
00110     unsigned int sequence; 
00111 } xcb_xinerama_get_screen_count_cookie_t;
00112 
00114 #define XCB_XINERAMA_GET_SCREEN_COUNT 2
00115 
00119 typedef struct xcb_xinerama_get_screen_count_request_t {
00120     uint8_t      major_opcode; 
00121     uint8_t      minor_opcode; 
00122     uint16_t     length; 
00123     xcb_window_t window; 
00124 } xcb_xinerama_get_screen_count_request_t;
00125 
00129 typedef struct xcb_xinerama_get_screen_count_reply_t {
00130     uint8_t      response_type; 
00131     uint8_t      screen_count; 
00132     uint16_t     sequence; 
00133     uint32_t     length; 
00134     xcb_window_t window; 
00135 } xcb_xinerama_get_screen_count_reply_t;
00136 
00140 typedef struct xcb_xinerama_get_screen_size_cookie_t {
00141     unsigned int sequence; 
00142 } xcb_xinerama_get_screen_size_cookie_t;
00143 
00145 #define XCB_XINERAMA_GET_SCREEN_SIZE 3
00146 
00150 typedef struct xcb_xinerama_get_screen_size_request_t {
00151     uint8_t      major_opcode; 
00152     uint8_t      minor_opcode; 
00153     uint16_t     length; 
00154     xcb_window_t window; 
00155     xcb_screen_t screen; 
00156 } xcb_xinerama_get_screen_size_request_t;
00157 
00161 typedef struct xcb_xinerama_get_screen_size_reply_t {
00162     uint8_t      response_type; 
00163     uint8_t      pad0; 
00164     uint16_t     sequence; 
00165     uint32_t     length; 
00166     uint32_t     width; 
00167     uint32_t     height; 
00168     xcb_window_t window; 
00169     xcb_screen_t screen; 
00170 } xcb_xinerama_get_screen_size_reply_t;
00171 
00175 typedef struct xcb_xinerama_is_active_cookie_t {
00176     unsigned int sequence; 
00177 } xcb_xinerama_is_active_cookie_t;
00178 
00180 #define XCB_XINERAMA_IS_ACTIVE 4
00181 
00185 typedef struct xcb_xinerama_is_active_request_t {
00186     uint8_t  major_opcode; 
00187     uint8_t  minor_opcode; 
00188     uint16_t length; 
00189 } xcb_xinerama_is_active_request_t;
00190 
00194 typedef struct xcb_xinerama_is_active_reply_t {
00195     uint8_t  response_type; 
00196     uint8_t  pad0; 
00197     uint16_t sequence; 
00198     uint32_t length; 
00199     uint32_t state; 
00200 } xcb_xinerama_is_active_reply_t;
00201 
00205 typedef struct xcb_xinerama_query_screens_cookie_t {
00206     unsigned int sequence; 
00207 } xcb_xinerama_query_screens_cookie_t;
00208 
00210 #define XCB_XINERAMA_QUERY_SCREENS 5
00211 
00215 typedef struct xcb_xinerama_query_screens_request_t {
00216     uint8_t  major_opcode; 
00217     uint8_t  minor_opcode; 
00218     uint16_t length; 
00219 } xcb_xinerama_query_screens_request_t;
00220 
00224 typedef struct xcb_xinerama_query_screens_reply_t {
00225     uint8_t  response_type; 
00226     uint8_t  pad0; 
00227     uint16_t sequence; 
00228     uint32_t length; 
00229     uint32_t number; 
00230     uint8_t  pad1[20]; 
00231 } xcb_xinerama_query_screens_reply_t;
00232 
00242 /*****************************************************************************
00243  **
00244  ** void xcb_xinerama_screen_info_next
00245  ** 
00246  ** @param xcb_xinerama_screen_info_iterator_t *i
00247  ** @returns void
00248  **
00249  *****************************************************************************/
00250  
00251 void
00252 xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i  );
00253 
00264 /*****************************************************************************
00265  **
00266  ** xcb_generic_iterator_t xcb_xinerama_screen_info_end
00267  ** 
00268  ** @param xcb_xinerama_screen_info_iterator_t i
00269  ** @returns xcb_generic_iterator_t
00270  **
00271  *****************************************************************************/
00272  
00273 xcb_generic_iterator_t
00274 xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i  );
00275 
00285 /*****************************************************************************
00286  **
00287  ** xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version
00288  ** 
00289  ** @param xcb_connection_t *c
00290  ** @param uint8_t           major
00291  ** @param uint8_t           minor
00292  ** @returns xcb_xinerama_query_version_cookie_t
00293  **
00294  *****************************************************************************/
00295  
00296 xcb_xinerama_query_version_cookie_t
00297 xcb_xinerama_query_version (xcb_connection_t *c  ,
00298                             uint8_t           major  ,
00299                             uint8_t           minor  );
00300 
00313 /*****************************************************************************
00314  **
00315  ** xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version_unchecked
00316  ** 
00317  ** @param xcb_connection_t *c
00318  ** @param uint8_t           major
00319  ** @param uint8_t           minor
00320  ** @returns xcb_xinerama_query_version_cookie_t
00321  **
00322  *****************************************************************************/
00323  
00324 xcb_xinerama_query_version_cookie_t
00325 xcb_xinerama_query_version_unchecked (xcb_connection_t *c  ,
00326                                       uint8_t           major  ,
00327                                       uint8_t           minor  );
00328 
00342 /*****************************************************************************
00343  **
00344  ** xcb_xinerama_query_version_reply_t * xcb_xinerama_query_version_reply
00345  ** 
00346  ** @param xcb_connection_t                     *c
00347  ** @param xcb_xinerama_query_version_cookie_t   cookie
00348  ** @param xcb_generic_error_t                 **e
00349  ** @returns xcb_xinerama_query_version_reply_t *
00350  **
00351  *****************************************************************************/
00352  
00353 xcb_xinerama_query_version_reply_t *
00354 xcb_xinerama_query_version_reply (xcb_connection_t                     *c  ,
00355                                   xcb_xinerama_query_version_cookie_t   cookie  ,
00356                                   xcb_generic_error_t                 **e  );
00357 
00367 /*****************************************************************************
00368  **
00369  ** xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state
00370  ** 
00371  ** @param xcb_connection_t *c
00372  ** @param xcb_window_t      window
00373  ** @returns xcb_xinerama_get_state_cookie_t
00374  **
00375  *****************************************************************************/
00376  
00377 xcb_xinerama_get_state_cookie_t
00378 xcb_xinerama_get_state (xcb_connection_t *c  ,
00379                         xcb_window_t      window  );
00380 
00393 /*****************************************************************************
00394  **
00395  ** xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state_unchecked
00396  ** 
00397  ** @param xcb_connection_t *c
00398  ** @param xcb_window_t      window
00399  ** @returns xcb_xinerama_get_state_cookie_t
00400  **
00401  *****************************************************************************/
00402  
00403 xcb_xinerama_get_state_cookie_t
00404 xcb_xinerama_get_state_unchecked (xcb_connection_t *c  ,
00405                                   xcb_window_t      window  );
00406 
00420 /*****************************************************************************
00421  **
00422  ** xcb_xinerama_get_state_reply_t * xcb_xinerama_get_state_reply
00423  ** 
00424  ** @param xcb_connection_t                 *c
00425  ** @param xcb_xinerama_get_state_cookie_t   cookie
00426  ** @param xcb_generic_error_t             **e
00427  ** @returns xcb_xinerama_get_state_reply_t *
00428  **
00429  *****************************************************************************/
00430  
00431 xcb_xinerama_get_state_reply_t *
00432 xcb_xinerama_get_state_reply (xcb_connection_t                 *c  ,
00433                               xcb_xinerama_get_state_cookie_t   cookie  ,
00434                               xcb_generic_error_t             **e  );
00435 
00445 /*****************************************************************************
00446  **
00447  ** xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count
00448  ** 
00449  ** @param xcb_connection_t *c
00450  ** @param xcb_window_t      window
00451  ** @returns xcb_xinerama_get_screen_count_cookie_t
00452  **
00453  *****************************************************************************/
00454  
00455 xcb_xinerama_get_screen_count_cookie_t
00456 xcb_xinerama_get_screen_count (xcb_connection_t *c  ,
00457                                xcb_window_t      window  );
00458 
00471 /*****************************************************************************
00472  **
00473  ** xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count_unchecked
00474  ** 
00475  ** @param xcb_connection_t *c
00476  ** @param xcb_window_t      window
00477  ** @returns xcb_xinerama_get_screen_count_cookie_t
00478  **
00479  *****************************************************************************/
00480  
00481 xcb_xinerama_get_screen_count_cookie_t
00482 xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c  ,
00483                                          xcb_window_t      window  );
00484 
00498 /*****************************************************************************
00499  **
00500  ** xcb_xinerama_get_screen_count_reply_t * xcb_xinerama_get_screen_count_reply
00501  ** 
00502  ** @param xcb_connection_t                        *c
00503  ** @param xcb_xinerama_get_screen_count_cookie_t   cookie
00504  ** @param xcb_generic_error_t                    **e
00505  ** @returns xcb_xinerama_get_screen_count_reply_t *
00506  **
00507  *****************************************************************************/
00508  
00509 xcb_xinerama_get_screen_count_reply_t *
00510 xcb_xinerama_get_screen_count_reply (xcb_connection_t                        *c  ,
00511                                      xcb_xinerama_get_screen_count_cookie_t   cookie  ,
00512                                      xcb_generic_error_t                    **e  );
00513 
00523 /*****************************************************************************
00524  **
00525  ** xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size
00526  ** 
00527  ** @param xcb_connection_t *c
00528  ** @param xcb_window_t      window
00529  ** @param xcb_screen_t      screen
00530  ** @returns xcb_xinerama_get_screen_size_cookie_t
00531  **
00532  *****************************************************************************/
00533  
00534 xcb_xinerama_get_screen_size_cookie_t
00535 xcb_xinerama_get_screen_size (xcb_connection_t *c  ,
00536                               xcb_window_t      window  ,
00537                               xcb_screen_t      screen  );
00538 
00551 /*****************************************************************************
00552  **
00553  ** xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size_unchecked
00554  ** 
00555  ** @param xcb_connection_t *c
00556  ** @param xcb_window_t      window
00557  ** @param xcb_screen_t      screen
00558  ** @returns xcb_xinerama_get_screen_size_cookie_t
00559  **
00560  *****************************************************************************/
00561  
00562 xcb_xinerama_get_screen_size_cookie_t
00563 xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c  ,
00564                                         xcb_window_t      window  ,
00565                                         xcb_screen_t      screen  );
00566 
00580 /*****************************************************************************
00581  **
00582  ** xcb_xinerama_get_screen_size_reply_t * xcb_xinerama_get_screen_size_reply
00583  ** 
00584  ** @param xcb_connection_t                       *c
00585  ** @param xcb_xinerama_get_screen_size_cookie_t   cookie
00586  ** @param xcb_generic_error_t                   **e
00587  ** @returns xcb_xinerama_get_screen_size_reply_t *
00588  **
00589  *****************************************************************************/
00590  
00591 xcb_xinerama_get_screen_size_reply_t *
00592 xcb_xinerama_get_screen_size_reply (xcb_connection_t                       *c  ,
00593                                     xcb_xinerama_get_screen_size_cookie_t   cookie  ,
00594                                     xcb_generic_error_t                   **e  );
00595 
00605 /*****************************************************************************
00606  **
00607  ** xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active
00608  ** 
00609  ** @param xcb_connection_t *c
00610  ** @returns xcb_xinerama_is_active_cookie_t
00611  **
00612  *****************************************************************************/
00613  
00614 xcb_xinerama_is_active_cookie_t
00615 xcb_xinerama_is_active (xcb_connection_t *c  );
00616 
00629 /*****************************************************************************
00630  **
00631  ** xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active_unchecked
00632  ** 
00633  ** @param xcb_connection_t *c
00634  ** @returns xcb_xinerama_is_active_cookie_t
00635  **
00636  *****************************************************************************/
00637  
00638 xcb_xinerama_is_active_cookie_t
00639 xcb_xinerama_is_active_unchecked (xcb_connection_t *c  );
00640 
00654 /*****************************************************************************
00655  **
00656  ** xcb_xinerama_is_active_reply_t * xcb_xinerama_is_active_reply
00657  ** 
00658  ** @param xcb_connection_t                 *c
00659  ** @param xcb_xinerama_is_active_cookie_t   cookie
00660  ** @param xcb_generic_error_t             **e
00661  ** @returns xcb_xinerama_is_active_reply_t *
00662  **
00663  *****************************************************************************/
00664  
00665 xcb_xinerama_is_active_reply_t *
00666 xcb_xinerama_is_active_reply (xcb_connection_t                 *c  ,
00667                               xcb_xinerama_is_active_cookie_t   cookie  ,
00668                               xcb_generic_error_t             **e  );
00669 
00679 /*****************************************************************************
00680  **
00681  ** xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens
00682  ** 
00683  ** @param xcb_connection_t *c
00684  ** @returns xcb_xinerama_query_screens_cookie_t
00685  **
00686  *****************************************************************************/
00687  
00688 xcb_xinerama_query_screens_cookie_t
00689 xcb_xinerama_query_screens (xcb_connection_t *c  );
00690 
00703 /*****************************************************************************
00704  **
00705  ** xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens_unchecked
00706  ** 
00707  ** @param xcb_connection_t *c
00708  ** @returns xcb_xinerama_query_screens_cookie_t
00709  **
00710  *****************************************************************************/
00711  
00712 xcb_xinerama_query_screens_cookie_t
00713 xcb_xinerama_query_screens_unchecked (xcb_connection_t *c  );
00714 
00715 
00716 /*****************************************************************************
00717  **
00718  ** xcb_xinerama_screen_info_t * xcb_xinerama_query_screens_screen_info
00719  ** 
00720  ** @param const xcb_xinerama_query_screens_reply_t *R
00721  ** @returns xcb_xinerama_screen_info_t *
00722  **
00723  *****************************************************************************/
00724  
00725 xcb_xinerama_screen_info_t *
00726 xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R  );
00727 
00728 
00729 /*****************************************************************************
00730  **
00731  ** int xcb_xinerama_query_screens_screen_info_length
00732  ** 
00733  ** @param const xcb_xinerama_query_screens_reply_t *R
00734  ** @returns int
00735  **
00736  *****************************************************************************/
00737  
00738 int
00739 xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R  );
00740 
00741 
00742 /*****************************************************************************
00743  **
00744  ** xcb_xinerama_screen_info_iterator_t xcb_xinerama_query_screens_screen_info_iterator
00745  ** 
00746  ** @param const xcb_xinerama_query_screens_reply_t *R
00747  ** @returns xcb_xinerama_screen_info_iterator_t
00748  **
00749  *****************************************************************************/
00750  
00751 xcb_xinerama_screen_info_iterator_t
00752 xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R  );
00753 
00767 /*****************************************************************************
00768  **
00769  ** xcb_xinerama_query_screens_reply_t * xcb_xinerama_query_screens_reply
00770  ** 
00771  ** @param xcb_connection_t                     *c
00772  ** @param xcb_xinerama_query_screens_cookie_t   cookie
00773  ** @param xcb_generic_error_t                 **e
00774  ** @returns xcb_xinerama_query_screens_reply_t *
00775  **
00776  *****************************************************************************/
00777  
00778 xcb_xinerama_query_screens_reply_t *
00779 xcb_xinerama_query_screens_reply (xcb_connection_t                     *c  ,
00780                                   xcb_xinerama_query_screens_cookie_t   cookie  ,
00781                                   xcb_generic_error_t                 **e  );
00782 
00783 
00784 #endif
00785 

Generated on Wed Jun 30 19:14:12 2010 for XCB by  doxygen 1.4.7