Blender V4.3
ED_text.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11struct ARegion;
12struct SpaceText;
13struct Text;
14struct UndoStep;
15struct UndoType;
16struct bContext;
17
18/* `text_draw.cc` */
19
21
26void ED_space_text_scroll_to_cursor(SpaceText *st, ARegion *region, bool center);
31 const ARegion *region,
32 const int cursor_co[2],
33 int r_pixel_co[2]);
34
35/* `text_undo.cc` */
36
39
42
43/* `text_format.cc` */
44
46
int ED_space_text_visible_lines_get(const SpaceText *st)
Definition text_draw.cc:44
void ED_text_undosys_type(UndoType *ut)
Definition text_undo.cc:227
bool ED_text_activate_in_screen(bContext *C, Text *text)
const char * ED_text_format_comment_line_prefix(Text *text)
UndoStep * ED_text_undo_push_init(bContext *C)
Definition text_undo.cc:249
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])
bool ED_text_is_syntax_highlight_supported(Text *text)