Blender V5.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
8
9#pragma once
10
11namespace blender {
12
13struct ARegion;
14struct SpaceText;
15struct Text;
16struct UndoStep;
17struct UndoType;
18struct bContext;
19
20/* `text_draw.cc` */
21
23
28void ED_space_text_scroll_to_cursor(SpaceText *st, ARegion *region, bool center);
33 const ARegion *region,
34 const int cursor_co[2],
35 int r_pixel_co[2]);
36
37/* `text_undo.cc` */
38
41
44
45/* `text_format.cc` */
46
48
50
51} // namespace blender
#define C
Definition RandGen.cpp:29
BMesh Iterators.
int ED_space_text_visible_lines_get(const SpaceText *st)
Definition text_draw.cc:49
void ED_text_undosys_type(UndoType *ut)
Definition text_undo.cc:228
bool ED_text_activate_in_screen(bContext *C, Text *text)
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])
const char * ED_text_format_comment_line_prefix(Text *text)
UndoStep * ED_text_undo_push_init(bContext *C)
Definition text_undo.cc:250
bool ED_text_is_syntax_highlight_supported(Text *text)