"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.09.0-win64/inc/X11/extensions/agproto.bi" (1 Jan 2022, 4210 Bytes) of package /windows/misc/FreeBASIC-1.09.0-win64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' FreeBASIC binding for xextproto-7.3.0
    2 ''
    3 '' based on the C header files:
    4 ''   Copyright 1996, 1998, 2001  The Open Group
    5 ''
    6 ''   Permission to use, copy, modify, distribute, and sell this software and its
    7 ''   documentation for any purpose is hereby granted without fee, provided that
    8 ''   the above copyright notice appear in all copies and that both that
    9 ''   copyright notice and this permission notice appear in supporting
   10 ''   documentation.
   11 ''
   12 ''   The above copyright notice and this permission notice shall be included
   13 ''   in all copies or substantial portions of the Software.
   14 ''
   15 ''   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
   16 ''   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   17 ''   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   18 ''   IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
   19 ''   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
   20 ''   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   21 ''   OTHER DEALINGS IN THE SOFTWARE.
   22 ''
   23 ''   Except as contained in this notice, the name of The Open Group shall
   24 ''   not be used in advertising or otherwise to promote the sale, use or
   25 ''   other dealings in this Software without prior written authorization
   26 ''   from The Open Group.
   27 ''
   28 '' translated to FreeBASIC by:
   29 ''   Copyright © 2015 FreeBASIC development team
   30 
   31 #pragma once
   32 
   33 #include once "X11/extensions/ag.bi"
   34 #include once "X11/Xmd.bi"
   35 
   36 #define _AGPROTO_H_
   37 const X_XagQueryVersion = 0
   38 const X_XagCreate = 1
   39 const X_XagDestroy = 2
   40 const X_XagGetAttr = 3
   41 const X_XagQuery = 4
   42 const X_XagCreateAssoc = 5
   43 const X_XagDestroyAssoc = 6
   44 
   45 type _XagQueryVersion
   46     reqType as CARD8
   47     xagReqType as CARD8
   48     length as CARD16
   49     client_major_version as CARD16
   50     client_minor_version as CARD16
   51 end type
   52 
   53 type xXagQueryVersionReq as _XagQueryVersion
   54 const sz_xXagQueryVersionReq = 8
   55 
   56 type xXagQueryVersionReply
   57     as UBYTE type
   58     pad1 as XBOOL
   59     sequence_number as CARD16
   60     length as CARD32
   61     server_major_version as CARD16
   62     server_minor_version as CARD16
   63     pad2 as CARD32
   64     pad3 as CARD32
   65     pad4 as CARD32
   66     pad5 as CARD32
   67     pad6 as CARD32
   68 end type
   69 
   70 const sz_xXagQueryVersionReply = 32
   71 const XagSingleScreenMask = 1 shl 0
   72 const XagDefaultRootMask = 1 shl XagNdefaultRoot
   73 const XagRootVisualMask = 1 shl XagNrootVisual
   74 const XagDefaultColormapMask = 1 shl XagNdefaultColormap
   75 const XagBlackPixelMask = 1 shl XagNblackPixel
   76 const XagWhitePixelMask = 1 shl XagNwhitePixel
   77 const XagAppGroupLeaderMask = 1 shl XagNappGroupLeader
   78 
   79 type _XagCreate
   80     reqType as CARD8
   81     xagReqType as CARD8
   82     length as CARD16
   83     app_group as CARD32
   84     attrib_mask as CARD32
   85 end type
   86 
   87 type xXagCreateReq as _XagCreate
   88 const sz_xXagCreateReq = 12
   89 
   90 type _XagDestroy
   91     reqType as CARD8
   92     xagReqType as CARD8
   93     length as CARD16
   94     app_group as CARD32
   95 end type
   96 
   97 type xXagDestroyReq as _XagDestroy
   98 const sz_xXagDestroyReq = 8
   99 
  100 type _XagGetAttr
  101     reqType as CARD8
  102     xagReqType as CARD8
  103     length as CARD16
  104     app_group as CARD32
  105 end type
  106 
  107 type xXagGetAttrReq as _XagGetAttr
  108 const sz_xXagGetAttrReq = 8
  109 
  110 type xXagGetAttrReply
  111     as UBYTE type
  112     pad1 as XBOOL
  113     sequence_number as CARD16
  114     length as CARD32
  115     default_root as CARD32
  116     root_visual as CARD32
  117     default_colormap as CARD32
  118     black_pixel as CARD32
  119     white_pixel as CARD32
  120     single_screen as XBOOL
  121     app_group_leader as XBOOL
  122     pad2 as CARD16
  123 end type
  124 
  125 const sz_xXagGetAttrReply = 32
  126 
  127 type _XagQuery
  128     reqType as CARD8
  129     xagReqType as CARD8
  130     length as CARD16
  131     resource as CARD32
  132 end type
  133 
  134 type xXagQueryReq as _XagQuery
  135 const sz_xXagQueryReq = 8
  136 
  137 type xXagQueryReply
  138     as UBYTE type
  139     pad1 as XBOOL
  140     sequence_number as CARD16
  141     length as CARD32
  142     app_group as CARD32
  143     pad2 as CARD32
  144     pad3 as CARD32
  145     pad4 as CARD32
  146     pad5 as CARD32
  147     pad6 as CARD32
  148 end type
  149 
  150 const sz_xXagQueryReply = 32
  151 
  152 type _XagCreateAssoc
  153     reqType as CARD8
  154     xagReqType as CARD8
  155     length as CARD16
  156     window as CARD32
  157     window_type as CARD16
  158     system_window_len as CARD16
  159 end type
  160 
  161 type xXagCreateAssocReq as _XagCreateAssoc
  162 const sz_xXagCreateAssocReq = 12
  163 
  164 type _XagDestroyAssoc
  165     reqType as CARD8
  166     xagReqType as CARD8
  167     length as CARD16
  168     window as CARD32
  169 end type
  170 
  171 type xXagDestroyAssocReq as _XagDestroyAssoc
  172 const sz_xXagDestroyAssocReq = 8