Blender V4.3
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] )

Takes a cursor (row, character) and returns x,y pixel coords.

◆ ED_space_text_scroll_to_cursor()

void ED_space_text_scroll_to_cursor ( SpaceText * st,
ARegion * region,
bool center )

Moves the view to the cursor location, also used to make sure the view isn't outside the file.

Referenced by text_cursor_set_apply().

◆ ED_space_text_visible_lines_get()

int ED_space_text_visible_lines_get ( const SpaceText * st)

Definition at line 44 of file text_draw.cc.

References SpaceText::runtime.

◆ ED_text_activate_in_screen()

bool ED_text_activate_in_screen ( bContext * C,
Text * text )

◆ ED_text_format_comment_line_prefix()

const char * ED_text_format_comment_line_prefix ( Text * text)

Definition at line 201 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()