Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

mousecursor.h

Go to the documentation of this file.
00001 /*
00002         $Id: mousecursor.h,v 1.1 2001/03/06 15:09:10 mbn Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 */
00014 
00016 
00017 #ifndef header_mousecursor
00018 #define header_mousecursor
00019 
00020 class CL_MouseCursorProvider;
00021 
00022 class CL_MouseCursor
00023 //: Mouse cursor management class.
00024 // <p>Use this class to set the mouse cursor icon, or to toggle its
00025 // visibility.</p>
00026 {
00027 public:
00028         static void set_cursor(
00029                 CL_MouseCursorProvider *provider,
00030                 int frame=0);
00031         // Set the system mouse cursor to 'provider'. If 'frame' is also
00032         // specified, it will use that subframe in the cursor provider.
00035 
00036         static void show(bool show_async=true);
00037         // Makes the currently selected mouse cursor visible. If 'show_async' is
00038         // true, it will use a secondary thread to draw the mouse. This ensures
00039         // that the mouse cursor will keep running smooth despite of the
00040         // framerate in the game.
00043 
00044         static void hide();
00045         // Hides the mouse cursor.
00046 };
00047 
00048 #endif

Generated at Wed Apr 4 19:54:01 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001