Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_space_types.h
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
| struct bGPdata; | struct bGPdata; | ||||
| struct bNodeTree; | struct bNodeTree; | ||||
| struct wmOperator; | struct wmOperator; | ||||
| struct wmTimer; | struct wmTimer; | ||||
| /* Defined in `buttons_intern.h`. */ | /* Defined in `buttons_intern.h`. */ | ||||
| typedef struct SpaceProperties_Runtime SpaceProperties_Runtime; | typedef struct SpaceProperties_Runtime SpaceProperties_Runtime; | ||||
| /* Defined in `node_intern.h`. */ | |||||
| typedef struct SpaceNode_Runtime SpaceNode_Runtime; | |||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name SpaceLink (Base) | /** \name SpaceLink (Base) | ||||
| * \{ */ | * \{ */ | ||||
| /** | /** | ||||
| * The base structure all the other spaces | * The base structure all the other spaces | ||||
| * are derived (implicitly) from. Would be | * are derived (implicitly) from. Would be | ||||
| * good to make this explicit. | * good to make this explicit. | ||||
| ▲ Show 20 Lines • Show All 1,005 Lines • ▼ Show 20 Lines | |||||
| /* Container for mere direntry, with additional asset-related data. */ | /* Container for mere direntry, with additional asset-related data. */ | ||||
| # | # | ||||
| # | # | ||||
| typedef struct FileDirEntry { | typedef struct FileDirEntry { | ||||
| struct FileDirEntry *next, *prev; | struct FileDirEntry *next, *prev; | ||||
| int uuid[4]; | int uuid[4]; | ||||
| /* Name needs freeing if FILE_ENTRY_NAME_FREE is set. Otherwise this is a direct pointer to a | |||||
| * name buffer. */ | |||||
| char *name; | char *name; | ||||
| char *description; | char *description; | ||||
| /* Either point to active variant/revision if available, or own entry | /* Either point to active variant/revision if available, or own entry | ||||
| * (in mere filebrowser case). */ | * (in mere filebrowser case). */ | ||||
| FileDirEntryRevision *entry; | FileDirEntryRevision *entry; | ||||
| /** #eFileSel_File_Types. */ | /** #eFileSel_File_Types. */ | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | enum { | ||||
| ASSET_STATUS_LOCAL = 1 << 0, /* If active uuid is available locally/immediately. */ | ASSET_STATUS_LOCAL = 1 << 0, /* If active uuid is available locally/immediately. */ | ||||
| ASSET_STATUS_LATEST = 1 << 1, /* If active uuid is latest available version. */ | ASSET_STATUS_LATEST = 1 << 1, /* If active uuid is latest available version. */ | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| /* FileDirEntry.flags */ | /* FileDirEntry.flags */ | ||||
| enum { | enum { | ||||
| FILE_ENTRY_INVALID_PREVIEW = 1 << 0, /* The preview for this entry could not be generated. */ | FILE_ENTRY_INVALID_PREVIEW = 1 << 0, /* The preview for this entry could not be generated. */ | ||||
| FILE_ENTRY_NAME_FREE = 1 << 1, | |||||
| }; | }; | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Image/UV Editor | /** \name Image/UV Editor | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 340 Lines • ▼ Show 20 Lines | typedef struct SpaceNode { | ||||
| char _pad0[6]; | char _pad0[6]; | ||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| /** Deprecated, copied to region. */ | /** Deprecated, copied to region. */ | ||||
| View2D v2d DNA_DEPRECATED; | View2D v2d DNA_DEPRECATED; | ||||
| /** Context, no need to save in file? well... pinning... */ | /** Context, no need to save in file? well... pinning... */ | ||||
| struct ID *id, *from; | struct ID *id, *from; | ||||
| /** Menunr: browse id block in header. */ | |||||
| short flag; | short flag; | ||||
| char _pad1[2]; | |||||
| /** Internal state variables. */ | /** Direction for offsetting nodes on insertion. */ | ||||
| float aspect; | char insert_ofs_dir; | ||||
| char _pad2[4]; | char _pad1; | ||||
| /** Offset for drawing the backdrop. */ | /** Offset for drawing the backdrop. */ | ||||
| float xof, yof; | float xof, yof; | ||||
| /** Zoom for backdrop. */ | /** Zoom for backdrop. */ | ||||
| float zoom; | float zoom; | ||||
| /** Mouse pos for drawing socketless link and adding nodes. */ | |||||
| float cursor[2]; | |||||
| /** | /** | ||||
| * XXX nodetree pointer info is all in the path stack now, | * XXX nodetree pointer info is all in the path stack now, | ||||
| * remove later on and use bNodeTreePath instead. | * remove later on and use bNodeTreePath instead. | ||||
| * For now these variables are set when pushing/popping | * For now these variables are set when pushing/popping | ||||
| * from path stack, to avoid having to update all the functions and operators. | * from path stack, to avoid having to update all the functions and operators. | ||||
| * Can be done when design is accepted and everything is properly tested. | * Can be done when design is accepted and everything is properly tested. | ||||
| */ | */ | ||||
| ListBase treepath; | ListBase treepath; | ||||
| struct bNodeTree *nodetree, *edittree; | /* The tree farthest down in the group heirarchy. */ | ||||
| struct bNodeTree *edittree; | |||||
| struct bNodeTree *nodetree; | |||||
| /* tree type for the current node tree */ | /* tree type for the current node tree */ | ||||
| char tree_idname[64]; | char tree_idname[64]; | ||||
| /** Treetype: as same nodetree->type. */ | /** Treetype: as same nodetree->type. */ | ||||
| int treetype DNA_DEPRECATED; | int treetype DNA_DEPRECATED; | ||||
| char _pad3[4]; | |||||
| /** Texfrom object, world or brush. */ | /** Texfrom object, world or brush. */ | ||||
| short texfrom; | short texfrom; | ||||
| /** Shader from object or world. */ | /** Shader from object or world. */ | ||||
| short shaderfrom; | short shaderfrom; | ||||
| /** Currently on 0/1, for auto compo. */ | |||||
| short recalc; | |||||
| /** Direction for offsetting nodes on insertion. */ | |||||
| char insert_ofs_dir; | |||||
| char _pad4; | |||||
| /** Temporary data for modal linking operator. */ | |||||
| ListBase linkdrag; | |||||
| /* XXX hack for translate_attach op-macros to pass data from transform op to insert_offset op */ | |||||
| /** Temporary data for node insert offset (in UI called Auto-offset). */ | |||||
| struct NodeInsertOfsData *iofsd; | |||||
| /** Grease-pencil data. */ | /** Grease-pencil data. */ | ||||
| struct bGPdata *gpd; | struct bGPdata *gpd; | ||||
| SpaceNode_Runtime *runtime; | |||||
| } SpaceNode; | } SpaceNode; | ||||
| /* SpaceNode.flag */ | /* SpaceNode.flag */ | ||||
| typedef enum eSpaceNode_Flag { | typedef enum eSpaceNode_Flag { | ||||
| SNODE_BACKDRAW = (1 << 1), | SNODE_BACKDRAW = (1 << 1), | ||||
| SNODE_SHOW_GPENCIL = (1 << 2), | SNODE_SHOW_GPENCIL = (1 << 2), | ||||
| SNODE_USE_ALPHA = (1 << 3), | SNODE_USE_ALPHA = (1 << 3), | ||||
| SNODE_SHOW_ALPHA = (1 << 4), | SNODE_SHOW_ALPHA = (1 << 4), | ||||
| ▲ Show 20 Lines • Show All 313 Lines • Show Last 20 Lines | |||||