Blender V5.3
idprop_py_ui_api.cc File Reference
#include <Python.h>
#include "python_compat.hh"
#include "MEM_guardedalloc.h"
#include "BLI_string.hh"
#include "BLI_utildefines.hh"
#include "idprop_py_ui_api.hh"
#include "BKE_idprop.hh"
#include "DNA_ID.h"
#include "RNA_access.hh"
#include "RNA_enum_types.hh"
#include "py_capi_rna.hh"
#include "py_capi_utils.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_STRING_COERCE

Functions

UI Data Update
static bool blender::idprop_ui_data_update_base (IDPropertyUIData *ui_data, const char *rna_subtype, const char *description)
static bool blender::py_long_as_int (PyObject *py_long, int *r_int)
static bool blender::try_parse_enum_item (PyObject *py_item, const int index, IDPropertyUIDataEnumItem &item)
static IDPropertyUIDataEnumItem * blender::idprop_enum_items_from_py (PyObject *seq_fast, int &r_items_num)
static bool blender::idprop_ui_data_update_int_default (IDProperty *idprop, IDPropertyUIDataInt *ui_data, PyObject *default_value)
static bool blender::idprop_ui_data_update_int (IDProperty *idprop, PyObject *args, PyObject *kwargs)
static bool blender::idprop_ui_data_update_bool_default (IDProperty *idprop, IDPropertyUIDataBool *ui_data, PyObject *default_value)
static bool blender::idprop_ui_data_update_bool (IDProperty *idprop, PyObject *args, PyObject *kwargs)
static bool blender::idprop_ui_data_update_float_default (IDProperty *idprop, IDPropertyUIDataFloat *ui_data, PyObject *default_value)
static bool blender::idprop_ui_data_update_float (IDProperty *idprop, PyObject *args, PyObject *kwargs)
static bool blender::idprop_ui_data_update_string (IDProperty *idprop, PyObject *args, PyObject *kwargs)
static bool blender::idprop_ui_data_update_id (IDProperty *idprop, PyObject *args, PyObject *kwargs)
 blender::PyDoc_STRVAR (BPy_IDPropertyUIManager_update_doc, ".. method:: update(*, " "subtype=None, " "min=None, " "max=None, " "soft_min=None, " "soft_max=None, " "precision=None, " "step=None, " "default=None, " "id_type=None, " "items=None, " "description=None)\n" "\n" " Update the RNA information of the IDProperty used for interaction and\n" " display in the user interface. The required types for many of the keyword\n" " arguments depend on the type of the property.\n" "\n" " :param subtype: Enumerator in :ref:`rna_enum_property_subtype_items`.\n" " :type subtype: str | None\n" " :param min: Minimum value (int & float properties).\n" " :type min: int | float | None\n" " :param max: Maximum value (int & float properties).\n" " :type max: int | float | None\n" " :param soft_min: Soft minimum value (int & float properties).\n" " :type soft_min: int | float | None\n" " :param soft_max: Soft maximum value (int & float properties).\n" " :type soft_max: int | float | None\n" " :param precision: Number of digits to display after the decimal point\n" " (float properties).\n" " :type precision: int | None\n" " :param step: Step used when dragging the value (int & float properties).\n" " :type step: int | float | None\n" " :param default: Default value, may be a sequence for array properties.\n" " :type default: Any\n" " :param id_type: Enumerator in :ref:`rna_enum_id_type_items` (ID properties).\n" " :type id_type: str | None\n" " :param items: Enum items (int properties),\n" " see :func:`bpy.props.EnumProperty` for the item format.\n" " :type items: Iterable[" "tuple[str, str, str] | " "tuple[str, str, str, int] | " "tuple[str, str, str, str | int, int] | " "None] | None\n" " :param description: Tooltip text.\n" " :type description: str | None\n")
static PyObject * blender::BPy_IDPropertyUIManager_update (BPy_IDPropertyUIManager *self, PyObject *args, PyObject *kwargs)
UI Data As Dictionary
static void blender::idprop_ui_data_to_dict_int (IDProperty *property, PyObject *dict)
static void blender::idprop_ui_data_to_dict_bool (IDProperty *property, PyObject *dict)
static void blender::idprop_ui_data_to_dict_float (IDProperty *property, PyObject *dict)
static void blender::idprop_ui_data_to_dict_string (IDProperty *property, PyObject *dict)
static void blender::idprop_ui_data_to_dict_id (IDProperty *property, PyObject *dict)
 blender::PyDoc_STRVAR (BPy_IDPropertyUIManager_as_dict_doc, ".. method:: as_dict()\n" "\n" " Return a dictionary of the property's RNA UI data. The fields in the\n" " returned dictionary and their types will depend on the property's type.\n" "\n" " :return: The property's UI data.\n" " :rtype: dict[str, Any]\n")
static PyObject * blender::BPy_IDIDPropertyUIManager_as_dict (BPy_IDPropertyUIManager *self)
UI Data Clear
 blender::PyDoc_STRVAR (BPy_IDPropertyUIManager_clear_doc, ".. method:: clear()\n" "\n" " Remove the RNA UI data from this IDProperty.\n")
static PyObject * blender::BPy_IDPropertyUIManager_clear (BPy_IDPropertyUIManager *self)
UI Data Copying
 blender::PyDoc_STRVAR (BPy_IDPropertyUIManager_update_from_doc, ".. method:: update_from(ui_manager_source, /)\n" "\n" " Copy UI data from an IDProperty in the source group to a property in this group.\n" " If the source property has no UI data, the target UI data will be reset if it exists.\n" "\n" " :param ui_manager_source: The UI manager to copy from.\n" " :type ui_manager_source: :class:`IDPropertyUIManager`\n" " :raises TypeError: If the types of the two properties don't match.\n")
static PyObject * blender::BPy_IDPropertyUIManager_update_from (BPy_IDPropertyUIManager *self, PyObject *args)

UI Data Manager Definition

static PyMethodDef blender::BPy_IDPropertyUIManager_methods []
PyTypeObject blender::BPy_IDPropertyUIManager_Type
static PyObject * blender::BPy_IDPropertyUIManager_repr (BPy_IDPropertyUIManager *self)
static Py_hash_t blender::BPy_IDPropertyUIManager_hash (BPy_IDPropertyUIManager *self)
 blender::PyDoc_STRVAR (BPy_IDPropertyUIManager_Type_doc, "Manages the UI data of an ID property, " "see :meth:`bpy.types.bpy_struct.id_properties_ui`.")
void blender::IDPropertyUIData_Init_Types ()

Macro Definition Documentation

◆ USE_STRING_COERCE

#define USE_STRING_COERCE

Definition at line 27 of file idprop_py_ui_api.cc.