source: golgotha/src/i4/window/cursor.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.4 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef __CURSOR_HPP_
10#define __CURSOR_HPP_
11
12class i4_image_class;
13#include "image/image.hh"
14
15class i4_cursor_class
16{
17  public :
18  i4_image_class *pict;       // picture of what the mouse actually looks like
19  i4_color trans;             // transparent color in image
20  i4_coord hot_x,hot_y;       // offset from top-left where hot-spot is
21
22  i4_cursor_class(i4_image_class *pict,
23                  i4_color trans,
24                  i4_coord hot_x, i4_coord hot_y,
25                  const i4_pal *convert_to=0);
26 
27  ~i4_cursor_class();
28  i4_cursor_class *copy(const i4_pal *convert_to=0); 
29  i4_cursor_class();
30} ;
31
32class i4_string_manager_class;
33
34// load cursor takes a "resource string" for a cursor name
35// currently a cursor resource should be in the form
36// cursorname filename trans_color hot_x hot_y
37i4_cursor_class *i4_load_cursor(char *cursor_name,
38                                i4_string_manager_class *sman);
39
40
41#endif
Note: See TracBrowser for help on using the repository browser.