ooxcb¶
-
ooxcb.connect(display='', fd=None, auth_string=None, cls=<class 'ooxcb.conn.Connection'>)¶ establishes a connection to a X display.
The X display to connect to can be specified ...
- by display, an X display string. If display is an empty string, the DISPLAY environment variable will be used.
- by fd, an open unix file descriptor. auth_string is not relevant here.
cls can be used to customize the connection class. There has to be an X core protocol module loaded, otherwise an
XcbExceptionis raised.connect()returns a ready to use instance of cls.
-
ooxcb.parse_auth(authstr)¶ Parse the X11 authentication string authstr and return a new libxcb.xcb_auth_info instance.
-
ooxcb.popcount(i)¶ just a wrapper for the libxcb xcb_popcount function that determines the number of asserted bits in i.
-
ooxcb.timestamp()¶ return a cardinal timestamp. a shortcut.
-
ooxcb.type_pad(t, i)¶ calculates the needed type pad. Mostly for internal use.