Blender  V3.3
Functions
ED_text.h File Reference

Go to the source code of this file.

Functions

bool ED_text_activate_in_screen (struct bContext *C, struct Text *text)
 
void ED_text_scroll_to_cursor (struct SpaceText *st, struct ARegion *region, bool center)
 
bool ED_text_region_location_from_cursor (struct SpaceText *st, struct ARegion *region, const int cursor_co[2], int r_pixel_co[2])
 
void ED_text_undosys_type (struct UndoType *ut)
 
struct UndoStepED_text_undo_push_init (struct bContext *C)
 
bool ED_text_is_syntax_highlight_supported (struct Text *text)
 

Function Documentation

◆ ED_text_activate_in_screen()

bool ED_text_activate_in_screen ( struct bContext C,
struct Text text 
)

◆ ED_text_is_syntax_highlight_supported()

bool ED_text_is_syntax_highlight_supported ( struct Text text)

◆ ED_text_region_location_from_cursor()

bool ED_text_region_location_from_cursor ( struct SpaceText st,
struct ARegion region,
const int  cursor_co[2],
int  r_pixel_co[2] 
)

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

◆ ED_text_scroll_to_cursor()

void ED_text_scroll_to_cursor ( struct SpaceText st,
struct 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_text_undo_push_init()

struct UndoStep* ED_text_undo_push_init ( struct bContext C)

◆ ED_text_undosys_type()

void ED_text_undosys_type ( struct UndoType ut)