Blender V5.0
ED_text.hh File Reference

Go to the source code of this file.

Functions

bool ED_text_activate_in_screen (bContext *C, Text *text)
int ED_space_text_visible_lines_get (const SpaceText *st)
void ED_space_text_scroll_to_cursor (SpaceText *st, ARegion *region, bool center)
bool ED_space_text_region_location_from_cursor (const SpaceText *st, const ARegion *region, const int cursor_co[2], int r_pixel_co[2])
void ED_text_undosys_type (UndoType *ut)
UndoStepED_text_undo_push_init (bContext *C)
const char * ED_text_format_comment_line_prefix (Text *text)
bool ED_text_is_syntax_highlight_supported (Text *text)

Function Documentation

◆ ED_space_text_region_location_from_cursor()

bool ED_space_text_region_location_from_cursor ( const SpaceText * st,
const ARegion * region,
const int cursor_co[2],
int r_pixel_co[2] )

◆ ED_space_text_scroll_to_cursor()

◆ ED_space_text_visible_lines_get()

int ED_space_text_visible_lines_get ( const SpaceText * st)

Definition at line 47 of file text_draw.cc.

References SpaceText::runtime.

◆ ED_text_activate_in_screen()

◆ ED_text_format_comment_line_prefix()

const char * ED_text_format_comment_line_prefix ( Text * text)

Definition at line 204 of file text_format.cc.

References ED_text_format_get().

Referenced by text_comment_exec().

◆ ED_text_is_syntax_highlight_supported()

bool ED_text_is_syntax_highlight_supported ( Text * text)

◆ ED_text_undo_push_init()

◆ ED_text_undosys_type()