Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_space_types.h
| Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
| * are derived (implicitly) from. Would be | * are derived (implicitly) from. Would be | ||||
| * good to make this explicit. | * good to make this explicit. | ||||
| */ | */ | ||||
| typedef struct SpaceLink { | typedef struct SpaceLink { | ||||
| struct SpaceLink *next, *prev; | struct SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| } SpaceLink; | } SpaceLink; | ||||
| enum { | |||||
| SPACE_LINK_FLAG_IS_DYNAMIC = (1 << 0), | |||||
| }; | |||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Space Info | /** \name Space Info | ||||
| * \{ */ | * \{ */ | ||||
| /* Info Header */ | /* Info Header */ | ||||
| typedef struct SpaceInfo { | typedef struct SpaceInfo { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| char rpt_mask; | char rpt_mask; | ||||
| char pad[7]; | char pad[7]; | ||||
| } SpaceInfo; | } SpaceInfo; | ||||
| /* SpaceInfo.rpt_mask */ | /* SpaceInfo.rpt_mask */ | ||||
| typedef enum eSpaceInfo_RptMask { | typedef enum eSpaceInfo_RptMask { | ||||
| Show All 11 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* Properties Editor */ | /* Properties Editor */ | ||||
| typedef struct SpaceButs { | typedef struct SpaceButs { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | ||||
| /* For different kinds of property editors (exposed in the space type selector). */ | short _pad1; | ||||
| short space_subtype; | |||||
| short mainb, mainbo, mainbuser; /* context tabs */ | short mainb, mainbo, mainbuser; /* context tabs */ | ||||
| short re_align, align; /* align for panels */ | short re_align, align; /* align for panels */ | ||||
| short preview; /* preview is signal to refresh */ | short preview; /* preview is signal to refresh */ | ||||
| char flag; | char flag; | ||||
| char collection_context; | char collection_context; | ||||
| void *path; /* runtime */ | void *path; /* runtime */ | ||||
| int pathflag, dataicon; /* runtime */ | int pathflag, dataicon; /* runtime */ | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* Outliner */ | /* Outliner */ | ||||
| typedef struct SpaceOops { | typedef struct SpaceOops { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | ||||
| ListBase tree; | ListBase tree; | ||||
| /* treestore is an ordered list of TreeStoreElem's from outliner tree; | /* treestore is an ordered list of TreeStoreElem's from outliner tree; | ||||
| * Note that treestore may contain duplicate elements if element | * Note that treestore may contain duplicate elements if element | ||||
| ▲ Show 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* 'Graph' Editor (formerly known as the IPO Editor) */ | /* 'Graph' Editor (formerly known as the IPO Editor) */ | ||||
| typedef struct SpaceIpo { | typedef struct SpaceIpo { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | ||||
| struct bDopeSheet *ads; /* settings for filtering animation data (NOTE: we use a pointer due to code-linking issues) */ | struct bDopeSheet *ads; /* settings for filtering animation data (NOTE: we use a pointer due to code-linking issues) */ | ||||
| ListBase ghostCurves; /* sampled snapshots of F-Curves used as in-session guides */ | ListBase ghostCurves; /* sampled snapshots of F-Curves used as in-session guides */ | ||||
| ▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* NLA Editor */ | /* NLA Editor */ | ||||
| typedef struct SpaceNla { | typedef struct SpaceNla { | ||||
| struct SpaceLink *next, *prev; | struct SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| short autosnap; /* this uses the same settings as autosnap for Action Editor */ | short autosnap; /* this uses the same settings as autosnap for Action Editor */ | ||||
| short flag; | short flag; | ||||
| int pad; | int pad; | ||||
| struct bDopeSheet *ads; | struct bDopeSheet *ads; | ||||
| View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* Sequencer */ | /* Sequencer */ | ||||
| typedef struct SpaceSeq { | typedef struct SpaceSeq { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | ||||
| float xof DNA_DEPRECATED, yof DNA_DEPRECATED; /* deprecated: offset for drawing the image preview */ | float xof DNA_DEPRECATED, yof DNA_DEPRECATED; /* deprecated: offset for drawing the image preview */ | ||||
| short mainb; /* weird name for the sequencer subtype (seq, image, luma... etc) */ | short mainb; /* weird name for the sequencer subtype (seq, image, luma... etc) */ | ||||
| short render_size; /* eSpaceSeq_Proxy_RenderSize */ | short render_size; /* eSpaceSeq_Proxy_RenderSize */ | ||||
| short chanshown; | short chanshown; | ||||
| ▲ Show 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
| } FileSelectParams; | } FileSelectParams; | ||||
| /* File Browser */ | /* File Browser */ | ||||
| typedef struct SpaceFile { | typedef struct SpaceFile { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| int scroll_offset; | int scroll_offset; | ||||
| struct FileSelectParams *params; /* config and input for file select */ | struct FileSelectParams *params; /* config and input for file select */ | ||||
| struct FileList *files; /* holds the list of files to show */ | struct FileList *files; /* holds the list of files to show */ | ||||
| ▲ Show 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* Image/UV Editor */ | /* Image/UV Editor */ | ||||
| typedef struct SpaceImage { | typedef struct SpaceImage { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| struct Image *image; | struct Image *image; | ||||
| struct ImageUser iuser; | struct ImageUser iuser; | ||||
| struct Scopes scopes; /* histogram waveform and vectorscope */ | struct Scopes scopes; /* histogram waveform and vectorscope */ | ||||
| struct Histogram sample_line_hist; /* sample line histogram */ | struct Histogram sample_line_hist; /* sample line histogram */ | ||||
| ▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| /* Text Editor */ | /* Text Editor */ | ||||
| typedef struct SpaceText { | typedef struct SpaceText { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| struct Text *text; | struct Text *text; | ||||
| int top, viewlines; | int top, viewlines; | ||||
| short flags, menunr; | short flags, menunr; | ||||
| short lheight; /* user preference, is font_size! */ | short lheight; /* user preference, is font_size! */ | ||||
| ▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
| #define SCRIPT_SET_NULL(_script) _script->py_draw = _script->py_event = _script->py_button = _script->py_browsercallback = _script->py_globaldict = NULL; _script->flags = 0 | #define SCRIPT_SET_NULL(_script) _script->py_draw = _script->py_event = _script->py_button = _script->py_browsercallback = _script->py_globaldict = NULL; _script->flags = 0 | ||||
| /* Script View - Obsolete (pre 2.5) */ | /* Script View - Obsolete (pre 2.5) */ | ||||
| typedef struct SpaceScript { | typedef struct SpaceScript { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| struct Script *script; | struct Script *script; | ||||
| short flags, menunr; | short flags, menunr; | ||||
| int pad1; | int pad1; | ||||
| void *but_refs; | void *but_refs; | ||||
| Show All 16 Lines | typedef struct bNodeTreePath { | ||||
| char node_name[64]; /* MAX_NAME */ | char node_name[64]; /* MAX_NAME */ | ||||
| } bNodeTreePath; | } bNodeTreePath; | ||||
| typedef struct SpaceNode { | typedef struct SpaceNode { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ | ||||
| struct ID *id, *from; /* context, no need to save in file? well... pinning... */ | struct ID *id, *from; /* context, no need to save in file? well... pinning... */ | ||||
| short flag, pad1; /* menunr: browse id block in header */ | short flag, pad1; /* menunr: browse id block in header */ | ||||
| float aspect, pad2; /* internal state variables */ | float aspect, pad2; /* internal state variables */ | ||||
| ▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | |||||
| /* Console View */ | /* Console View */ | ||||
| typedef struct SpaceConsole { | typedef struct SpaceConsole { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| /* space vars */ | /* space vars */ | ||||
| int lheight, pad; | int lheight, pad; | ||||
| ListBase scrollback; /* ConsoleLine; output */ | ListBase scrollback; /* ConsoleLine; output */ | ||||
| ListBase history; /* ConsoleLine; command history, current edited line is the first */ | ListBase history; /* ConsoleLine; command history, current edited line is the first */ | ||||
| char prompt[256]; | char prompt[256]; | ||||
| Show All 9 Lines | |||||
| /** \name User Preferences | /** \name User Preferences | ||||
| * \{ */ | * \{ */ | ||||
| typedef struct SpaceUserPref { | typedef struct SpaceUserPref { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| char _pad1[7]; | char _pad1[7]; | ||||
| char filter_type; | char filter_type; | ||||
| char filter[64]; /* search term for filtering in the UI */ | char filter[64]; /* search term for filtering in the UI */ | ||||
| } SpaceUserPref; | } SpaceUserPref; | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Motion Tracking | /** \name Motion Tracking | ||||
| * \{ */ | * \{ */ | ||||
| /* Clip Editor */ | /* Clip Editor */ | ||||
| typedef struct SpaceClip { | typedef struct SpaceClip { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| float xof, yof; /* user defined offset, image is centered */ | float xof, yof; /* user defined offset, image is centered */ | ||||
| float xlockof, ylockof; /* user defined offset from locked position */ | float xlockof, ylockof; /* user defined offset from locked position */ | ||||
| float zoom; /* user defined zoom level */ | float zoom; /* user defined zoom level */ | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| * Should be: #ifndef WITH_GLOBAL_AREA_WRITING */ | * Should be: #ifndef WITH_GLOBAL_AREA_WRITING */ | ||||
| # | # | ||||
| # | # | ||||
| typedef struct SpaceTopBar { | typedef struct SpaceTopBar { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| } SpaceTopBar; | } SpaceTopBar; | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Status Bar | /** \name Status Bar | ||||
| * \{ */ | * \{ */ | ||||
| /* These two lines with # tell makesdna this struct can be excluded. | /* These two lines with # tell makesdna this struct can be excluded. | ||||
| * Should be: #ifndef WITH_GLOBAL_AREA_WRITING */ | * Should be: #ifndef WITH_GLOBAL_AREA_WRITING */ | ||||
| # | # | ||||
| # | # | ||||
| typedef struct SpaceStatusBar { | typedef struct SpaceStatusBar { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | short space_subtype; | ||||
| char _pad0[4]; | |||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| } SpaceStatusBar; | } SpaceStatusBar; | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Space Defines (eSpace_Type) | /** \name Space Defines (eSpace_Type) | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||