Blender V5.3
bpy_rna_text.cc File Reference
#include <Python.h>
#include <optional>
#include "MEM_guardedalloc.h"
#include "WM_api.hh"
#include "BKE_text.h"
#include "../generic/python_compat.hh"
#include "bpy_rna.hh"
#include "bpy_rna_text.hh"

Go to the source code of this file.

Classes

struct  blender::TextRegion

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PY_SSIZE_T_CLEAN

Text Editor Get / Set region text API

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)

Detailed Description

This file extends the text editor with C/Python API methods and attributes.

Definition in file bpy_rna_text.cc.

Macro Definition Documentation

◆ PY_SSIZE_T_CLEAN

#define PY_SSIZE_T_CLEAN

Definition at line 11 of file bpy_rna_text.cc.