Blender V4.3
bpy_app_sdl.cc File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "bpy_app_sdl.hh"
#include "../generic/py_capi_utils.hh"

Go to the source code of this file.

Macros

#define SetStrItem(str)   PyStructSequence_SET_ITEM(sdl_info, pos++, PyUnicode_FromString(str))
 
#define SetObjItem(obj)   PyStructSequence_SET_ITEM(sdl_info, pos++, obj)
 

Functions

static PyObject * make_sdl_info ()
 
PyObject * BPY_app_sdl_struct ()
 

Variables

static PyTypeObject BlenderAppSDLType
 
static PyStructSequence_Field app_sdl_info_fields []
 
static PyStructSequence_Desc app_sdl_info_desc
 

Macro Definition Documentation

◆ SetObjItem

#define SetObjItem ( obj)    PyStructSequence_SET_ITEM(sdl_info, pos++, obj)

Referenced by make_sdl_info().

◆ SetStrItem

#define SetStrItem ( str)    PyStructSequence_SET_ITEM(sdl_info, pos++, PyUnicode_FromString(str))

Referenced by make_sdl_info().

Function Documentation

◆ BPY_app_sdl_struct()

PyObject * BPY_app_sdl_struct ( )

Definition at line 92 of file bpy_app_sdl.cc.

References app_sdl_info_desc, BlenderAppSDLType, make_sdl_info(), and ret.

Referenced by make_app_info().

◆ make_sdl_info()

static PyObject * make_sdl_info ( )
static

Definition at line 47 of file bpy_app_sdl.cc.

References BlenderAppSDLType, pos, PyC_Tuple_Pack_I32(), SetObjItem, SetStrItem, and UNLIKELY.

Referenced by BPY_app_sdl_struct().

Variable Documentation

◆ app_sdl_info_desc

PyStructSequence_Desc app_sdl_info_desc
static
Initial value:
= {
"bpy.app.sdl",
"This module contains information about SDL blender is linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_sdl_info_fields[]

Definition at line 40 of file bpy_app_sdl.cc.

Referenced by BPY_app_sdl_struct().

◆ app_sdl_info_fields

PyStructSequence_Field app_sdl_info_fields[]
static
Initial value:
= {
{"supported", ("Boolean, True when Blender is built with SDL support")},
{"version", ("The SDL version as a tuple of 3 numbers")},
{"version_string", ("The SDL version formatted as a string")},
{nullptr},
}

Definition at line 33 of file bpy_app_sdl.cc.

◆ BlenderAppSDLType

PyTypeObject BlenderAppSDLType
static

Definition at line 31 of file bpy_app_sdl.cc.

Referenced by BPY_app_sdl_struct(), and make_sdl_info().