|
Blender V4.3
|
#include <Python.h>#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "BKE_icons.h"#include "../generic/py_capi_utils.hh"#include "../generic/python_compat.hh"#include "bpy_app_icons.hh"Go to the source code of this file.
Functions | |
| PyDoc_STRVAR (bpy_app_icons_new_triangles_doc, ".. function:: new_triangles(range, coords, colors)\n" "\n" " Create a new icon from triangle geometry.\n" "\n" " :arg range: Pair of ints.\n" " :type range: tuple[int, int]\n" " :arg coords: Sequence of bytes (6 floats for one triangle) for (X, Y) coordinates.\n" " :type coords: bytes\n" " :arg colors: Sequence of bytes (12 for one triangles) for RGBA.\n" " :type colors: bytes\n" " :return: Unique icon value (pass to interface ``icon_value`` argument).\n" " :rtype: int\n") | |
| static PyObject * | bpy_app_icons_new_triangles (PyObject *, PyObject *args, PyObject *kw) |
| PyDoc_STRVAR (bpy_app_icons_new_triangles_from_file_doc, ".. function:: new_triangles_from_file(filepath)\n" "\n" " Create a new icon from triangle geometry.\n" "\n" " :arg filepath: File path.\n" " :type filepath: str | bytes.\n" " :return: Unique icon value (pass to interface ``icon_value`` argument).\n" " :rtype: int\n") | |
| static PyObject * | bpy_app_icons_new_triangles_from_file (PyObject *, PyObject *args, PyObject *kw) |
| PyDoc_STRVAR (bpy_app_icons_release_doc, ".. function:: release(icon_id)\n" "\n" " Release the icon.\n") | |
| static PyObject * | bpy_app_icons_release (PyObject *, PyObject *args, PyObject *kw) |
| PyObject * | BPY_app_icons_module () |
Variables | |
| static PyMethodDef | M_AppIcons_methods [] |
| static PyModuleDef | M_AppIcons_module_def |
Runtime defined icons.
Definition in file bpy_app_icons.cc.
| PyObject * BPY_app_icons_module | ( | ) |
Definition at line 199 of file bpy_app_icons.cc.
References M_AppIcons_module_def, and mod().
Referenced by make_app_info().
|
static |
Definition at line 40 of file bpy_app_icons.cc.
References BKE_icon_geom_ensure(), Icon_Geom::colors, Icon_Geom::coords, Icon_Geom::coords_len, Icon_Geom::coords_range, Icon_Geom::icon_id, MEM_mallocN, and PY_ARG_PARSER_HEAD_COMPAT.
|
static |
Definition at line 103 of file bpy_app_icons.cc.
References BKE_icon_geom_ensure(), BKE_icon_geom_from_file(), PY_ARG_PARSER_HEAD_COMPAT, PyC_ParseUnicodeAsBytesAndSize(), PyC_UnicodeAsBytesAndSize_Data::value, and PyC_UnicodeAsBytesAndSize_Data::value_coerce.
|
static |
Definition at line 140 of file bpy_app_icons.cc.
References BKE_icon_delete_unmanaged(), and PY_ARG_PARSER_HEAD_COMPAT.
| PyDoc_STRVAR | ( | bpy_app_icons_new_triangles_doc | , |
| ".. function:: new_triangles(range, coords, colors)\n" "\n" " Create a new icon from triangle geometry.\n" "\n" " :arg range: Pair of ints.\n" " :type range: tuple\n" " :arg coords: Sequence of bytes (6 floats for one triangle) for (X, Y) coordinates.\n" " :type coords: bytes\n" " :arg colors: Sequence of bytes (12 for one triangles) for RGBA.\n" " :type colors: bytes\n" " :return: Unique icon value (pass to interface ``icon_value`` argument).\n" " :rtype: int\n" | [int, int] ) |
| PyDoc_STRVAR | ( | bpy_app_icons_new_triangles_from_file_doc | , |
| ".. function:: new_triangles_from_file(filepath)\n" "\n" " Create a new icon from triangle geometry.\n" "\n" " :arg filepath: File path.\n" " :type filepath: str | bytes.\n" " :return: Unique icon value (pass to interface ``icon_value`` argument).\n" " :rtype: int\n" | ) |
| PyDoc_STRVAR | ( | bpy_app_icons_release_doc | , |
| ".. function:: release(icon_id)\n" "\n" " Release the icon.\n" | ) |
|
static |
Definition at line 167 of file bpy_app_icons.cc.
|
static |
Definition at line 187 of file bpy_app_icons.cc.
Referenced by BPY_app_icons_module().