Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_screen_types.h
| Show First 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | enum { | ||||
| /** Special value, bitflag used to reverse order! */ | /** Special value, bitflag used to reverse order! */ | ||||
| UILST_FLT_SORT_REVERSE = 1u << 31, | UILST_FLT_SORT_REVERSE = 1u << 31, | ||||
| }; | }; | ||||
| #define UILST_FLT_SORT_MASK (((unsigned int)(UILST_FLT_SORT_REVERSE | UILST_FLT_SORT_LOCK)) - 1) | #define UILST_FLT_SORT_MASK (((unsigned int)(UILST_FLT_SORT_REVERSE | UILST_FLT_SORT_LOCK)) - 1) | ||||
| /* regiontype, first two are the default set */ | /* regiontype, first two are the default set */ | ||||
| /* Do NOT change order, append on end. Types are hardcoded needed */ | /* Do NOT change order, append on end. Types are hardcoded needed */ | ||||
| enum { | typedef enum eRegionType { | ||||
| RGN_TYPE_WINDOW = 0, | RGN_TYPE_WINDOW = 0, | ||||
| RGN_TYPE_HEADER = 1, | RGN_TYPE_HEADER = 1, | ||||
| RGN_TYPE_CHANNELS = 2, | RGN_TYPE_CHANNELS = 2, | ||||
| RGN_TYPE_TEMPORARY = 3, | RGN_TYPE_TEMPORARY = 3, | ||||
| RGN_TYPE_UI = 4, | RGN_TYPE_UI = 4, | ||||
| RGN_TYPE_TOOLS = 5, | RGN_TYPE_TOOLS = 5, | ||||
| RGN_TYPE_TOOL_PROPS = 6, | RGN_TYPE_TOOL_PROPS = 6, | ||||
| RGN_TYPE_PREVIEW = 7, | RGN_TYPE_PREVIEW = 7, | ||||
| RGN_TYPE_HUD = 8, | RGN_TYPE_HUD = 8, | ||||
| /* Region to navigate the main region from (RGN_TYPE_WINDOW). */ | /* Region to navigate the main region from (RGN_TYPE_WINDOW). */ | ||||
| RGN_TYPE_NAV_BAR = 9, | RGN_TYPE_NAV_BAR = 9, | ||||
| /* A place for buttons to trigger execution of something that was set up in other regions. */ | /* A place for buttons to trigger execution of something that was set up in other regions. */ | ||||
| RGN_TYPE_EXECUTE = 10, | RGN_TYPE_EXECUTE = 10, | ||||
| RGN_TYPE_FOOTER = 11, | RGN_TYPE_FOOTER = 11, | ||||
| RGN_TYPE_TOOL_HEADER = 12, | RGN_TYPE_TOOL_HEADER = 12, | ||||
| }; | } eRegionType; | ||||
| /* use for function args */ | /* use for function args */ | ||||
| #define RGN_TYPE_ANY -1 | #define RGN_TYPE_ANY -1 | ||||
| /* Region supports panel tabs (categories). */ | /* Region supports panel tabs (categories). */ | ||||
| #define RGN_TYPE_HAS_CATEGORY_MASK (1 << RGN_TYPE_UI) | #define RGN_TYPE_HAS_CATEGORY_MASK (1 << RGN_TYPE_UI) | ||||
| /** #ARegion.alignment */ | /** #ARegion.alignment */ | ||||
| enum { | enum { | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||