Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2010-09-20 17:13:40 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-09-20 17:13:40 +0400
commit05296e306526090b0f99f974bbc449e121d1c4b6 (patch)
treeac2bb11499ad7ed03cdbedf4f548a927e7697d3e /source/blender/editors/include/ED_screen_types.h
parent5115a7068ce70e33d00097efbd88dc0cdcb40fb6 (diff)
Partly apply patch [#23746] Clarify azone->edge values.
Submitted by Shane Ambler. The original patches made an enum for action zone edges, changed positioning for minimised icons and repositioned minimised icon for operator properties panel. I kept the enum idea, but further improved on the naming. Some switches used in place of if/else blocks and added some comments. See patch tracker for more comments.
Diffstat (limited to 'source/blender/editors/include/ED_screen_types.h')
-rw-r--r--source/blender/editors/include/ED_screen_types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_screen_types.h b/source/blender/editors/include/ED_screen_types.h
index c55dafa6f51..c5abd5465d7 100644
--- a/source/blender/editors/include/ED_screen_types.h
+++ b/source/blender/editors/include/ED_screen_types.h
@@ -68,13 +68,21 @@ typedef struct ScreenFrameRateInfo {
/* ----------------------------------------------------- */
+/* Enum for Action Zone Edges. Which edge of area is action zone. */
+typedef enum {
+ AE_RIGHT_TO_TOPLEFT, /* Region located on the left, _right_ edge is action zone. Region minimised to the top left */
+ AE_LEFT_TO_TOPRIGHT, /* Region located on the right, _left_ edge is action zone. Region minimised to the top right */
+ AE_TOP_TO_BOTTOMRIGHT, /* Region located at the bottom, _top_ edge is action zone. Region minimised to the bottom right */
+ AE_BOTTOM_TO_TOPLEFT /* Region located at the top, _bottom_edge is action zone. Region minimised to the top left */
+} AZEdge;
+
/* for editing areas/regions */
typedef struct AZone {
struct AZone *next, *prev;
ARegion *ar;
int type;
/* region-azone, which of the edges */
- short edge;
+ AZEdge edge;
/* internal */
short do_draw;
/* for draw */