Blender  V2.93
ED_text.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2009 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ARegion;
31 struct SpaceText;
32 struct Text;
33 struct UndoStep;
34 struct UndoType;
35 struct bContext;
36 
37 void ED_text_scroll_to_cursor(struct SpaceText *st, struct ARegion *region, bool center);
38 
40  struct ARegion *region,
41  const int cursor_co[2],
42  int r_pixel_co[2]);
43 
44 /* text_undo.c */
45 void ED_text_undosys_type(struct UndoType *ut);
46 
47 struct UndoStep *ED_text_undo_push_init(struct bContext *C);
48 
49 /* text_format.c */
51 
52 #ifdef __cplusplus
53 }
54 #endif
struct UndoStep * ED_text_undo_push_init(struct bContext *C)
Definition: text_undo.c:280
void ED_text_undosys_type(struct UndoType *ut)
Definition: text_undo.c:257
bool ED_text_is_syntax_highlight_supported(struct Text *text)
Definition: text_format.c:230
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_scroll_to_cursor(struct SpaceText *st, struct ARegion *region, bool center)
NSNotificationCenter * center
#define C
Definition: RandGen.cpp:39
struct ARegion * region
Definition: context.c:79