Blender V5.0
gpencil_data.cc File Reference
#include <cstdlib>
#include <cstring>
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_screen_types.h"
#include "BKE_anim_data.hh"
#include "BKE_animsys.h"
#include "BKE_brush.hh"
#include "BKE_context.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_gpencil_legacy.h"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "BKE_paint.hh"
#include "BKE_report.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 "ED_view3d.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 wmOperatorStatus gpencil_data_add_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_annotation_add (wmOperatorType *ot)
static bool gpencil_data_unlink_poll (bContext *C)
static wmOperatorStatus gpencil_data_unlink_exec (bContext *C, wmOperator *op)
void GPENCIL_OT_data_unlink (wmOperatorType *ot)
static wmOperatorStatus 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 wmOperatorStatus 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 wmOperatorStatus 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 298 of file gpencil_data.cc.

Function Documentation

◆ gpencil_active_layer_annotation_poll()

bool gpencil_active_layer_annotation_poll ( bContext * C)
static

◆ gpencil_add_annotation_poll()

bool gpencil_add_annotation_poll ( bContext * C)
static

Definition at line 203 of file gpencil_data.cc.

References C, and ED_annotation_data_get_pointers().

Referenced by GPENCIL_OT_layer_annotation_add().

◆ gpencil_data_add_exec()

◆ gpencil_data_add_poll()

bool gpencil_data_add_poll ( bContext * C)
static

Definition at line 54 of file gpencil_data.cc.

References C, and ED_annotation_data_get_pointers().

Referenced by GPENCIL_OT_annotation_add().

◆ gpencil_data_unlink_exec()

◆ gpencil_data_unlink_poll()

bool gpencil_data_unlink_poll ( bContext * C)
static

◆ gpencil_layer_add_exec()

◆ gpencil_layer_move_exec()

◆ gpencil_layer_remove_exec()

◆ GPENCIL_OT_annotation_add()

void GPENCIL_OT_annotation_add ( wmOperatorType * ot)

◆ GPENCIL_OT_data_unlink()

void GPENCIL_OT_data_unlink ( wmOperatorType * ot)

◆ GPENCIL_OT_layer_annotation_add()

void GPENCIL_OT_layer_annotation_add ( wmOperatorType * ot)

◆ GPENCIL_OT_layer_annotation_move()

◆ GPENCIL_OT_layer_annotation_remove()

void GPENCIL_OT_layer_annotation_remove ( wmOperatorType * ot)