26static void rna_Text_clear(
Text *text)
32static void rna_Text_write(
Text *text,
const char *
str)
38static void rna_Text_from_string(
Text *text,
const char *
str)
44static void rna_Text_as_string(
Text *text,
const char **
result,
int *r_result_len)
48 *r_result_len = result_len;
51static void rna_Text_select_set(
Text *text,
int startl,
int startc,
int endl,
int endc)
57static void rna_Text_cursor_set(
Text *text,
int line,
int ch,
bool select)
79 func,
"write text at the cursor location and advance to the end of the text block");
80 parm =
RNA_def_string(func,
"text",
"Text", 0,
"",
"New text for this data-block");
94 srna,
"is_syntax_highlight_supported",
"ED_text_is_syntax_highlight_supported");
98 "Returns True if the editor supports syntax highlighting "
99 "for the current text data-block");
106 func,
"char_start", 0, INT_MIN,
INT_MAX,
"Start Character",
"", INT_MIN,
INT_MAX);
118 RNA_def_boolean(func,
"select",
false,
"",
"Select when moving the cursor");
void WM_main_add_notifier(uint type, void *reference)
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_ui_description(FunctionRNA *func, const char *description)
void txt_sel_set(struct Text *text, int startl, int startc, int endl, int endc)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
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)
char * txt_to_buf(struct Text *text, size_t *r_buf_strlen) ATTR_NONNULL(1
void RNA_api_text(StructRNA *srna)
void BKE_text_write(struct Text *text, const char *str, int str_len) ATTR_NONNULL(1
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void txt_move_to(struct Text *text, unsigned int line, unsigned int ch, bool sel)
struct Text struct Text void BKE_text_clear(struct Text *text) ATTR_NONNULL(1)