xcffib-1.8.0: test/generator/enum.py
import xcffib
import struct
import io
from dataclasses import dataclass
_events = {}
_errors = {}
@dataclass(init=False)
class DeviceUse:
IsXPointer = 0
IsXKeyboard = 1
IsXExtensionDevice = 2
IsXExtensionKeyboard = 3
IsXExtensionPointer = 4
@dataclass(init=False)
class EventMask:
NoEvent = 0
KeyPress = 1 << 0
KeyRelease = 1 << 1
ButtonPress = 1 << 2
ButtonRelease = 1 << 3
EnterWindow = 1 << 4
LeaveWindow = 1 << 5
PointerMotion = 1 << 6
PointerMotionHint = 1 << 7
Button1Motion = 1 << 8
Button2Motion = 1 << 9
Button3Motion = 1 << 10
Button4Motion = 1 << 11
Button5Motion = 1 << 12
ButtonMotion = 1 << 13
KeymapState = 1 << 14
Exposure = 1 << 15
VisibilityChange = 1 << 16
StructureNotify = 1 << 17
ResizeRedirect = 1 << 18
SubstructureNotify = 1 << 19
SubstructureRedirect = 1 << 20
FocusChange = 1 << 21
PropertyChange = 1 << 22
ColorMapChange = 1 << 23
OwnerGrabButton = 1 << 24
xcffib._add_ext(key, enumExtension, _events, _errors)