25static void rna_Text_clear(
Text *text)
31static void rna_Text_write(
Text *text,
const char *
str)
37static void rna_Text_from_string(
Text *text,
const char *
str)
43static void rna_Text_as_string(
Text *text,
const char **result,
int *r_result_len)
47 *r_result_len = result_len;
50static void rna_Text_select_set(
Text *text,
int startl,
int startc,
int endl,
int endc)
56static void rna_Text_cursor_set(
Text *text,
int line,
int ch,
bool select)
74 func,
"write text at the cursor location and advance to the end of the text block");
75 parm =
RNA_def_string(func,
"text",
"Text", 0,
"",
"New text for this data-block");
89 srna,
"is_syntax_highlight_supported",
"ED_text_is_syntax_highlight_supported");
93 "Returns True if the editor supports syntax highlighting "
94 "for the current text datablock");
98 parm =
RNA_def_int(func,
"line_start", 0, INT_MIN, INT_MAX,
"Start Line",
"", INT_MIN, INT_MAX);
101 func,
"char_start", 0, INT_MIN, INT_MAX,
"Start Character",
"", INT_MIN, INT_MAX);
103 parm =
RNA_def_int(func,
"line_end", 0, INT_MIN, INT_MAX,
"End Line",
"", INT_MIN, INT_MAX);
105 parm =
RNA_def_int(func,
"char_end", 0, INT_MIN, INT_MAX,
"End Character",
"", INT_MIN, INT_MAX);
110 parm =
RNA_def_int(func,
"line", 0, 0, INT_MAX,
"Line",
"", 0, INT_MAX);
112 parm =
RNA_def_int(func,
"character", 0, 0, INT_MAX,
"Character",
"", 0, INT_MAX);
113 RNA_def_boolean(func,
"select",
false,
"",
"Select when moving the cursor");
void txt_sel_set(struct Text *text, int startl, int startc, int endl, int endc)
char * txt_to_buf(struct Text *text, size_t *r_buf_strlen) ATTR_NONNULL(1
struct Text struct Text void BKE_text_clear(struct Text *text) ATTR_NONNULL(1)
void txt_move_to(struct Text *text, unsigned int line, unsigned int ch, bool sel)
void BKE_text_write(struct Text *text, const char *str, int str_len) ATTR_NONNULL(1
ccl_device_inline float4 select(const int4 mask, const float4 a, const float4 b)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_api_text(StructRNA *srna)
void WM_main_add_notifier(uint type, void *reference)