Edit

IABSD.fr/xenocara/proto/xcb-proto/src/screensaver.xml

Branch :

  • Show log

    Commit

  • Author : matthieu
    Date : 2024-07-11 08:03:01
    Hash : 37847f9f
    Message : Update to xcb-proto 1.17.0

  • proto/xcb-proto/src/screensaver.xml
  • <!--
    
    Copyright (C) 2005 Vincent Torri.
    All Rights Reserved.
    
    Permission is hereby granted, free of charge, to any person ob/Sintaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    
    Except as contained in this notice, the names of the authors or their
    institutions shall not be used in advertising or otherwise to promote the
    sale, use or other dealings in this Software without prior written
    authorization from the authors.
    -->
    <!--
    Screen Saver Extension to the X Protocol
    Draft Standard Version 1.1
    -->
    <xcb header="screensaver" extension-xname="MIT-SCREEN-SAVER" extension-name="ScreenSaver" major-version="1" minor-version="1">
    
      <!-- Types -->
    
      <import>xproto</import>
    
      <enum name="Kind">
        <item name="Blanked">  <value>0</value> </item>
        <item name="Internal"> <value>1</value> </item>
        <item name="External"> <value>2</value> </item>
      </enum>
    
      <enum name="Event">
        <item name="NotifyMask"><bit>0</bit></item>
        <item name="CycleMask"> <bit>1</bit></item>
      </enum>
    
      <enum name="State">
        <item name="Off">      <value>0</value> </item>
        <item name="On">       <value>1</value> </item>
        <item name="Cycle">    <value>2</value> </item>
        <item name="Disabled"> <value>3</value> </item>
      </enum>
    
      <!-- Errors -->
      <!-- Requests -->
      <request name="QueryVersion" opcode="0">
        <field type="CARD8" name="client_major_version"/>
        <field type="CARD8" name="client_minor_version"/>
        <pad bytes="2"/>
        <reply>
          <pad bytes="1"/>
          <field type="CARD16" name="server_major_version"/>
          <field type="CARD16" name="server_minor_version"/>
          <pad bytes="20"/>
        </reply>
      </request>
    
      <request name="QueryInfo" opcode="1">
        <field type="DRAWABLE" name="drawable"/>
        <reply>
          <field type="CARD8" name="state"/>
          <field type="WINDOW" name="saver_window"/>
          <field type="CARD32" name="ms_until_server"/>
          <field type="CARD32" name="ms_since_user_input"/>
          <field type="CARD32" name="event_mask" />
          <field type="BYTE" name="kind" enum="Kind"/>
          <pad bytes="7"/>
        </reply>
      </request>
    
      <request name="SelectInput" opcode="2">
        <field type="DRAWABLE" name="drawable"/>
        <field type="CARD32" name="event_mask" mask="Event"/>
      </request>
    
      <request name="SetAttributes" opcode="3">
        <field type="DRAWABLE" name="drawable"/>
        <field type="INT16" name="x"/>
        <field type="INT16" name="y"/>
        <field type="CARD16" name="width"/>
        <field type="CARD16" name="height"/>
        <field type="CARD16" name="border_width"/>
        <field type="BYTE" name="class" enum="WindowClass"/>
        <field type="CARD8" name="depth"/>
        <field type="VISUALID" name="visual"/>
        <field type="CARD32" name="value_mask" mask="CW" />
        <switch name="value_list">
            <fieldref>value_mask</fieldref>
            <bitcase>
              <enumref ref="xproto:CW">BackPixmap</enumref>
              <field type="PIXMAP" name="background_pixmap" altenum="BackPixmap"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BackPixel</enumref>
              <field type="CARD32" name="background_pixel" />
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BorderPixmap</enumref>
              <field type="PIXMAP" name="border_pixmap" altenum="Pixmap"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BorderPixel</enumref>
              <field type="CARD32" name="border_pixel" />
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BitGravity</enumref>
              <field type="CARD32" name="bit_gravity" enum="Gravity"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">WinGravity</enumref>
              <field type="CARD32" name="win_gravity" enum="Gravity"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BackingStore</enumref>
              <field type="CARD32" name="backing_store" enum="BackingStore"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BackingPlanes</enumref>
              <field type="CARD32" name="backing_planes" />
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">BackingPixel</enumref>
              <field type="CARD32" name="backing_pixel" />
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">OverrideRedirect</enumref>
              <field type="BOOL32" name="override_redirect" />
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">SaveUnder</enumref>
              <field type="BOOL32" name="save_under" />
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">EventMask</enumref>
              <field type="CARD32" name="event_mask" mask="EventMask"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">DontPropagate</enumref>
              <field type="CARD32" name="do_not_propogate_mask" mask="EventMask"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">Colormap</enumref>
              <field type="COLORMAP" name="colormap" altenum="Colormap"/>
            </bitcase>
            <bitcase>
              <enumref ref="xproto:CW">Cursor</enumref>
              <field type="CURSOR" name="cursor" altenum="Cursor"/>
            </bitcase>
        </switch>
    
      </request>
    
      <request name="UnsetAttributes" opcode="4">
        <field type="DRAWABLE" name="drawable"/>
      </request>
      
      <!-- version 1.1 -->
      <request name="Suspend" opcode="5">
        <field type="CARD32" name="suspend" />
      </request>
    
      <!-- Events -->
    
      <event name="Notify" number="0">
        <field type="BYTE" name="state" enum="State"/>
        <field type="TIMESTAMP" name="time"/>
        <field type="WINDOW" name="root"/>
        <field type="WINDOW" name="window"/>
        <field type="BYTE" name="kind" enum="Kind"/>
        <field type="BOOL" name="forced"/>
        <pad bytes="14"/>
      </event>
    
    </xcb>