src/video/x11/SDL_x11sym.h
author Ryan C. Gordon <icculus@icculus.org>
Mon, 21 Nov 2005 00:16:34 +0000
changeset 1178 9867f3d86e44
parent 1169 4b3e2294782d
child 1226 d05306f0dc21
permissions -rw-r--r--
Real Unicode support for X11. Based on updated version of this patch:
http://lists.arabeyes.org/archives/developer/2004/June/msg00160.html

--ryan.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2004 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Library General Public
     7     License as published by the Free Software Foundation; either
     8     version 2 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Library General Public License for more details.
    14 
    15     You should have received a copy of the GNU Library General Public
    16     License along with this library; if not, write to the Free
    17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 SDL_X11_SYM(XClassHint*,XAllocClassHint,(void))
    24 SDL_X11_SYM(Status,XAllocColor,(Display*,Colormap,XColor*))
    25 SDL_X11_SYM(XSizeHints*,XAllocSizeHints,(void))
    26 SDL_X11_SYM(XWMHints*,XAllocWMHints,(void))
    27 SDL_X11_SYM(int,XChangePointerControl,(Display*,Bool,Bool,int,int,int))
    28 SDL_X11_SYM(int,XChangeProperty,(Display*,Window,Atom,Atom,int,int,_Xconst unsigned char*,int))
    29 SDL_X11_SYM(int,XChangeWindowAttributes,(Display*,Window,unsigned long,XSetWindowAttributes*))
    30 SDL_X11_SYM(Bool,XCheckTypedEvent,(Display*,int,XEvent*))
    31 SDL_X11_SYM(int,XClearWindow,(Display*,Window))
    32 SDL_X11_SYM(int,XCloseDisplay,(Display*))
    33 SDL_X11_SYM(Colormap,XCreateColormap,(Display*,Window,Visual*,int))
    34 SDL_X11_SYM(Cursor,XCreatePixmapCursor,(Display*,Pixmap,Pixmap,XColor*,XColor*,unsigned int,unsigned int))
    35 SDL_X11_SYM(GC,XCreateGC,(Display*,Drawable,unsigned long,XGCValues*))
    36 SDL_X11_SYM(XImage*,XCreateImage,(Display*,Visual*,unsigned int,int,int,char*,unsigned int,unsigned int,int,int))
    37 SDL_X11_SYM(Pixmap,XCreatePixmap,(Display*,Drawable,unsigned int,unsigned int,unsigned int))
    38 SDL_X11_SYM(Pixmap,XCreatePixmapFromBitmapData,(Display*,Drawable,char*,unsigned int,unsigned int,unsigned long,unsigned long,unsigned int))
    39 SDL_X11_SYM(Window,XCreateSimpleWindow,(Display*,Window,int,int,unsigned int,unsigned int,unsigned int,unsigned long,unsigned long))
    40 SDL_X11_SYM(Window,XCreateWindow,(Display*,Window,int,int,unsigned int,unsigned int,unsigned int,int,unsigned int,Visual*,unsigned long,XSetWindowAttributes*))
    41 SDL_X11_SYM(int,XDefineCursor,(Display*,Window,Cursor))
    42 SDL_X11_SYM(int,XDeleteProperty,(Display*,Window,Atom))
    43 SDL_X11_SYM(int,XDestroyWindow,(Display*,Window))
    44 SDL_X11_SYM(char*,XDisplayName,(_Xconst char*))
    45 SDL_X11_SYM(int,XEventsQueued,(Display*,int))
    46 SDL_X11_SYM(int,XFlush,(Display*))
    47 SDL_X11_SYM(int,XFree,(void*))
    48 SDL_X11_SYM(int,XFreeColormap,(Display*,Colormap))
    49 SDL_X11_SYM(int,XFreeColors,(Display*,Colormap,unsigned long*,int,unsigned long))
    50 SDL_X11_SYM(int,XFreeCursor,(Display*,Cursor))
    51 SDL_X11_SYM(int,XFreeGC,(Display*,GC))
    52 SDL_X11_SYM(int,XFreeModifiermap,(XModifierKeymap*))
    53 SDL_X11_SYM(int,XFreePixmap,(Display*,Pixmap))
    54 SDL_X11_SYM(int,XGetErrorDatabaseText,(Display*,_Xconst char*,_Xconst char*,_Xconst char*,char*,int))
    55 SDL_X11_SYM(XModifierKeymap*,XGetModifierMapping,(Display*))
    56 SDL_X11_SYM(int,XGetPointerControl,(Display*,int*,int*,int*))
    57 SDL_X11_SYM(XVisualInfo*,XGetVisualInfo,(Display*,long,XVisualInfo*,int*))
    58 SDL_X11_SYM(XWMHints*,XGetWMHints,(Display*,Window))
    59 SDL_X11_SYM(Status,XGetWMIconName,(Display*,Window,XTextProperty*))
    60 SDL_X11_SYM(Status,XGetWMName,(Display*,Window,XTextProperty*))
    61 SDL_X11_SYM(Status,XGetWindowAttributes,(Display*,Window,XWindowAttributes*))
    62 SDL_X11_SYM(int,XGrabKeyboard,(Display*,Window,Bool,int,int,Time))
    63 SDL_X11_SYM(int,XGrabPointer,(Display*,Window,Bool,unsigned int,int,int,Window,Cursor,Time))
    64 SDL_X11_SYM(Status,XIconifyWindow,(Display*,Window,int))
    65 SDL_X11_SYM(int,XInstallColormap,(Display*,Colormap))
    66 SDL_X11_SYM(KeyCode,XKeysymToKeycode,(Display*,KeySym))
    67 SDL_X11_SYM(Atom,XInternAtom,(Display*,_Xconst char*,Bool))
    68 SDL_X11_SYM(XPixmapFormatValues*,XListPixmapFormats,(Display*,int*))
    69 SDL_X11_SYM(int,XLookupString,(XKeyEvent*,char*,int,KeySym*,XComposeStatus*))
    70 SDL_X11_SYM(int,XMapRaised,(Display*,Window))
    71 SDL_X11_SYM(int,XMapWindow,(Display*,Window))
    72 SDL_X11_SYM(int,XMaskEvent,(Display*,long,XEvent*))
    73 SDL_X11_SYM(Status,XMatchVisualInfo,(Display*,int,int,int,XVisualInfo*))
    74 SDL_X11_SYM(int,XMissingExtension,(Display*,_Xconst char*))
    75 SDL_X11_SYM(int,XMoveResizeWindow,(Display*,Window,int,int,unsigned int,unsigned int))
    76 SDL_X11_SYM(int,XMoveWindow,(Display*,Window,int,int))
    77 SDL_X11_SYM(int,XNextEvent,(Display*,XEvent*))
    78 SDL_X11_SYM(Display*,XOpenDisplay,(_Xconst char*))
    79 SDL_X11_SYM(int,XPeekEvent,(Display*,XEvent*))
    80 SDL_X11_SYM(int,XPending,(Display*))
    81 SDL_X11_SYM(int,XPutImage,(Display*,Drawable,GC,XImage*,int,int,int,int,unsigned int,unsigned int))
    82 SDL_X11_SYM(int,XQueryColors,(Display*,Colormap,XColor*,int))
    83 SDL_X11_SYM(int,XQueryKeymap,(Display*,char [32]))
    84 SDL_X11_SYM(Bool,XQueryPointer,(Display*,Window,Window*,Window*,int*,int*,int*,int*,unsigned int*))
    85 SDL_X11_SYM(int,XRaiseWindow,(Display*,Window))
    86 SDL_X11_SYM(int,XReparentWindow,(Display*,Window,Window,int,int))
    87 SDL_X11_SYM(int,XResizeWindow,(Display*,Window,unsigned int,unsigned int))
    88 SDL_X11_SYM(int,XSelectInput,(Display*,Window,long))
    89 SDL_X11_SYM(Status,XSendEvent,(Display*,Window,Bool,long,XEvent*))
    90 SDL_X11_SYM(int,XSetClassHint,(Display*,Window,XClassHint*))
    91 SDL_X11_SYM(XErrorHandler,XSetErrorHandler,(XErrorHandler))
    92 SDL_X11_SYM(XIOErrorHandler,XSetIOErrorHandler,(XIOErrorHandler))
    93 SDL_X11_SYM(int,XSetTransientForHint,(Display*,Window,Window))
    94 SDL_X11_SYM(int,XSetWMHints,(Display*,Window,XWMHints*))
    95 SDL_X11_SYM(void,XSetWMIconName,(Display*,Window,XTextProperty*))
    96 SDL_X11_SYM(void,XSetWMName,(Display*,Window,XTextProperty*))
    97 SDL_X11_SYM(void,XSetWMNormalHints,(Display*,Window,XSizeHints*))
    98 SDL_X11_SYM(Status,XSetWMProtocols,(Display*,Window,Atom*,int))
    99 SDL_X11_SYM(int,XSetWindowBackground,(Display*,Window,unsigned long))
   100 SDL_X11_SYM(int,XSetWindowBackgroundPixmap,(Display*,Window,Pixmap))
   101 SDL_X11_SYM(int,XSetWindowColormap,(Display*,Window,Colormap))
   102 SDL_X11_SYM(int,XStoreColors,(Display*,Colormap,XColor*,int))
   103 SDL_X11_SYM(Status,XStringListToTextProperty,(char**,int,XTextProperty*))
   104 SDL_X11_SYM(int,XSync,(Display*,Bool))
   105 SDL_X11_SYM(int,XUngrabKeyboard,(Display*,Time))
   106 SDL_X11_SYM(int,XUngrabPointer,(Display*,Time))
   107 SDL_X11_SYM(int,XUnmapWindow,(Display*,Window))
   108 SDL_X11_SYM(int,XWarpPointer,(Display*,Window,Window,int,int,unsigned int,unsigned int,int,int))
   109 SDL_X11_SYM(VisualID,XVisualIDFromVisual,(Visual*))
   110 SDL_X11_SYM(XExtDisplayInfo*,XextAddDisplay,(XExtensionInfo*,Display*,char*,XExtensionHooks*,int,XPointer))
   111 SDL_X11_SYM(XExtensionInfo*,XextCreateExtension,(void))
   112 SDL_X11_SYM(void,XextDestroyExtension,(XExtensionInfo*))
   113 SDL_X11_SYM(XExtDisplayInfo*,XextFindDisplay,(XExtensionInfo*,Display*))
   114 SDL_X11_SYM(int,XextRemoveDisplay,(XExtensionInfo*,Display*))
   115 #ifdef X_HAVE_UTF8_STRING
   116 SDL_X11_SYM(int,Xutf8TextListToTextProperty,(Display*,char**,int,XICCEncodingStyle,XTextProperty*))
   117 SDL_X11_SYM(int,Xutf8LookupString,(XIC,XKeyPressedEvent*,char*,int,KeySym*,Status*))
   118 SDL_X11_SYM(XIC,XCreateIC,(XIM, ...))
   119 SDL_X11_SYM(void,XDestroyIC,(XIC))
   120 SDL_X11_SYM(void,XSetICFocus,(XIC))
   121 SDL_X11_SYM(void,XUnsetICFocus,(XIC))
   122 SDL_X11_SYM(XIM,XOpenIM,(Display*,struct _XrmHashBucketRec*,char*,char*))
   123 SDL_X11_SYM(Status,XCloseIM,(XIM))
   124 #endif
   125 SDL_X11_SYM(void,_XEatData,(Display*,unsigned long))
   126 SDL_X11_SYM(void,_XFlush,(Display*))
   127 SDL_X11_SYM(void,_XFlushGCCache,(Display*,GC))
   128 SDL_X11_SYM(int,_XRead,(Display*,char*,long))
   129 SDL_X11_SYM(void,_XReadPad,(Display*,char*,long))
   130 SDL_X11_SYM(void,_XSend,(Display*,_Xconst char*,long))
   131 SDL_X11_SYM(Status,_XReply,(Display*,xReply*,int,Bool))
   132 SDL_X11_SYM(unsigned long,_XSetLastRequestRead,(Display*,xGenericReply*))
   133 
   134 #if NeedWidePrototypes
   135 SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display*,unsigned int,int))
   136 #else
   137 SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display*,KeyCode,int))
   138 #endif
   139 
   140 #ifndef NO_SHARED_MEMORY
   141 SDL_X11_SYM(Status,XShmAttach,(Display*,XShmSegmentInfo*))
   142 SDL_X11_SYM(Status,XShmDetach,(Display*,XShmSegmentInfo*))
   143 SDL_X11_SYM(Status,XShmPutImage,(Display*,Drawable,GC,XImage*,int,int,int,int,unsigned int,unsigned int,Bool))
   144 SDL_X11_SYM(XImage*,XShmCreateImage,(Display*,Visual*,unsigned int,int,char*,XShmSegmentInfo*,unsigned int,unsigned int))
   145 SDL_X11_SYM(Bool,XShmQueryExtension,(Display*))
   146 #endif
   147 
   148 SDL_X11_SYM(SDL_X11_XSynchronizeRetType,XSynchronize,(Display*,Bool))
   149 SDL_X11_SYM(SDL_X11_XESetWireToEventRetType,XESetWireToEvent,(Display*,int,SDL_X11_XESetWireToEventRetType))
   150 SDL_X11_SYM(SDL_X11_XESetEventToWireRetType,XESetEventToWire,(Display*,int,SDL_X11_XESetEventToWireRetType))
   151 
   152 /* end of SDL_x11sym.h ... */
   153