Blender V4.3
gpencil_data.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math_geom.h"
#include "BLI_math_matrix.h"
#include "BLI_math_vector.h"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "DNA_anim_types.h"
#include "DNA_brush_types.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_material_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "BKE_anim_data.hh"
#include "BKE_animsys.h"
#include "BKE_brush.hh"
#include "BKE_context.hh"
#include "BKE_deform.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_gpencil_legacy.h"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_material.h"
#include "BKE_paint.hh"
#include "BKE_report.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "ED_gpencil_legacy.hh"
#include "ED_object.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "gpencil_intern.hh"

Go to the source code of this file.

Enumerations

enum  { GP_LAYER_MOVE_UP = -1 , GP_LAYER_MOVE_DOWN = 1 }
 

Functions

static bool gpencil_data_add_poll (bContext *C)
 
static int gpencil_data_add_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_annotation_add (wmOperatorType *ot)
 
static bool gpencil_data_unlink_poll (bContext *C)
 
static int gpencil_data_unlink_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_data_unlink (wmOperatorType *ot)
 
static int gpencil_layer_add_exec (bContext *C, wmOperator *op)
 
static bool gpencil_add_annotation_poll (bContext *C)
 
void GPENCIL_OT_layer_annotation_add (wmOperatorType *ot)
 
static int gpencil_layer_remove_exec (bContext *C, wmOperator *op)
 
static bool gpencil_active_layer_annotation_poll (bContext *C)
 
void GPENCIL_OT_layer_annotation_remove (wmOperatorType *ot)
 
static int gpencil_layer_move_exec (bContext *C, wmOperator *op)
 
void GPENCIL_OT_layer_annotation_move (wmOperatorType *ot)
 

Detailed Description

Operators for dealing with GP data-blocks and layers.

Definition in file gpencil_data.cc.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GP_LAYER_MOVE_UP 
GP_LAYER_MOVE_DOWN 

Definition at line 348 of file gpencil_data.cc.

Function Documentation

◆ gpencil_active_layer_annotation_poll()

static bool gpencil_active_layer_annotation_poll ( bContext * C)
static

◆ gpencil_add_annotation_poll()

static bool gpencil_add_annotation_poll ( bContext * C)
static

Definition at line 251 of file gpencil_data.cc.

References ED_annotation_data_get_pointers().

Referenced by GPENCIL_OT_layer_annotation_add().

◆ gpencil_data_add_exec()

◆ gpencil_data_add_poll()

static bool gpencil_data_add_poll ( bContext * C)
static

Definition at line 75 of file gpencil_data.cc.

References ED_annotation_data_get_pointers().

Referenced by GPENCIL_OT_annotation_add().

◆ gpencil_data_unlink_exec()

◆ gpencil_data_unlink_poll()

static bool gpencil_data_unlink_poll ( bContext * C)
static

◆ gpencil_layer_add_exec()

◆ gpencil_layer_move_exec()

◆ gpencil_layer_remove_exec()

◆ GPENCIL_OT_annotation_add()

◆ GPENCIL_OT_data_unlink()

◆ GPENCIL_OT_layer_annotation_add()

◆ GPENCIL_OT_layer_annotation_move()

◆ GPENCIL_OT_layer_annotation_remove()