Blender V5.0
bpy_app_sdl.cc File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "../generic/python_compat.hh"
#include "bpy_app_sdl.hh"
#include "../generic/py_capi_utils.hh"

Go to the source code of this file.

Macros

#define SetStrItem(str)
#define SetObjItem(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)
Value:
PyStructSequence_SET_ITEM(sdl_info, pos++, obj)
uint pos

Referenced by make_sdl_info().

◆ SetStrItem

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

Referenced by make_sdl_info().

Function Documentation

◆ BPY_app_sdl_struct()

PyObject * BPY_app_sdl_struct ( )
nodiscard

Definition at line 94 of file bpy_app_sdl.cc.

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

Referenced by make_app_info().

◆ make_sdl_info()

PyObject * make_sdl_info ( )
static

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 42 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 35 of file bpy_app_sdl.cc.

◆ BlenderAppSDLType

PyTypeObject BlenderAppSDLType
static

Definition at line 33 of file bpy_app_sdl.cc.

Referenced by BPY_app_sdl_struct(), and make_sdl_info().