Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_intern.h
| Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | |||||
| #define UI_BITBUT_SET(a, b) ( (a) | 1 << (b) ) | #define UI_BITBUT_SET(a, b) ( (a) | 1 << (b) ) | ||||
| #define UI_BITBUT_CLR(a, b) ( (a) & ~(1 << (b)) ) | #define UI_BITBUT_CLR(a, b) ( (a) & ~(1 << (b)) ) | ||||
| /* bit-row */ | /* bit-row */ | ||||
| #define UI_BITBUT_ROW(min, max) (((max) >= 31 ? 0xFFFFFFFF : (1 << ((max) + 1)) - 1) - ((min) ? ((1 << (min)) - 1) : 0) ) | #define UI_BITBUT_ROW(min, max) (((max) >= 31 ? 0xFFFFFFFF : (1 << ((max) + 1)) - 1) - ((min) ? ((1 << (min)) - 1) : 0) ) | ||||
| /* split numbuts by ':' and align l/r */ | /* split numbuts by ':' and align l/r */ | ||||
| #define USE_NUMBUTS_LR_ALIGN | #define USE_NUMBUTS_LR_ALIGN | ||||
| /* Use new 'align' computation code. */ | |||||
| #define NEW_ALIGN_CODE | |||||
campbellbarton: *picky*, for internal ifdefs UI currently uses `USE_` prefix. - maybe `USE_UIBUT_SPATIAL_ALIGN`… | |||||
| /* PieMenuData->flags */ | /* PieMenuData->flags */ | ||||
| enum { | enum { | ||||
| UI_PIE_DEGREES_RANGE_LARGE = (1 << 0), /* pie menu item collision is detected at 90 degrees */ | UI_PIE_DEGREES_RANGE_LARGE = (1 << 0), /* pie menu item collision is detected at 90 degrees */ | ||||
| UI_PIE_INITIAL_DIRECTION = (1 << 1), /* use initial center of pie menu to calculate direction */ | UI_PIE_INITIAL_DIRECTION = (1 << 1), /* use initial center of pie menu to calculate direction */ | ||||
| UI_PIE_DRAG_STYLE = (1 << 2), /* pie menu is drag style */ | UI_PIE_DRAG_STYLE = (1 << 2), /* pie menu is drag style */ | ||||
| UI_PIE_INVALID_DIR = (1 << 3), /* mouse not far enough from center position */ | UI_PIE_INVALID_DIR = (1 << 3), /* mouse not far enough from center position */ | ||||
| UI_PIE_CLICK_STYLE = (1 << 4), /* pie menu changed to click style, click to confirm */ | UI_PIE_CLICK_STYLE = (1 << 4), /* pie menu changed to click style, click to confirm */ | ||||
| UI_PIE_ANIMATION_FINISHED = (1 << 5), /* pie animation finished, do not calculate any more motion */ | UI_PIE_ANIMATION_FINISHED = (1 << 5), /* pie animation finished, do not calculate any more motion */ | ||||
| ▲ Show 20 Lines • Show All 546 Lines • Show Last 20 Lines | |||||
*picky*, for internal ifdefs UI currently uses USE_ prefix. - maybe USE_UIBUT_SPATIAL_ALIGN ?