annotate Gui/wm/ws.h @ 3457:ca39dc9f879b

do not crash with 3ivx and vivo
author alex
date Tue, 11 Dec 2001 14:56:21 +0000
parents fd44ecf77f8d
children b013d01d9968
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 // AutoSpace Window System for Linux/Win32 v0.61
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4 // Writed by pontscho / fresh!mindworkz
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
5 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 #ifndef __MY_WS
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 #define __MY_WS
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 #include <X11/Xlib.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11 #include <X11/Xutil.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12 #include <X11/keysym.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13 #include <X11/Xatom.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 #include <X11/extensions/XShm.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 #include <X11/extensions/dpms.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17 #define wsKeyReleased 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 #define wsKeyPressed 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 #define wsShift (1L<<0)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21 #define wsLock (1L<<1)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 #define wsCtrl (1L<<2)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 #define wsAlt (1L<<3)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 #define wsPLMouseButton 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26 #define wsPMMouseButton 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27 #define wsPRMouseButton 3
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2082
diff changeset
28 #define wsP4MouseButton 4
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2082
diff changeset
29 #define wsP5MouseButton 5
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 #define wsRLMouseButton 1 + 128
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 #define wsRMMouseButton 2 + 128
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32 #define wsRRMouseButton 3 + 128
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2082
diff changeset
33 #define wsR4MouseButton 4 + 128
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2082
diff changeset
34 #define wsR5MouseButton 5 + 128
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
35 #define wsEnterWindow 253
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36 #define wsLeaveWindow 254
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
37 #define wsMoveMouse 255
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
38
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
39 #define wsShowMouseCursor 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
40 #define wsMouse 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
41 #define wsHideMouseCursor 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
42 #define wsNoMouse 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 #define wsHandleMouseButton 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44 #define wsHandleMouseMove 4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
46 #define wsHideFrame 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47 #define wsNoFrame 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
48 #define wsShowFrame 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
49 #define wsFrame 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
50 #define wsMaxSize 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
51 #define wsMinSize 4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
52 #define wsShowWindow 8
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53 #define wsHideWindow 16
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54 #define wsOverredirect 32
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 #define wsNoBorder 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58 #define wsSysName "AutoSpace Window System LiTe"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
59
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
60 #define wsRGB32 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61 #define wsBGR32 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62 #define wsRGB24 3
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 #define wsBGR24 4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64 #define wsRGB16 5
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65 #define wsBGR16 6
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66 #define wsRGB15 7
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67 #define wsBGR15 8
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
69 #define wsWindowVisible 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
70 #define wsWindowPartialVisible 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
71 #define wsWindowNotVisible 4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72 #define wsWindowMapped 8
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73 #define wsWindowUnmapped 16
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74 #define wsWindowFocusIn 32
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75 #define wsWindowFocusOut 64
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
76 #define wsWindowExpose 128
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
77 #define wsWindowRolled 256
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
78
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
79 #define wsNone 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
80 #define wsMapped 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
81 #define wsFocused 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
82 #define wsVisible 3
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
83 #define wsNotVisible 4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
84 #define wsPVisible 5
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 #define wsRolled 6
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87 #define wsParamDisplay Display *dpy,Window w
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
88
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
89 typedef void (*wsTReDraw)( wsParamDisplay );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
90 typedef void (*wsTReSize)( unsigned int X,unsigned int Y,unsigned int width,unsigned int height );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
91 typedef void (*wsTIdle)( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
92 typedef void (*wsTKeyHandler)( int State,int Type,int Key );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
93 typedef void (*wsTMouseHandler)( int Button,int X,int Y,int RX,int RY );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
94 typedef void (*wsRemoteHandler)( char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
95
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
96 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
97 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
98 Window WindowID;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
99 Window Parent;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
100 int X,Y,Width,Height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
101 int OldX,OldY,OldWidth,OldHeight;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
102 int MaxX,MaxY;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
103 int isFullScreen;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
104 int BorderWidth;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
105 int Property;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
106 unsigned char * bImage;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
107 XImage * xImage;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 Pixmap Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109 int Decorations;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 int State;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
112 int Visible;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 int Mapped;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114 int Focused;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 int Rolled;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
117 wsTReDraw ReDraw;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118 wsTReSize ReSize;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
119 wsTIdle Idle;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
120 wsTKeyHandler KeyHandler;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
121 wsTMouseHandler MouseHandler;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
122 wsRemoteHandler RemoteHandler;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
123
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
124 int Alt;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
125 int Shift;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
126 int Control;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
127 int NumLock;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
128 int CapsLock;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
129 // --- Misc -------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
130
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
131 Atom AtomDeleteWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
132 Atom AtomTakeFocus;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
133 Atom AtomRolle;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
134 Atom AtomProtocols;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
135 Atom AtomsProtocols[3];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
136 Atom AtomLeaderClient;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
137 Atom AtomRemote;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2082
diff changeset
138 Atom AtomWMSizeHint;
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2082
diff changeset
139 Atom AtomWMNormalHint;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
140
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
141 XShmSegmentInfo Shminfo;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
142 unsigned char * ImageData;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
143 unsigned short int * ImageDataw;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
144 unsigned int * ImageDatadw;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
145 GC wGC;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
146 XGCValues wGCV;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
147 unsigned long WindowMask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148 XVisualInfo VisualInfo;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
149 XWindowAttributes Attribs;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
150 XSetWindowAttributes WindowAttrib;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
151 XSizeHints SizeHint;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
152 XWMHints WMHints;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
153
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
154 XFontStruct * Font;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
155 int FontHeight;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
156
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
157 Cursor wsCursor;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
158 char wsCursorData[1];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
159 Pixmap wsCursorPixmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
160 int wsMouseEventType;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
161 XColor wsColor;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
162 } wsTWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
163
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
164 extern unsigned int wsMaxX;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
165 extern unsigned int wsMaxY;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
166
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
167 extern Display * wsDisplay;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
168 extern int wsScreen;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
169 extern Window wsRootWin;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
170
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
171 extern unsigned char * wsImageData;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
172
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173 extern XEvent wsEvent;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
174
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
175 extern int wsDepthOnScreen;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
176 extern int wsRedMask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
177 extern int wsGreenMask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
178 extern int wsBlueMask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
179
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
180 extern int wsUseXShm;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
181 extern int wsUseDGA;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
182
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
183 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
184 // wsKeyTable
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
185 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
186 extern unsigned long wsKeyTable[512];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
187
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
188 extern void wsXDone( void );
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
189 extern void wsXInit( void* disp );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
190
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
191 extern int wsGetDepthOnScreen( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
192
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
193 extern void wsDoExit( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
194 extern void wsMainLoop( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
195
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
196 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
197 // wsCrateWindow: create a new window on the screen.
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
198 // X,Y : window position
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
199 // wX,hY : window size
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
200 // bW : window frame size
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
201 // cV : mouse cursor visible
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
202 // D : "decoration", visible titlebar, etc ...
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
203 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
204 extern void wsCreateWindow( wsTWindow * win,int X,int Y,int wX,int hY,int bW,int cV,unsigned char D,char * label );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
205 extern void wsDestroyWindow( wsTWindow * win );
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 2851
diff changeset
206 extern void wsMoveWindow( wsTWindow * win,int b,int x, int y );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
207 extern void wsResizeWindow( wsTWindow * win,int sx, int sy );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
208 extern void wsIconify( wsTWindow win );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
209 extern void wsMoveTopWindow( wsTWindow * win );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
210 extern void wsSetBackground( wsTWindow * win,int color );
1814
9c674dc76ff3 add wsSetForegroundRGB
pontscho
parents: 1723
diff changeset
211 extern void wsSetForegroundRGB( wsTWindow * win,int r,int g,int b );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
212 extern void wsSetBackgroundRGB( wsTWindow * win,int r,int g,int b );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
213 #define wsClearWindow( win ); XClearWindow( wsDisplay,win.WindowID );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
214 extern void wsSetTitle( wsTWindow * win,char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
215 extern void wsVisibleWindow( wsTWindow * win,int show );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
216 extern void wsWindowDecoration( wsTWindow * win,long d );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
217 extern void wsFullScreen( wsTWindow * win );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
218 extern void wsPostRedisplay( wsTWindow * win );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
219 extern void wsSetShape( wsTWindow * win,char * data );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
220
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
221 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
222 // Draw string at x,y with fc ( foreground color ) and bc ( background color ).
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
223 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
224 extern void wsDrawString( wsTWindow win,int x,int y,char * str,int fc,int bc );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
225 extern int wsTextWidth( wsTWindow win,char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
226
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
227 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
228 // Show / hide mouse cursor.
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
229 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
230 extern void wsVisibleMouse( wsTWindow * win,int m );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
231 extern void wsSetMousePosition( wsTWindow * win,int x, int y );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
232
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
233 // ----------------------------------------------------------------------------------------------
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
234 // Image handling
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
235 // ----------------------------------------------------------------------------------------------
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1853
diff changeset
236 extern void wsCreateImage( wsTWindow * win,int Width,int Height );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
237 extern void wsConvert( wsTWindow * win,unsigned char * Image,unsigned int Size );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
238 extern void wsPutImage( wsTWindow * win );
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1853
diff changeset
239 extern void wsResizeImage( wsTWindow * win,int Width,int Height );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
240 extern void wsDestroyImage( wsTWindow * win );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
241 extern int wsGetOutMask( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
242
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
243 extern void wsScreenSaverOn( Display *mDisplay );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
244 extern void wsScreenSaverOff( Display * mDisplay );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
245
2082
016f6d583733 missing newlines fixed
arpi
parents: 1858
diff changeset
246 #endif
016f6d583733 missing newlines fixed
arpi
parents: 1858
diff changeset
247