|
| PyMethodDef | blender::BPY_rna_region_as_string_method_def |
| PyMethodDef | blender::BPY_rna_region_from_string_method_def |
| static int | blender::py_parse_optional_region (PyObject *o, void *p) |
| | blender::PyDoc_STRVAR (bpy_rna_region_as_string_doc, ".. method:: region_as_string(*, range=None)\n" "\n" " :param range: The region of text to be returned, " "defaulting to the selection when no range is passed.\n" " Each int pair represents a line and column: " "((start_line, start_column), (end_line, end_column))\n" " The values match Python's slicing logic " "(negative values count backwards from the end, the end value is not inclusive).\n" " :type range: tuple[tuple[int, int], tuple[int, int]] | None\n" " :return: The specified region as a string.\n" " :rtype: str\n") |
| static PyObject * | blender::bpy_rna_region_as_string (PyObject *self, PyObject *args, PyObject *kwds) |
| | blender::PyDoc_STRVAR (bpy_rna_region_from_string_doc, ".. method:: region_from_string(body, /, *, range=None)\n" "\n" " :param body: The text to be inserted.\n" " :type body: str\n" " :param range: The region of text to be returned, " "defaulting to the selection when no range is passed.\n" " Each int pair represents a line and column: " "((start_line, start_column), (end_line, end_column))\n" " The values match Python's slicing logic " "(negative values count backwards from the end, the end value is not inclusive).\n" " :type range: tuple[tuple[int, int], tuple[int, int]] | None\n") |
| static PyObject * | blender::bpy_rna_region_from_string (PyObject *self, PyObject *args, PyObject *kwds) |
This file extends the text editor with C/Python API methods and attributes.
Definition in file bpy_rna_text.cc.