SDL-1.2.14
[sdl_omap.git] / docs / html / sdlshowcursor.html
CommitLineData
e14743d1 1<HTML
2><HEAD
3><TITLE
4>SDL_ShowCursor</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8"><LINK
9REL="HOME"
10TITLE="SDL Library Documentation"
11HREF="index.html"><LINK
12REL="UP"
13TITLE="Video"
14HREF="video.html"><LINK
15REL="PREVIOUS"
16TITLE="SDL_GetCursor"
17HREF="sdlgetcursor.html"><LINK
18REL="NEXT"
19TITLE="SDL_GL_LoadLibrary"
20HREF="sdlglloadlibrary.html"></HEAD
21><BODY
22CLASS="REFENTRY"
23BGCOLOR="#FFF8DC"
24TEXT="#000000"
25LINK="#0000ee"
26VLINK="#551a8b"
27ALINK="#ff0000"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>SDL Library Documentation</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="sdlgetcursor.html"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56></TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="sdlglloadlibrary.html"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><H1
72><A
73NAME="SDLSHOWCURSOR"
74></A
75>SDL_ShowCursor</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN2615"
80></A
81><H2
82>Name</H2
83>SDL_ShowCursor&nbsp;--&nbsp;Toggle whether or not the cursor is shown on the screen.</DIV
84><DIV
85CLASS="REFSYNOPSISDIV"
86><A
87NAME="AEN2618"
88></A
89><H2
90>Synopsis</H2
91><DIV
92CLASS="FUNCSYNOPSIS"
93><A
94NAME="AEN2619"
95></A
96><P
97></P
98><PRE
99CLASS="FUNCSYNOPSISINFO"
100>#include "SDL.h"</PRE
101><P
102><CODE
103><CODE
104CLASS="FUNCDEF"
105>int <B
106CLASS="FSFUNC"
107>SDL_ShowCursor</B
108></CODE
109>(int toggle);</CODE
110></P
111><P
112></P
113></DIV
114></DIV
115><DIV
116CLASS="REFSECT1"
117><A
118NAME="AEN2625"
119></A
120><H2
121>Description</H2
122><P
123>Toggle whether or not the cursor is shown on the screen. Passing <TT
124CLASS="LITERAL"
125>SDL_ENABLE</TT
126> displays the cursor and passing <TT
127CLASS="LITERAL"
128>SDL_DISABLE</TT
129> hides it. The current state of the mouse cursor can be queried by passing <TT
130CLASS="LITERAL"
131>SDL_QUERY</TT
132>, either <TT
133CLASS="LITERAL"
134>SDL_DISABLE</TT
135> or <TT
136CLASS="LITERAL"
137>SDL_ENABLE</TT
138> will be returned.</P
139><P
140>The cursor starts off displayed, but can be turned off.</P
141></DIV
142><DIV
143CLASS="REFSECT1"
144><A
145NAME="AEN2634"
146></A
147><H2
148>Return Value</H2
149><P
150>Returns the current state of the cursor.</P
151></DIV
152><DIV
153CLASS="REFSECT1"
154><A
155NAME="AEN2637"
156></A
157><H2
158>See Also</H2
159><P
160><A
161HREF="sdlcreatecursor.html"
162><TT
163CLASS="FUNCTION"
164>SDL_CreateCursor</TT
165></A
166>,
167<A
168HREF="sdlsetcursor.html"
169><TT
170CLASS="FUNCTION"
171>SDL_SetCursor</TT
172></A
173></P
174></DIV
175><DIV
176CLASS="NAVFOOTER"
177><HR
178ALIGN="LEFT"
179WIDTH="100%"><TABLE
180SUMMARY="Footer navigation table"
181WIDTH="100%"
182BORDER="0"
183CELLPADDING="0"
184CELLSPACING="0"
185><TR
186><TD
187WIDTH="33%"
188ALIGN="left"
189VALIGN="top"
190><A
191HREF="sdlgetcursor.html"
192ACCESSKEY="P"
193>Prev</A
194></TD
195><TD
196WIDTH="34%"
197ALIGN="center"
198VALIGN="top"
199><A
200HREF="index.html"
201ACCESSKEY="H"
202>Home</A
203></TD
204><TD
205WIDTH="33%"
206ALIGN="right"
207VALIGN="top"
208><A
209HREF="sdlglloadlibrary.html"
210ACCESSKEY="N"
211>Next</A
212></TD
213></TR
214><TR
215><TD
216WIDTH="33%"
217ALIGN="left"
218VALIGN="top"
219>SDL_GetCursor</TD
220><TD
221WIDTH="34%"
222ALIGN="center"
223VALIGN="top"
224><A
225HREF="video.html"
226ACCESSKEY="U"
227>Up</A
228></TD
229><TD
230WIDTH="33%"
231ALIGN="right"
232VALIGN="top"
233>SDL_GL_LoadLibrary</TD
234></TR
235></TABLE
236></DIV
237></BODY
238></HTML
239>