Blender V2.61 - r43446

wm_cursors.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 
00035 #ifndef WM_CURSORS_H
00036 #define WM_CURSORS_H
00037 
00038 void wm_init_cursor_data(void);
00039 
00040 #define BC_GHOST_CURSORS 1000
00041 
00042 /* old cursors */
00043 enum {
00044     CURSOR_FACESEL=BC_GHOST_CURSORS, 
00045     CURSOR_WAIT, 
00046     CURSOR_EDIT, 
00047     CURSOR_X_MOVE, 
00048     CURSOR_Y_MOVE, 
00049     CURSOR_HELP, 
00050     CURSOR_STD, 
00051     CURSOR_NONE,
00052     CURSOR_PENCIL,
00053     CURSOR_COPY
00054 };
00055 
00056 
00057 //typedef struct BCursor_s BCursor;
00058 typedef struct BCursor {
00059 
00060     char *small_bm;
00061     char *small_mask;
00062 
00063     char small_sizex; 
00064     char small_sizey; 
00065     char small_hotx; 
00066     char small_hoty; 
00067 
00068     char *big_bm; 
00069     char *big_mask;
00070 
00071     char big_sizex; 
00072     char big_sizey; 
00073     char big_hotx; 
00074     char big_hoty; 
00075 
00076     char fg_color; 
00077     char bg_color; 
00078 
00079 } BCursor;
00080 
00081 #define SYSCURSOR 1
00082 enum {
00083     BC_NW_ARROWCURSOR=2, 
00084     BC_NS_ARROWCURSOR,
00085     BC_EW_ARROWCURSOR,
00086     BC_WAITCURSOR,
00087     BC_CROSSCURSOR,
00088     BC_EDITCROSSCURSOR,
00089     BC_BOXSELCURSOR,
00090     BC_KNIFECURSOR,
00091     BC_VLOOPCURSOR,
00092     BC_TEXTEDITCURSOR,
00093     BC_PAINTBRUSHCURSOR,
00094     BC_HANDCURSOR,
00095     BC_NSEW_SCROLLCURSOR,
00096     BC_NS_SCROLLCURSOR,
00097     BC_EW_SCROLLCURSOR,
00098     BC_EYEDROPPER_CURSOR,
00099     BC_SWAPAREA_CURSOR,
00100 /* --- ALWAYS LAST ----- */
00101     BC_NUMCURSORS,
00102 };
00103 
00104 
00105 enum {
00106     BC_BLACK=0, 
00107     BC_WHITE, 
00108     BC_RED,
00109     BC_BLUE,
00110     BC_GREEN,
00111     BC_YELLOW
00112 };
00113 
00114 #define SMALL_CURSOR    0
00115 #define BIG_CURSOR      1
00116 
00117 struct wmWindow;
00118 struct wmEvent;
00119 
00120 int wm_cursor_arrow_move(struct wmWindow *win, struct wmEvent *event);
00121 
00122 
00123 #endif /* WM_CURSORS_H */
00124