Add the ability to get/set the selected text.
**Calling the new methods:**
- `bpy.data.texts["Text"].region_as_string()`
- `bpy.data.texts["Text"].region_from_string("Replacement")`
18 lines
285 B
C++
18 lines
285 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup pythonintern
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern PyMethodDef BPY_rna_region_as_string_method_def;
|
|
extern PyMethodDef BPY_rna_region_from_string_method_def;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |