Blender  V3.3
Functions | Variables
bpy_rna_callback.c File Reference
#include <Python.h>
#include "../generic/py_capi_rna.h"
#include "../generic/python_utildefines.h"
#include "DNA_space_types.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "ED_space_api.h"
#include "BPY_extern.h"
#include "bpy_capi_utils.h"
#include "bpy_rna.h"
#include "bpy_rna_callback.h"

Go to the source code of this file.

Functions

static void cb_region_draw (const bContext *C, ARegion *UNUSED(region), 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 *UNUSED(self), PyObject *args)
 
PyObject * pyrna_callback_classmethod_remove (PyObject *UNUSED(self), PyObject *args)
 
Public API
static void cb_customdata_free (void *customdata)
 
void BPY_callback_screen_free (struct ARegionType *art)
 
void BPY_callback_wm_free (struct 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.c.

Function Documentation

◆ BPY_callback_screen_free()

void BPY_callback_screen_free ( struct ARegionType art)

◆ BPY_callback_wm_free()

void BPY_callback_wm_free ( struct wmWindowManager wm)

◆ cb_customdata_free()

static void cb_customdata_free ( void customdata)
static

Definition at line 470 of file bpy_rna_callback.c.

Referenced by BPY_callback_screen_free(), and BPY_callback_wm_free().

◆ cb_region_draw()

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

◆ cb_rna_capsule_destructor()

static void cb_rna_capsule_destructor ( PyObject *  capsule)
static

Definition at line 251 of file bpy_rna_callback.c.

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 68 of file bpy_rna_callback.c.

References BLI_assert, and src.

Referenced by cb_wm_cursor_draw().

◆ pyrna_callback_classmethod_add()

PyObject* pyrna_callback_classmethod_add ( PyObject *  UNUSEDself,
PyObject *  args 
)

◆ pyrna_callback_classmethod_remove()

PyObject* pyrna_callback_classmethod_remove ( PyObject *  UNUSEDself,
PyObject *  args 
)

◆ rna_Space_refine_reverse()

static eSpace_Type rna_Space_refine_reverse ( StructRNA srna)
static

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, NULL, 0, NULL, NULL},
}
#define REGION_DRAW_POST_VIEW
Definition: ED_space_api.h:62
#define REGION_DRAW_BACKDROP
Definition: ED_space_api.h:65
#define REGION_DRAW_POST_PIXEL
Definition: ED_space_api.h:63
#define REGION_DRAW_PRE_VIEW
Definition: ED_space_api.h:64

Definition at line 37 of file bpy_rna_callback.c.

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 35 of file bpy_rna_callback.c.

Referenced by pyrna_callback_classmethod_remove().