Blender  V2.93
console_intern.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 
21 #pragma once
22 
23 /* internal exports only */
24 
25 struct ConsoleLine;
26 struct bContext;
27 struct wmOperatorType;
28 
29 /* console_draw.c */
30 void console_textview_main(struct SpaceConsole *sc, const struct ARegion *region);
31 /* needed to calculate the scrollbar */
32 int console_textview_height(struct SpaceConsole *sc, const struct ARegion *region);
33 int console_char_pick(struct SpaceConsole *sc, const struct ARegion *region, const int mval[2]);
34 
35 void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
36 void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
37 
38 /* console_ops.c */
41 ConsoleLine *console_history_add_str(struct SpaceConsole *sc, char *str, bool own);
42 ConsoleLine *console_scrollback_add_str(struct SpaceConsole *sc, char *str, bool own);
43 
45 
47 
48 void CONSOLE_OT_move(struct wmOperatorType *ot);
49 void CONSOLE_OT_delete(struct wmOperatorType *ot);
50 void CONSOLE_OT_insert(struct wmOperatorType *ot);
51 
52 void CONSOLE_OT_indent(struct wmOperatorType *ot);
55 
58 
59 void CONSOLE_OT_clear(struct wmOperatorType *ot);
62 void CONSOLE_OT_copy(struct wmOperatorType *ot);
63 void CONSOLE_OT_paste(struct wmOperatorType *ot);
66 
68 enum {
76 };
#define C
Definition: RandGen.cpp:39
void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy)
Definition: console_draw.c:84
void CONSOLE_OT_insert(struct wmOperatorType *ot)
Definition: console_ops.c:446
@ DEL_SELECTION
@ DEL_PREV_WORD
@ DEL_PREV_SEL
@ DEL_PREV_CHAR
@ DEL_NEXT_WORD
@ DEL_NEXT_CHAR
@ DEL_NEXT_SEL
void CONSOLE_OT_unindent(struct wmOperatorType *ot)
Definition: console_ops.c:591
void CONSOLE_OT_copy(struct wmOperatorType *ot)
Definition: console_ops.c:1038
void console_textview_update_rect(SpaceConsole *sc, ARegion *region)
Definition: console_ops.c:59
void CONSOLE_OT_scrollback_append(struct wmOperatorType *ot)
Definition: console_ops.c:947
void CONSOLE_OT_paste(struct wmOperatorType *ot)
Definition: console_ops.c:1093
void CONSOLE_OT_select_word(struct wmOperatorType *ot)
Definition: console_ops.c:1271
@ NEXT_CHAR
@ LINE_BEGIN
@ PREV_WORD
@ PREV_CHAR
@ LINE_END
@ NEXT_WORD
void console_history_free(SpaceConsole *sc, ConsoleLine *cl)
Definition: console_ops.c:72
void console_scrollback_free(SpaceConsole *sc, ConsoleLine *cl)
Definition: console_ops.c:78
ConsoleLine * console_history_verify(const struct bContext *C)
void CONSOLE_OT_history_cycle(struct wmOperatorType *ot)
Definition: console_ops.c:840
int console_char_pick(struct SpaceConsole *sc, const struct ARegion *region, const int mval[2])
void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy)
Definition: console_draw.c:70
void CONSOLE_OT_history_append(struct wmOperatorType *ot)
Definition: console_ops.c:896
void CONSOLE_OT_indent_or_autocomplete(struct wmOperatorType *ot)
Definition: console_ops.c:483
void CONSOLE_OT_move(struct wmOperatorType *ot)
Definition: console_ops.c:365
void console_textview_main(struct SpaceConsole *sc, const struct ARegion *region)
void CONSOLE_OT_delete(struct wmOperatorType *ot)
Definition: console_ops.c:686
void CONSOLE_OT_clear_line(struct wmOperatorType *ot)
Definition: console_ops.c:729
ConsoleLine * console_scrollback_add_str(struct SpaceConsole *sc, char *str, bool own)
Definition: console_ops.c:208
int console_textview_height(struct SpaceConsole *sc, const struct ARegion *region)
void CONSOLE_OT_indent(struct wmOperatorType *ot)
Definition: console_ops.c:537
void CONSOLE_OT_clear(struct wmOperatorType *ot)
Definition: console_ops.c:771
ConsoleLine * console_history_add_str(struct SpaceConsole *sc, char *str, bool own)
Definition: console_ops.c:204
void CONSOLE_OT_select_set(struct wmOperatorType *ot)
Definition: console_ops.c:1221
#define str(s)
wmOperatorType * ot
Definition: wm_files.c:3156