removed some duplication
parent
ac7a2e0c7d
commit
c52cffea19
|
@ -538,145 +538,3 @@ FUNCTION: KeySym XLookupKeysym ( XKeyEvent* key_event, int index ) ;
|
||||||
FUNCTION: char* XGetAtomName ( Display* display, Atom atom ) ;
|
FUNCTION: char* XGetAtomName ( Display* display, Atom atom ) ;
|
||||||
FUNCTION: Status XSetWMProtocols ( Display* display, Window w, Atom* protocols, int count ) ;
|
FUNCTION: Status XSetWMProtocols ( Display* display, Window w, Atom* protocols, int count ) ;
|
||||||
|
|
||||||
! dharmatech's stuff
|
|
||||||
|
|
||||||
! The most popular guides to programming the X Window System are the
|
|
||||||
! series from Oreilly. For programming with Xlib, there is the
|
|
||||||
! reference manual and the programmers guide. However, a lesser known
|
|
||||||
! manual is the free Xlib manual that comes with the MIT X
|
|
||||||
! distribution. The arrangement and order of these bindings follows
|
|
||||||
! the structure of the free Xlib manual. If you 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.
|
|
||||||
|
|
||||||
!
|
|
||||||
! 2 - Display Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Display* XOpenDisplay ( char* display_name ) ;
|
|
||||||
|
|
||||||
! 2.2 Obtaining Information about the Display, Image Formats, or Screens
|
|
||||||
|
|
||||||
FUNCTION: ulong XBlackPixel ( Display* display, int screen_number ) ;
|
|
||||||
FUNCTION: ulong XWhitePixel ( Display* display, int screen_number ) ;
|
|
||||||
FUNCTION: Colormap XDefaultColormap ( Display* display, int screen_number ) ;
|
|
||||||
FUNCTION: int XDefaultDepth ( Display* display, int screen_number ) ;
|
|
||||||
FUNCTION: GC XDefaultGC ( Display* display, int screen_number ) ;
|
|
||||||
FUNCTION: int XDefaultScreen ( Display* display ) ;
|
|
||||||
FUNCTION: Window XRootWindow ( Display* display, int screen_number ) ;
|
|
||||||
FUNCTION: Window XDefaultRootWindow ( Display* display ) ;
|
|
||||||
FUNCTION: int XProtocolVersion ( Display* display ) ;
|
|
||||||
FUNCTION: int XProtocolRevision ( Display* display ) ;
|
|
||||||
FUNCTION: int XQLength ( Display* display ) ;
|
|
||||||
FUNCTION: int XScreenCount ( Display* display ) ;
|
|
||||||
FUNCTION: int XConnectionNumber ( Display* display ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 3 - Window Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Window XCreateSimpleWindow ( Display* display, Window parent, int x, int y, uint width, uint height, uint border_width, ulong border, ulong background ) ;
|
|
||||||
FUNCTION: Status XDestroyWindow ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XMapWindow ( Display* display, Window window ) ;
|
|
||||||
FUNCTION: Status XMapSubwindows ( Display* display, Window window ) ;
|
|
||||||
FUNCTION: Status XUnmapWindow ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XUnmapSubwindows ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XConfigureWindow ( Display* display, Window w, uint value_mask, XWindowChanges* values ) ;
|
|
||||||
FUNCTION: Status XMoveWindow ( Display* display, Window w, int x, int y ) ;
|
|
||||||
FUNCTION: Status XResizeWindow ( Display* display, Window w, uint width, uint height ) ;
|
|
||||||
FUNCTION: Status XSetWindowBorderWidth ( Display* display, ulong w, uint width ) ;
|
|
||||||
FUNCTION: Status XRaiseWindow ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XLowerWindow ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XChangeWindowAttributes ( Display* display, Window w, ulong valuemask, XSetWindowAttributes* attr ) ;
|
|
||||||
FUNCTION: Status XSetWindowBackground ( Display* display, Window w, ulong background_pixel ) ;
|
|
||||||
FUNCTION: Status XDefineCursor ( Display* display, Window w, Cursor cursor ) ;
|
|
||||||
FUNCTION: Status XUndefineCursor ( Display* display, Window w ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 4 - Window Information Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Status XQueryTree ( Display* display, Window w, Window* root_return, Window* parent_return, Window** children_return, uint* nchildren_return ) ;
|
|
||||||
FUNCTION: Status XGetWindowAttributes ( Display* display, Window w, XWindowAttributes* attr ) ;
|
|
||||||
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 ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 6 - Color Management Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Status XLookupColor ( Display* display, Colormap colormap, char* color_name, XColor* exact_def_return, XColor* screen_def_return ) ;
|
|
||||||
FUNCTION: Status XAllocColor ( Display* display, Colormap colormap, XColor* screen_in_out ) ;
|
|
||||||
FUNCTION: Status XQueryColor ( Display* display, Colormap colormap, XColor* def_in_out ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 7 - Graphics Context Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: GC XCreateGC ( Display* display, Window d, ulong valuemask, XGCValues* values ) ;
|
|
||||||
FUNCTION: int XChangeGC ( Display* display, GC gc, ulong valuemask, XGCValues* values ) ;
|
|
||||||
FUNCTION: Status XGetGCValues ( Display* display, GC gc, ulong valuemask, XGCValues* values_return ) ;
|
|
||||||
FUNCTION: Status XSetForeground ( Display* display, GC gc, ulong foreground ) ;
|
|
||||||
FUNCTION: Status XSetBackground ( Display* display, GC gc, ulong background ) ;
|
|
||||||
FUNCTION: Status XSetFunction ( Display* display, GC gc, int function ) ;
|
|
||||||
FUNCTION: Status XSetSubwindowMode ( Display* display, GC gc, int subwindow_mode ) ;
|
|
||||||
FUNCTION: Status XSetFont ( Display* display, GC gc, Font font ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 8 - Graphics Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Status XClearWindow ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XDrawPoint ( Display* display, Drawable d, GC gc, int x, int y ) ;
|
|
||||||
FUNCTION: Status XDrawLine ( Display* display, Drawable d, GC gc, int x1, int y1, int x2, int y2 ) ;
|
|
||||||
FUNCTION: Status XDrawArc ( Display* display, Drawable d, GC gc, int x, int y, uint width, uint height, int angle1, int angle2 ) ;
|
|
||||||
FUNCTION: Status XFillArc ( Display* display, Drawable d, GC gc, int x, int y, uint width, uint height, int angle1, int angle2 ) ;
|
|
||||||
FUNCTION: Font XLoadFont ( Display* display, char* name ) ;
|
|
||||||
FUNCTION: XFontStruct* XLoadQueryFont ( Display* display, char* name ) ;
|
|
||||||
FUNCTION: int XTextWidth ( XFontStruct* font_struct, char* string, int count ) ;
|
|
||||||
FUNCTION: Status XDrawString ( Display* display, Drawable d, GC gc, int x, int y, char* string, int length ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 9 - Window and Session Manager Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Status XReparentWindow ( Display* display, Window w, Window parent, int x, int y ) ;
|
|
||||||
FUNCTION: Status XAddToSaveSet ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XRemoveFromSaveSet ( Display* display, Window w ) ;
|
|
||||||
FUNCTION: Status XGrabServer ( Display* display ) ;
|
|
||||||
FUNCTION: Status XUngrabServer ( Display* display ) ;
|
|
||||||
FUNCTION: Status XKillClient ( Display* display, XID resource ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 11 - Event Handling Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Status XSelectInput ( Display* display, Window w, long event_mask ) ;
|
|
||||||
FUNCTION: Status XFlush ( Display* display ) ;
|
|
||||||
FUNCTION: Status XSync ( Display* display, int discard ) ;
|
|
||||||
FUNCTION: int XPending ( Display* display ) ;
|
|
||||||
FUNCTION: Status XNextEvent ( Display* display, XEvent* event ) ;
|
|
||||||
FUNCTION: Status XMaskEvent ( Display* display, long event_mask, XEvent* event_return ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 12 - Input Device Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: int XGrabPointer ( Display* display, Window grab_window, bool owner_events, uint event_mask, int pointer_mode, int keyboard_mode, Window confine_to, Cursor cursor, Time time ) ;
|
|
||||||
FUNCTION: Status XUngrabPointer ( Display* display, Time time ) ;
|
|
||||||
FUNCTION: Status XChangeActivePointerGrab ( Display* display, uint event_mask, Cursor cursor, Time time ) ;
|
|
||||||
FUNCTION: Status XGrabKey ( Display* display, int keycode, uint modifiers, Window grab_window, bool owner_events, int pointer_mode, int keyboard_mode ) ;
|
|
||||||
FUNCTION: Status XSetInputFocus ( Display* display, Window focus, int revert_to, Time time ) ;
|
|
||||||
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
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: Status XFetchName ( Display* display, Window w, char** window_name_return ) ;
|
|
||||||
FUNCTION: Status XGetTransientForHint ( Display* display, Window w, Window* prop_window_return ) ;
|
|
||||||
|
|
||||||
!
|
|
||||||
! 16 - Application Utility Functions
|
|
||||||
!
|
|
||||||
|
|
||||||
FUNCTION: int XLookupString ( XKeyEvent* event_struct, char* buffer_return, int bytes_buffer, KeySym* keysym_return, XComposeStatus* status_in_out ) ;
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue