cc_types.h: add more shadow defines

Allows compact style on use for arguments in methods.


Origin commit data
------------------
Commit: aa92fc525f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-21 (Wed, 21 Jun 2017)
This commit is contained in:
2017-06-21 10:31:22 +02:00
parent 8d10fdd53b
commit cf6c992cad

View File

@@ -201,12 +201,16 @@ typedef struct button_label_cc
#define CC_WIDTH_MIN CFrameBuffer::getInstance()->scale2Res(16) #define CC_WIDTH_MIN CFrameBuffer::getInstance()->scale2Res(16)
#define CC_HEIGHT_MIN CC_WIDTH_MIN #define CC_HEIGHT_MIN CC_WIDTH_MIN
//shadow defines
#define CC_SHADOW_OFF 0x0 #define CC_SHADOW_OFF 0x0
#define CC_SHADOW_RIGHT 0x2 #define CC_SHADOW_RIGHT 0x2
#define CC_SHADOW_BOTTOM 0x4 #define CC_SHADOW_BOTTOM 0x4
#define CC_SHADOW_CORNER_BOTTOM_LEFT 0x8 #define CC_SHADOW_CORNER_BOTTOM_LEFT 0x8
#define CC_SHADOW_CORNER_BOTTOM_RIGHT 0x10 #define CC_SHADOW_CORNER_BOTTOM_RIGHT 0x10
#define CC_SHADOW_CORNER_TOP_RIGHT 0x20 #define CC_SHADOW_CORNER_TOP_RIGHT 0x20
//prepared combined shadow defines
#define CC_SHADOW_RIGHT_CORNER_ALL CC_SHADOW_RIGHT | CC_SHADOW_CORNER_BOTTOM_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT
#define CC_SHADOW_BOTTOM_CORNER_ALL CC_SHADOW_BOTTOM | CC_SHADOW_CORNER_BOTTOM_RIGHT | CC_SHADOW_CORNER_BOTTOM_LEFT
#define CC_SHADOW_ON CC_SHADOW_RIGHT | CC_SHADOW_BOTTOM | CC_SHADOW_CORNER_BOTTOM_LEFT | CC_SHADOW_CORNER_BOTTOM_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT #define CC_SHADOW_ON CC_SHADOW_RIGHT | CC_SHADOW_BOTTOM | CC_SHADOW_CORNER_BOTTOM_LEFT | CC_SHADOW_CORNER_BOTTOM_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT
#define CC_SAVE_SCREEN_YES true #define CC_SAVE_SCREEN_YES true