1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-24 02:02:17 -05:00
Simba/Doc/sphinx/mmlref/os_linux.rst

22 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2010-06-15 13:22:00 -04:00
Linux Specific Implementation Details
=====================================
2010-06-15 11:19:35 -04:00
2010-06-22 13:10:38 -04:00
The Linux specific implementation of the IOManager is written around the Linux
X11 Windowing System. The X11 windowing system can run simultaneously to other
X11 Window Systems, and each is defined by a ``Display``.
A ``Window`` on a ``Display`` is represented as an unsigned integer.
To retreive data that is on a window, we use the XGetImage function. This
function returns an XImage which contains the raw data. Simba then returns the
pointer to this data. The image has to be freed afterwards; and this is done in
the ``FreeReturnData`` procedure. Alternatively we could copy the image data to
another place and then free the XImage, but this would result in additional
overhead.
2010-06-15 11:19:35 -04:00
2010-08-26 17:48:22 -04:00
Most mouse related functionality is implemented with XQueryPointer, XWarpPointer
and XTestFakeButtonEvent. (Requires XTest Extension)
All the keyboard functions use XTest as well. It currently lacks the
functionality to test if a key on the keyboard is down.