annotate Gui/wm/ws.h @ 5156:1c250c1da93c

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