x11.*: cosmetic fixes, breaking long lines, indenting struct slots..
parent
de8d2fa302
commit
e48e4d2484
|
@ -27,7 +27,6 @@ CONSTANT: NoSymbol 0
|
|||
! Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
|
||||
! state in various key-, mouse-, and button-related events.
|
||||
|
||||
|
||||
! modifier names. Used to build a SetModifierMapping request or
|
||||
! to read a GetModifierMapping request. These correspond to the
|
||||
! masks defined above.
|
||||
|
@ -396,7 +395,6 @@ CONSTANT: PseudoColor 3
|
|||
CONSTANT: TrueColor 4
|
||||
CONSTANT: DirectColor 5
|
||||
|
||||
|
||||
! Byte order used in imageByteOrder and bitmapBitOrder
|
||||
|
||||
CONSTANT: LSBFirst 0
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
! add to this library and are wondering what part of the file to
|
||||
! modify, just find the function or data structure in the manual
|
||||
! and note the section.
|
||||
!
|
||||
! https://www.x.org/releases/X11R7.6/doc/libX11/specs/libX11/libX11.html
|
||||
USING: accessors kernel arrays alien alien.c-types alien.data
|
||||
alien.strings alien.syntax classes.struct math math.bitwise words
|
||||
sequences namespaces continuations io io.encodings.ascii x11.syntax
|
||||
|
@ -139,8 +141,17 @@ CONSTANT: StaticGravity 10
|
|||
|
||||
! 3.3 - Creating Windows
|
||||
|
||||
X-FUNCTION: Window XCreateWindow ( Display* display, Window parent, int x, int y, uint width, uint height, uint border_width, int depth, uint class, Visual* visual, ulong valuemask, XSetWindowAttributes* attributes )
|
||||
X-FUNCTION: Window XCreateSimpleWindow ( Display* display, Window parent, int x, int y, uint width, uint height, uint border_width, ulong border, ulong background )
|
||||
X-FUNCTION: Window XCreateWindow ( Display* display,
|
||||
Window parent,
|
||||
int x, int y, uint width, uint height,
|
||||
uint border_width, int depth, uint class,
|
||||
Visual* visual, ulong valuemask,
|
||||
XSetWindowAttributes* attributes )
|
||||
X-FUNCTION: Window XCreateSimpleWindow ( Display* display,
|
||||
Window parent,
|
||||
int x, int y, uint width, uint height,
|
||||
uint border_width, ulong border,
|
||||
ulong background )
|
||||
X-FUNCTION: Status XDestroyWindow ( Display* display, Window w )
|
||||
X-FUNCTION: Status XMapWindow ( Display* display, Window window )
|
||||
X-FUNCTION: Status XMapSubwindows ( Display* display, Window window )
|
||||
|
@ -170,8 +181,11 @@ STRUCT: XWindowChanges
|
|||
{ sibling Window }
|
||||
{ stack_mode int } ;
|
||||
|
||||
X-FUNCTION: Status XConfigureWindow ( Display* display, Window w, uint value_mask, XWindowChanges* values )
|
||||
X-FUNCTION: Status XMoveWindow ( Display* display, Window w, int x, int y )
|
||||
X-FUNCTION: Status XConfigureWindow ( Display* display,
|
||||
Window w,
|
||||
uint value_mask, XWindowChanges* values )
|
||||
X-FUNCTION: Status XMoveWindow ( Display* display, Window w,
|
||||
int x, int y )
|
||||
X-FUNCTION: Status XResizeWindow ( Display* display, Window w, uint width, uint height )
|
||||
X-FUNCTION: Status XSetWindowBorderWidth ( Display* display, ulong w, uint width )
|
||||
|
||||
|
@ -183,10 +197,11 @@ X-FUNCTION: Status XLowerWindow ( Display* display, Window w )
|
|||
|
||||
! 3.9 - Changing Window Attributes
|
||||
|
||||
X-FUNCTION: Status XChangeWindowAttributes (
|
||||
Display* display, Window w, ulong valuemask, XSetWindowAttributes* attr )
|
||||
X-FUNCTION: Status XSetWindowBackground (
|
||||
Display* display, Window w, ulong background_pixel )
|
||||
X-FUNCTION: Status XChangeWindowAttributes ( Display* display,
|
||||
Window w,
|
||||
ulong valuemask, XSetWindowAttributes* attr )
|
||||
X-FUNCTION: Status XSetWindowBackground ( Display* display,
|
||||
Window w, ulong background_pixel )
|
||||
X-FUNCTION: Status XDefineCursor ( Display* display, Window w, Cursor cursor )
|
||||
X-FUNCTION: Status XUndefineCursor ( Display* display, Window w )
|
||||
|
||||
|
@ -201,7 +216,8 @@ X-FUNCTION: Status XQueryTree (
|
|||
Window w,
|
||||
Window* root_return,
|
||||
Window* parent_return,
|
||||
Window** children_return, uint* nchildren_return )
|
||||
Window** children_return, uint* nchildren_return
|
||||
)
|
||||
|
||||
STRUCT: XWindowAttributes
|
||||
{ x int }
|
||||
|
@ -243,11 +259,18 @@ X-FUNCTION: Status XGetGeometry (
|
|||
uint* width_return,
|
||||
uint* height_return,
|
||||
uint* border_width_return,
|
||||
uint* depth_return )
|
||||
uint* depth_return
|
||||
)
|
||||
|
||||
! 4.2 - Translating Screen Coordinates
|
||||
|
||||
X-FUNCTION: Bool XQueryPointer ( Display* display, Window w, Window* root_return, Window* child_return, int* root_x_return, int* root_y_return, int* win_x_return, int* win_y_return, uint* mask_return )
|
||||
X-FUNCTION: Bool XQueryPointer (
|
||||
Display* display,
|
||||
Window w,
|
||||
Window* root_return, Window* child_return,
|
||||
int* root_x_return, int* root_y_return, int* win_x_return, int* win_y_return,
|
||||
uint* mask_return
|
||||
)
|
||||
|
||||
! 4.3 - Properties and Atoms
|
||||
|
||||
|
@ -257,9 +280,19 @@ X-FUNCTION: c-string XGetAtomName ( Display* display, Atom atom )
|
|||
|
||||
! 4.4 - Obtaining and Changing Window Properties
|
||||
|
||||
X-FUNCTION: int XGetWindowProperty ( Display* display, Window w, Atom property, long long_offset, long long_length, Bool delete, Atom req_type, Atom* actual_type_return, int* actual_format_return, ulong* nitems_return, ulong* bytes_after_return, c-string* prop_return )
|
||||
X-FUNCTION: int XGetWindowProperty (
|
||||
Display* display, Window w, Atom property,
|
||||
long long_offset, long long_length,
|
||||
Bool delete, Atom req_type,
|
||||
Atom* actual_type_return, int* actual_format_return,
|
||||
ulong* nitems_return, ulong* bytes_after_return, c-string* prop_return
|
||||
)
|
||||
|
||||
X-FUNCTION: int XChangeProperty ( Display* display, Window w, Atom property, Atom type, int format, int mode, void* data, int nelements )
|
||||
X-FUNCTION: int XChangeProperty (
|
||||
Display* display, Window w, Atom property,
|
||||
Atom type, int format,
|
||||
int mode, void* data, int nelements
|
||||
)
|
||||
|
||||
! 4.5 Selections
|
||||
|
||||
|
@ -267,7 +300,10 @@ X-FUNCTION: int XSetSelectionOwner ( Display* display, Atom selection, Window ow
|
|||
|
||||
X-FUNCTION: Window XGetSelectionOwner ( Display* display, Atom selection )
|
||||
|
||||
X-FUNCTION: int XConvertSelection ( Display* display, Atom selection, Atom target, Atom property, Window requestor, Time time )
|
||||
X-FUNCTION: int XConvertSelection (
|
||||
Display* display, Atom selection, Atom target,
|
||||
Atom property, Window requestor, Time time
|
||||
)
|
||||
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
@ -297,7 +333,11 @@ STRUCT: XColor
|
|||
{ flags char }
|
||||
{ pad char } ;
|
||||
|
||||
X-FUNCTION: Status XLookupColor ( Display* display, Colormap colormap, c-string color_name, XColor* exact_def_return, XColor* screen_def_return )
|
||||
X-FUNCTION: Status XLookupColor ( Display* display,
|
||||
Colormap colormap,
|
||||
c-string color_name,
|
||||
XColor* exact_def_return,
|
||||
XColor* screen_def_return )
|
||||
X-FUNCTION: Status XAllocColor ( Display* display, Colormap colormap, XColor* screen_in_out )
|
||||
X-FUNCTION: Status XQueryColor ( Display* display, Colormap colormap, XColor* def_in_out )
|
||||
|
||||
|
@ -1115,19 +1155,35 @@ X-FUNCTION: int XGrabPointer (
|
|||
int keyboard_mode,
|
||||
Window confine_to,
|
||||
Cursor cursor,
|
||||
Time time )
|
||||
Time time
|
||||
)
|
||||
|
||||
X-FUNCTION: Status XUngrabPointer ( Display* display, Time time )
|
||||
X-FUNCTION: Status XChangeActivePointerGrab ( Display* display, uint event_mask, Cursor cursor, Time time )
|
||||
X-FUNCTION: Status XGrabKey ( Display* display, int keycode, uint modifiers, Window grab_window, Bool owner_events, int pointer_mode, int keyboard_mode )
|
||||
X-FUNCTION: int XGrabKeyboard ( Display* display, Window grab_window, Bool owner_events, int pointer_mode, int keyboard_mode, Time time )
|
||||
X-FUNCTION: Status XGrabKey (
|
||||
Display* display, int keycode, uint modifiers,
|
||||
Window grab_window, Bool owner_events,
|
||||
int pointer_mode, int keyboard_mode
|
||||
)
|
||||
X-FUNCTION: int XGrabKeyboard (
|
||||
Display* display, Window grab_window,
|
||||
Bool owner_events,
|
||||
int pointer_mode, int keyboard_mode, Time time
|
||||
)
|
||||
X-FUNCTION: Status XSetInputFocus ( Display* display, Window focus, int revert_to, Time time )
|
||||
|
||||
X-FUNCTION: Status XGetInputFocus ( Display* display,
|
||||
X-FUNCTION: Status XGetInputFocus (
|
||||
Display* display,
|
||||
Window* focus_return,
|
||||
int* revert_to_return )
|
||||
int* revert_to_return
|
||||
)
|
||||
|
||||
X-FUNCTION: Status XWarpPointer ( Display* display, Window src_w, Window dest_w, int src_x, int src_y, uint src_width, uint src_height, int dest_x, int dest_y )
|
||||
X-FUNCTION: Status XWarpPointer (
|
||||
Display* display,
|
||||
Window src_w, Window dest_w,
|
||||
int src_x, int src_y, uint src_width, uint src_height,
|
||||
int dest_x, int dest_y
|
||||
)
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
! 14 - Inter-Client Communication Functions
|
||||
|
@ -1141,10 +1197,16 @@ X-FUNCTION: Status XGetTransientForHint ( Display* display, Window w, Window* pr
|
|||
! 14.1.1. Manipulating Top-Level Windows
|
||||
|
||||
X-FUNCTION: Status XIconifyWindow (
|
||||
Display* display, Window w, int screen_number )
|
||||
Display* display,
|
||||
Window w,
|
||||
int screen_number
|
||||
)
|
||||
|
||||
X-FUNCTION: Status XWithdrawWindow (
|
||||
Display* display, Window w, int screen_number )
|
||||
Display* display,
|
||||
Window w,
|
||||
int screen_number
|
||||
)
|
||||
|
||||
! 14.1.6 - Setting and Reading the WM_HINTS Property
|
||||
|
||||
|
@ -1207,7 +1269,8 @@ X-FUNCTION: int XLookupString (
|
|||
void* buffer_return,
|
||||
int bytes_buffer,
|
||||
KeySym* keysym_return,
|
||||
XComposeStatus* status_in_out )
|
||||
XComposeStatus* status_in_out
|
||||
)
|
||||
|
||||
! 16.7 Determining the Appropriate Visual Type
|
||||
|
||||
|
@ -1251,7 +1314,8 @@ X-FUNCTION: Bool XQueryExtension (
|
|||
c-string name,
|
||||
int* major_opcode_return,
|
||||
int* first_event_return,
|
||||
int* first_error_return )
|
||||
int* first_error_return
|
||||
)
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
! Appendix D - Compatibility Functions
|
||||
|
@ -1265,7 +1329,8 @@ X-FUNCTION: Status XSetStandardProperties (
|
|||
Pixmap icon_pixmap,
|
||||
c-string* argv,
|
||||
int argc,
|
||||
XSizeHints* hints )
|
||||
XSizeHints* hints
|
||||
)
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
|
@ -1417,7 +1482,15 @@ X-FUNCTION: XIM XOpenIM ( Display* dpy, void* rdb, c-string res_name, c-string r
|
|||
|
||||
X-FUNCTION: Status XCloseIM ( XIM im )
|
||||
|
||||
X-FUNCTION: XIC XCreateIC ( XIM im, c-string key1, Window value1, c-string key2, Window value2, c-string key3, int value3, c-string key4, c-string value4, c-string key5, c-string value5, int key6 )
|
||||
X-FUNCTION: XIC XCreateIC (
|
||||
XIM im,
|
||||
c-string key1, Window value1,
|
||||
c-string key2, Window value2,
|
||||
c-string key3, int value3,
|
||||
c-string key4, c-string value4,
|
||||
c-string key5, c-string value5,
|
||||
int key6
|
||||
)
|
||||
|
||||
X-FUNCTION: void XDestroyIC ( XIC ic )
|
||||
|
||||
|
|
Loading…
Reference in New Issue