Blender V4.3
bpy_rna_callback.cc File Reference
#include <Python.h>
#include "../generic/py_capi_rna.hh"
#include "../generic/python_utildefines.hh"
#include "DNA_space_types.h"
#include "RNA_access.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "BKE_screen.hh"
#include "WM_api.hh"
#include "ED_space_api.hh"
#include "BPY_extern.hh"
#include "bpy_capi_utils.hh"
#include "bpy_rna.hh"
#include "bpy_rna_callback.hh"

Go to the source code of this file.

Functions

static void cb_region_draw (const bContext *C, ARegion *, void *customdata)
 
static PyObject * PyC_Tuple_CopySized (PyObject *src, int len_dst)
 
static void cb_wm_cursor_draw (bContext *C, int x, int y, void *customdata)
 
static eSpace_Type rna_Space_refine_reverse (StructRNA *srna)
 
static void cb_rna_capsule_destructor (PyObject *capsule)
 
PyObject * pyrna_callback_classmethod_add (PyObject *, PyObject *args)
 
PyObject * pyrna_callback_classmethod_remove (PyObject *, PyObject *args)
 
Public API
static void cb_customdata_free (void *customdata)
 
void BPY_callback_screen_free (ARegionType *art)
 
void BPY_callback_wm_free (wmWindowManager *wm)
 

Variables

static const char * rna_capsual_id = "RNA_HANDLE"
 
static const char * rna_capsual_id_invalid = "RNA_HANDLE_REMOVED"
 
static const EnumPropertyItem region_draw_mode_items []
 

Detailed Description

This file currently exposes callbacks for interface regions but may be extended later.

Definition in file bpy_rna_callback.cc.

Function Documentation

◆ BPY_callback_screen_free()

void BPY_callback_screen_free ( ARegionType * art)

◆ BPY_callback_wm_free()

void BPY_callback_wm_free ( wmWindowManager * wm)

◆ cb_customdata_free()

static void cb_customdata_free ( void * customdata)
static

Definition at line 472 of file bpy_rna_callback.cc.

Referenced by BPY_callback_screen_free(), and BPY_callback_wm_free().

◆ cb_region_draw()

static void cb_region_draw ( const bContext * C,
ARegion * ,
void * customdata )
static

◆ cb_rna_capsule_destructor()

static void cb_rna_capsule_destructor ( PyObject * capsule)
static

Definition at line 250 of file bpy_rna_callback.cc.

Referenced by pyrna_callback_classmethod_add().

◆ cb_wm_cursor_draw()

static void cb_wm_cursor_draw ( bContext * C,
int x,
int y,
void * customdata )
static

◆ PyC_Tuple_CopySized()

static PyObject * PyC_Tuple_CopySized ( PyObject * src,
int len_dst )
static

Definition at line 70 of file bpy_rna_callback.cc.

References BLI_assert.

Referenced by cb_wm_cursor_draw().

◆ pyrna_callback_classmethod_add()

◆ pyrna_callback_classmethod_remove()

◆ rna_Space_refine_reverse()

Variable Documentation

◆ region_draw_mode_items

const EnumPropertyItem region_draw_mode_items[]
static
Initial value:
= {
{REGION_DRAW_POST_PIXEL, "POST_PIXEL", 0, "Post Pixel", ""},
{REGION_DRAW_POST_VIEW, "POST_VIEW", 0, "Post View", ""},
{REGION_DRAW_PRE_VIEW, "PRE_VIEW", 0, "Pre View", ""},
{REGION_DRAW_BACKDROP, "BACKDROP", 0, "Backdrop", ""},
{0, nullptr, 0, nullptr, nullptr},
}
#define REGION_DRAW_POST_VIEW
#define REGION_DRAW_BACKDROP
#define REGION_DRAW_POST_PIXEL
#define REGION_DRAW_PRE_VIEW

Definition at line 39 of file bpy_rna_callback.cc.

Referenced by pyrna_callback_classmethod_add().

◆ rna_capsual_id

const char* rna_capsual_id = "RNA_HANDLE"
static

◆ rna_capsual_id_invalid

const char* rna_capsual_id_invalid = "RNA_HANDLE_REMOVED"
static

Definition at line 37 of file bpy_rna_callback.cc.

Referenced by pyrna_callback_classmethod_remove().