42 static void rna_Text_filename_get(
PointerRNA *
ptr,
char *value)
60 static void rna_Text_filename_set(
PointerRNA *
ptr,
const char *value)
88 static void rna_Text_current_line_index_set(
PointerRNA *
ptr,
int value)
99 static int rna_Text_select_end_line_index_get(
PointerRNA *
ptr)
105 static void rna_Text_select_end_line_index_set(
PointerRNA *
ptr,
int value)
122 static void rna_Text_current_character_set(
PointerRNA *
ptr,
int index)
131 static int rna_Text_select_end_character_get(
PointerRNA *
ptr)
137 static void rna_Text_select_end_character_set(
PointerRNA *
ptr,
int index)
146 static void rna_TextLine_body_get(
PointerRNA *
ptr,
char *value)
151 strcpy(value, line->
line);
164 static void rna_TextLine_body_set(
PointerRNA *
ptr,
const char *value)
167 int len = strlen(value);
175 memcpy(line->
line, value,
len + 1);
195 prop,
"rna_TextLine_body_get",
"rna_TextLine_body_length",
"rna_TextLine_body_set");
205 {0,
"TABS", 0,
"Tabs",
"Indent using tabs"},
215 srna,
"Text",
"Text data-block referencing an external or packed text file");
221 prop,
"rna_Text_filename_get",
"rna_Text_filename_length",
"rna_Text_filename_set");
233 prop,
"Modified",
"Text file on disk is different than the one in memory");
239 prop,
"Memory",
"Text file is in memory, without a corresponding file on disk");
244 prop,
"Register",
"Run this text as a script on loading, Text name must end with \".py\"");
261 prop,
"Current Line",
"Current line, and start line of selection if one exists");
267 "Index of current character in current line, and also start index of "
268 "character in selection if one exists");
270 prop,
"rna_Text_current_character_get",
"rna_Text_current_character_set",
NULL);
275 prop,
"rna_Text_current_line_index_get",
"rna_Text_current_line_index_set",
NULL);
277 prop,
"Current Line Index",
"Index of current TextLine in TextLine collection");
289 prop,
"rna_Text_select_end_line_index_get",
"rna_Text_select_end_line_index_set",
NULL);
296 "Selection End Character",
297 "Index of character after end of selection in the selection end line");
299 prop,
"rna_Text_select_end_character_get",
"rna_Text_select_end_character_set",
NULL);
int BKE_text_file_modified_check(struct Text *text)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
size_t BLI_strlen_utf8(const char *strc) ATTR_NONNULL()
size_t int BLI_str_utf8_offset_to_index(const char *str, int offset)
int BLI_str_utf8_offset_from_index(const char *str, int index)
#define BLT_I18NCONTEXT_ID_TEXT
Read Guarded memory(de)allocation.
return(oflags[bm->toolflag_index].f &oflag) !=0
void(* MEM_freeN)(void *vmemh)
void *(* MEM_mallocN)(size_t len, const char *str)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_clear_flag(StructRNA *srna, int flag)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_api_text(struct StructRNA *srna)
static void rna_def_text_line(BlenderRNA *brna)
static void rna_def_text(BlenderRNA *brna)
void RNA_def_text(BlenderRNA *brna)