57 stext->
runtime = MEM_new<SpaceText_Runtime>(__func__);
95 stext->
text =
nullptr;
106 stextn->
runtime = MEM_new<SpaceText_Runtime>(__func__);
237 if (st->
text !=
nullptr) {
295 st->
runtime->scroll_region_handle.ymin))
411 st->
runtime = MEM_new<SpaceText_Runtime>(__func__);
423 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
441 st->blend_read_after_liblink =
nullptr;
SpaceText * CTX_wm_space_text(const bContext *C)
void CTX_data_dir_set(bContextDataResult *result, const char **dir)
bool CTX_data_equals(const char *member, const char *str)
bool CTX_data_dir(const char *member)
void CTX_data_id_pointer_set(bContextDataResult *result, ID *id)
@ CTX_RESULT_MEMBER_NOT_FOUND
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
@ IDWALK_CB_DIRECT_WEAK_LINK
@ ID_REMAP_APPLY_ENSURE_REAL
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
void BLI_addhead(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool BLI_rcti_isect_pt(const struct rcti *rect, int x, int y)
#define STRNCPY(dst, src)
#define BLO_write_struct(writer, struct_name, data_ptr)
@ V2D_SCROLL_VERTICAL_HIDE
void ED_area_tag_redraw(ScrArea *area)
void ED_region_panels(const bContext *C, ARegion *region)
void ED_region_header(const bContext *C, ARegion *region)
void ED_region_header_init(ARegion *region)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
Read Guarded memory(de)allocation.
#define UI_COMPACT_PANEL_WIDTH
void UI_ThemeClearColor(int colorid)
void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
@ V2D_COMMONVIEW_STANDARD
IDRemapperApplyResult apply(ID **r_id_ptr, IDRemapperApplyOptions options, ID *id_self=nullptr) const
static void text_update_edited(bContext *C, Object *obedit, const eEditFontMode mode)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_dupallocN)(const void *vmemh)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
std::string RNA_path_full_ID_py(ID *id)
const char * text_context_dir[]
static void text_cursor(wmWindow *win, ScrArea *area, ARegion *region)
static void text_space_blend_write(BlendWriter *writer, SpaceLink *sl)
static void text_header_region_draw(const bContext *C, ARegion *region)
static void text_header_region_init(wmWindowManager *, ARegion *region)
static SpaceLink * text_create(const ScrArea *, const Scene *)
static void text_free(SpaceLink *sl)
static void text_drop_id_copy(bContext *, wmDrag *drag, wmDropBox *drop)
static void text_keymap(wmKeyConfig *keyconf)
static void text_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
static void text_properties_region_init(wmWindowManager *wm, ARegion *region)
static void text_operatortypes()
static void text_main_region_init(wmWindowManager *wm, ARegion *region)
static bool text_drop_string_poll(bContext *, wmDrag *drag, const wmEvent *)
static void text_dropboxes()
static SpaceLink * text_duplicate(SpaceLink *sl)
static void text_properties_region_draw(const bContext *C, ARegion *region)
static void text_drop_path_copy(bContext *, wmDrag *drag, wmDropBox *drop)
static void text_main_region_draw(const bContext *C, ARegion *region)
static bool text_drop_id_poll(bContext *, wmDrag *drag, const wmEvent *)
static void text_listener(const wmSpaceTypeListenerParams *params)
static void text_drop_string_copy(bContext *, wmDrag *drag, wmDropBox *drop)
static void text_space_blend_read_data(BlendDataReader *, SpaceLink *sl)
static void text_init(wmWindowManager *, ScrArea *)
static void text_id_remap(ScrArea *, SpaceLink *slink, const blender::bke::id::IDRemapper &mappings)
static int text_context(const bContext *C, const char *member, bContextDataResult *result)
static bool text_drop_path_poll(bContext *, wmDrag *drag, const wmEvent *)
void(* cursor)(wmWindow *win, ScrArea *area, ARegion *region)
void(* draw)(const bContext *C, ARegion *region)
void(* init)(wmWindowManager *wm, ARegion *region)
SpaceText_Runtime * runtime
struct wmKeyConfig * defaultconf
struct wmEvent * eventstate
void TEXT_OT_autocomplete(wmOperatorType *ot)
void ED_text_format_register_pov()
void ED_text_format_register_pov_ini()
void ED_text_format_register_glsl()
void ED_text_format_register_osl()
void ED_text_format_register_py()
void TEXT_OT_replace_set_selected(wmOperatorType *ot)
void space_text_drawcache_tag_update(SpaceText *st, bool full)
void TEXT_OT_unlink(wmOperatorType *ot)
void TEXT_OT_overwrite_toggle(wmOperatorType *ot)
void TEXT_OT_reload(wmOperatorType *ot)
void TEXT_OT_open(wmOperatorType *ot)
void TEXT_OT_replace(wmOperatorType *ot)
void TEXT_OT_run_script(wmOperatorType *ot)
void space_text_free_caches(SpaceText *st)
void TEXT_OT_copy(wmOperatorType *ot)
void TEXT_OT_select_line(wmOperatorType *ot)
void draw_text_main(SpaceText *st, ARegion *region)
void TEXT_OT_new(wmOperatorType *ot)
void TEXT_OT_indent_or_autocomplete(wmOperatorType *ot)
void TEXT_OT_scroll(wmOperatorType *ot)
void TEXT_OT_line_break(wmOperatorType *ot)
void TEXT_OT_save_as(wmOperatorType *ot)
void TEXT_OT_paste(wmOperatorType *ot)
void TEXT_OT_make_internal(wmOperatorType *ot)
void TEXT_OT_to_3d_object(wmOperatorType *ot)
void TEXT_OT_indent(wmOperatorType *ot)
void TEXT_OT_select_all(wmOperatorType *ot)
void TEXT_OT_select_word(wmOperatorType *ot)
void TEXT_OT_save(wmOperatorType *ot)
void TEXT_OT_move_lines(wmOperatorType *ot)
void TEXT_OT_cursor_set(wmOperatorType *ot)
void TEXT_OT_scroll_bar(wmOperatorType *ot)
void TEXT_OT_find(wmOperatorType *ot)
void TEXT_OT_duplicate_line(wmOperatorType *ot)
void TEXT_OT_move_select(wmOperatorType *ot)
void TEXT_OT_jump(wmOperatorType *ot)
void TEXT_OT_delete(wmOperatorType *ot)
void TEXT_OT_selection_set(wmOperatorType *ot)
void TEXT_OT_find_set_selected(wmOperatorType *ot)
void TEXT_OT_unindent(wmOperatorType *ot)
void TEXT_OT_insert(wmOperatorType *ot)
void TEXT_OT_comment_toggle(wmOperatorType *ot)
void TEXT_OT_jump_to_file_at_point(wmOperatorType *ot)
void TEXT_OT_resolve_conflict(wmOperatorType *ot)
void TEXT_OT_move(wmOperatorType *ot)
void TEXT_OT_line_number(wmOperatorType *ot)
void TEXT_OT_convert_whitespace(wmOperatorType *ot)
void TEXT_OT_cut(wmOperatorType *ot)
void TEXT_OT_refresh_pyconstraints(wmOperatorType *ot)
void WM_cursor_set(wmWindow *win, int curs)
wmDropBox * WM_dropbox_add(ListBase *lb, const char *idname, bool(*poll)(bContext *C, wmDrag *drag, const wmEvent *event), void(*copy)(bContext *C, wmDrag *drag, wmDropBox *drop), void(*cancel)(Main *bmain, wmDrag *drag, wmDropBox *drop), WMDropboxTooltipFunc tooltip)
const std::string & WM_drag_get_string(const wmDrag *drag)
int WM_drag_get_path_file_type(const wmDrag *drag)
const char * WM_drag_get_single_path(const wmDrag *drag)
ListBase * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
ID * WM_drag_get_local_ID(const wmDrag *drag, short idcode)
wmEventHandler_Dropbox * WM_event_add_dropbox_handler(ListBase *handlers, ListBase *dropboxes)
wmEventHandler_Keymap * WM_event_add_keymap_handler_v2d_mask(ListBase *handlers, wmKeyMap *keymap)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))