Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_space_types.h
| Show First 20 Lines • Show All 477 Lines • ▼ Show 20 Lines | typedef enum eGraphEdit_Mode { | ||||
| SIPO_MODE_DRIVERS = 1, | SIPO_MODE_DRIVERS = 1, | ||||
| } eGraphEdit_Mode; | } eGraphEdit_Mode; | ||||
| typedef enum eGraphEdit_Runtime_Flag { | typedef enum eGraphEdit_Runtime_Flag { | ||||
| /** Temporary flag to force channel selections to be synced with main. */ | /** Temporary flag to force channel selections to be synced with main. */ | ||||
| SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC = (1 << 0), | SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC = (1 << 0), | ||||
| /** Temporary flag to force fcurves to recalculate colors. */ | /** Temporary flag to force fcurves to recalculate colors. */ | ||||
| SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC_COLOR = (1 << 1), | SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC_COLOR = (1 << 1), | ||||
| /** | |||||
| * These flags are for the mouse-select code to communicate with the transform code. Click | |||||
| * dragging (tweaking) a handle sets the according left/right flag which transform code uses then | |||||
| * to limit translation to this side. */ | |||||
| SIPO_RUNTIME_FLAG_TWEAK_HANDLES_LEFT = (1 << 2), | |||||
| SIPO_RUNTIME_FLAG_TWEAK_HANDLES_RIGHT = (1 << 3), | |||||
| } eGraphEdit_Runtime_Flag; | } eGraphEdit_Runtime_Flag; | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name NLA Editor | /** \name NLA Editor | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | typedef enum eFileSel_File_Types { | ||||
| FILE_TYPE_BTX = (1 << 12), | FILE_TYPE_BTX = (1 << 12), | ||||
| FILE_TYPE_COLLADA = (1 << 13), | FILE_TYPE_COLLADA = (1 << 13), | ||||
| /** from filter_glob operator property */ | /** from filter_glob operator property */ | ||||
| FILE_TYPE_OPERATOR = (1 << 14), | FILE_TYPE_OPERATOR = (1 << 14), | ||||
| FILE_TYPE_APPLICATIONBUNDLE = (1 << 15), | FILE_TYPE_APPLICATIONBUNDLE = (1 << 15), | ||||
| FILE_TYPE_ALEMBIC = (1 << 16), | FILE_TYPE_ALEMBIC = (1 << 16), | ||||
| /** For all kinds of recognized import/export formats. No need for specialized types. */ | /** For all kinds of recognized import/export formats. No need for specialized types. */ | ||||
| FILE_TYPE_OBJECT_IO = (1 << 17), | FILE_TYPE_OBJECT_IO = (1 << 17), | ||||
| FILE_TYPE_USD = (1 << 18), | |||||
| /** An FS directory (i.e. S_ISDIR on its path is true). */ | /** An FS directory (i.e. S_ISDIR on its path is true). */ | ||||
| FILE_TYPE_DIR = (1 << 30), | FILE_TYPE_DIR = (1 << 30), | ||||
| FILE_TYPE_BLENDERLIB = (1u << 31), | FILE_TYPE_BLENDERLIB = (1u << 31), | ||||
| } eFileSel_File_Types; | } eFileSel_File_Types; | ||||
| /* Selection Flags in filesel: struct direntry, unsigned char selflag */ | /* Selection Flags in filesel: struct direntry, unsigned char selflag */ | ||||
| typedef enum eDirEntry_SelectFlag { | typedef enum eDirEntry_SelectFlag { | ||||
| ▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | typedef struct FileDirEntry { | ||||
| short status; | short status; | ||||
| short flags; | short flags; | ||||
| ListBase variants; | ListBase variants; | ||||
| int nbr_variants; | int nbr_variants; | ||||
| int act_variant; | int act_variant; | ||||
| } FileDirEntry; | } FileDirEntry; | ||||
| /** Array of direntries. | /** | ||||
| * Array of direntries. | |||||
| * | * | ||||
| * This struct is used in various, different contexts. | * This struct is used in various, different contexts. | ||||
| * | * | ||||
| * In Filebrowser UI, it stores the total number of available entries, the number of visible | * In Filebrowser UI, it stores the total number of available entries, the number of visible | ||||
| * (filtered) entries, and a subset of those in 'entries' ListBase, from idx_start (included) | * (filtered) entries, and a subset of those in 'entries' ListBase, from idx_start (included) | ||||
| * to idx_end (excluded). | * to idx_end (excluded). | ||||
| * | * | ||||
| * In AssetEngine context (i.e. outside of 'browsing' context), entries contain all needed data, | * In AssetEngine context (i.e. outside of 'browsing' context), entries contain all needed data, | ||||
| ▲ Show 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | typedef struct SpaceText { | ||||
| short margin_column; | short margin_column; | ||||
| /** Actual lineheight, dpi controlled. */ | /** Actual lineheight, dpi controlled. */ | ||||
| short lheight_dpi; | short lheight_dpi; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| /** Cache for faster drawing. */ | /** Cache for faster drawing. */ | ||||
| void *drawcache; | void *drawcache; | ||||
| /** Runtime, for scroll increments smaller than a line. */ | /** | ||||
| float scroll_accum[2]; | * Run-time for scroll increments smaller than a line (smooth scroll). | ||||
| * Values must be between zero and the line, column width: (cwidth, TXT_LINE_HEIGHT(st)). | |||||
| */ | |||||
| int scroll_ofs_px[2]; | |||||
| } SpaceText; | } SpaceText; | ||||
| /* SpaceText flags (moved from DNA_text_types.h) */ | /* SpaceText flags (moved from DNA_text_types.h) */ | ||||
| typedef enum eSpaceText_Flags { | typedef enum eSpaceText_Flags { | ||||
| /* scrollable */ | /* scrollable */ | ||||
| ST_SCROLL_SELECT = (1 << 0), | ST_SCROLL_SELECT = (1 << 0), | ||||
| /* clear namespace after script execution (BPY_main.c) */ | /* clear namespace after script execution (BPY_main.c) */ | ||||
| ST_CLEAR_NAMESPACE = (1 << 4), | ST_CLEAR_NAMESPACE = (1 << 4), | ||||
| ▲ Show 20 Lines • Show All 471 Lines • Show Last 20 Lines | |||||