diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-01-17 08:33:54 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-01-17 08:33:54 +0300 |
commit | 0e476af66e54f72884a2a407fba91cf2c1688193 (patch) | |
tree | 0539cf1e893cb40f99041f0aefda409991bca24c /source/blender/editors/include/ED_screen_types.h | |
parent | 7e14c5d119470c066fd76325dced68486117d91a (diff) |
* Start ActionZone support for areas. This is bScreen level stuff to be able to do funky stuff.
Right now 2 AZones are defined for each new ScrArea, and mouse over is now detected. Enter ugly triangle.
Diffstat (limited to 'source/blender/editors/include/ED_screen_types.h')
-rw-r--r-- | source/blender/editors/include/ED_screen_types.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_screen_types.h b/source/blender/editors/include/ED_screen_types.h new file mode 100644 index 00000000000..ee19210b74d --- /dev/null +++ b/source/blender/editors/include/ED_screen_types.h @@ -0,0 +1,63 @@ +/** + * $Id: + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * The Original Code is Copyright (C) 2008 Blender Foundation. + * All rights reserved. + * + * + * Contributor(s): Blender Foundation + * + * ***** END GPL LICENSE BLOCK ***** + */ + +#ifndef ED_SCREEN_TYPES_H__ +#define ED_SCREEN_TYPES_H__ + +typedef struct AZone { + struct AZone *next, *prev; + int type; + int flag; + int action; + int pos; + short x1, y1, x2, y2; +} AZone; + +#define MAX_AZONES 8 + + +/* actionzone type */ +#define AZONE_TRI 1 +#define AZONE_QUAD 2 + +/* actionzone action */ +#define AZONE_SPLIT 1 +#define AZONE_JOIN 2 +#define AZONE_DRAG 3 + +/* actionzone pos */ +#define AZONE_S 1 +#define AZONE_SW 2 +#define AZONE_W 3 +#define AZONE_NW 4 +#define AZONE_N 5 +#define AZONE_NE 6 +#define AZONE_E 7 +#define AZONE_SE 8 + +#endif /* ED_SCREEN_TYPES_H__ */ |