cursor.h

00001 /***************************************************************************
00002                           cursor.h  -  description
00003                              -------------------
00004     begin                : Sat Mar 6 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018  #ifndef __CURSOR_H
00019  #define __CURSOR_H
00020 
00021  #include "common/ktypes.h"
00022  #include "gui/gui_common.h"
00023 
00024  extern "C"
00025  {
00026   #include "gui/graphics.h"
00027  }
00028  
00029  #define VISIBLE  0
00030  #define HIDDEN   1
00031  
00032  #define CURSOR_HEIGHT 11
00033 
00034 
00035  class cursor
00036  {
00037    public:
00038     DW x,y;
00039     DW state;
00040     DB no_times;
00041 
00042     void cursor_init();
00043     void setCursor(POINT pt);
00044     POINT getCursor();
00045 
00046     void show();
00047     void hide();
00048     void paint();
00049     void erase();
00050  };
00051 
00052  extern cursor csr;
00053  
00054  #endif
00055 
00056  

Generated on Thu Jul 27 23:52:25 2006 for Dynacube by  doxygen 1.4.7