diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-03-29 12:25:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-03-29 18:21:02 +0300 |
commit | 9a0e1950eae744bde5f00d4799be5448bf14122b (patch) | |
tree | b1104b20700cf150771fe875b2ef54d957658318 /source/blender/makesdna | |
parent | 1f6c2507f80ce4330fd9ddad8b4ea62086008012 (diff) |
Cover DNA_gpencil_types.h with C++ structure methods
Ref T96847
Maniphest Tasks: T96847
Differential Revision: https://developer.blender.org/D14487
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index 8a30a7e8c99..4a1b639122a 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -48,6 +48,8 @@ typedef struct bGPDcontrolpoint { } bGPDcontrolpoint; typedef struct bGPDspoint_Runtime { + DNA_DEFINE_CXX_METHODS(bGPDspoint_Runtime) + /** Original point (used to dereference evaluated data) */ struct bGPDspoint *pt_orig; /** Original index array position */ @@ -61,6 +63,8 @@ typedef struct bGPDspoint_Runtime { * This assumes that the bottom-left corner is (0,0) */ typedef struct bGPDspoint { + DNA_DEFINE_CXX_METHODS(bGPDspoint) + /** Co-ordinates of point (usually 2d, but can be 3d as well). */ float x, y, z; /** Pressure of input device (from 0 to 1) at this point. */ @@ -120,6 +124,8 @@ typedef struct bGPDtriangle { /* color of palettes */ typedef struct bGPDpalettecolor { + DNA_DEFINE_CXX_METHODS(bGPDpalettecolor) + struct bGPDpalettecolor *next, *prev; /** Color name. Must be unique. */ char info[64]; @@ -148,6 +154,8 @@ typedef enum eGPDpalettecolor_Flag { /* palette of colors */ typedef struct bGPDpalette { + DNA_DEFINE_CXX_METHODS(bGPDpalette) + struct bGPDpalette *next, *prev; /** Pointer to individual colors. */ @@ -203,6 +211,8 @@ typedef enum eGPDcurve_point_Flag { /* Curve for Bezier Editing. */ typedef struct bGPDcurve { + DNA_DEFINE_CXX_METHODS(bGPDcurve) + /** Array of BezTriple. */ bGPDcurve_point *curve_points; /** Total number of curve points. */ @@ -225,6 +235,8 @@ typedef enum bGPDcurve_Flag { /* Runtime temp data for bGPDstroke */ typedef struct bGPDstroke_Runtime { + DNA_DEFINE_CXX_METHODS(bGPDstroke_Runtime) + /** temporary layer name only used during copy/paste to put the stroke in the original layer */ char tmp_layerinfo[128]; @@ -248,6 +260,8 @@ typedef struct bGPDstroke_Runtime { * drawn by the user in one 'mouse-down'->'mouse-up' operation */ typedef struct bGPDstroke { + DNA_DEFINE_CXX_METHODS(bGPDstroke) + struct bGPDstroke *next, *prev; /** Array of data-points for stroke. */ @@ -369,6 +383,8 @@ typedef enum eGPDstroke_Arrowstyle { /* Runtime temp data for bGPDframe */ typedef struct bGPDframe_Runtime { + DNA_DEFINE_CXX_METHODS(bGPDframe_Runtime) + /** Index of this frame in the listbase of frames. */ int frameid; /** Onion offset from active frame. 0 if not onion. INT_MAX to bypass frame. */ @@ -382,6 +398,8 @@ typedef struct bGPDframe_Runtime { * -> Acts as storage for the 'image' formed by strokes */ typedef struct bGPDframe { + DNA_DEFINE_CXX_METHODS(bGPDframe) + struct bGPDframe *next, *prev; /** List of the simplified 'strokes' that make up the frame's data. */ @@ -416,6 +434,8 @@ typedef enum eGPDframe_Flag { /* List of masking layers. */ typedef struct bGPDlayer_Mask { + DNA_DEFINE_CXX_METHODS(bGPDlayer_Mask) + struct bGPDlayer_Mask *next, *prev; char name[128]; short flag; @@ -434,6 +454,8 @@ typedef enum ebGPDlayer_Mask_Flag { /* Runtime temp data for bGPDlayer */ typedef struct bGPDlayer_Runtime { + DNA_DEFINE_CXX_METHODS(bGPDlayer_Runtime) + /** Id for dynamic icon used to show annotation color preview for layer. */ int icon_id; char _pad[4]; @@ -443,6 +465,8 @@ typedef struct bGPDlayer_Runtime { /* Grease-Pencil Annotations - 'Layer' */ typedef struct bGPDlayer { + DNA_DEFINE_CXX_METHODS(bGPDlayer) + struct bGPDlayer *next, *prev; /** List of annotations to display for frames (bGPDframe list). */ @@ -580,6 +604,8 @@ typedef enum eGPLayerBlendModes { /* Runtime temp data for bGPdata */ typedef struct bGPdata_Runtime { + DNA_DEFINE_CXX_METHODS(bGPdata_Runtime) + /** Stroke buffer. */ void *sbuffer; /** Temp batches cleared after drawing. */ @@ -642,6 +668,8 @@ typedef struct bGPgrid { /* Grease-Pencil Annotations - 'DataBlock' */ typedef struct bGPdata { + DNA_DEFINE_CXX_METHODS(bGPdata) + /** Grease Pencil data is a data-block. */ ID id; /** Animation data - for animating draw settings. */ |