Blender  V3.3
console_intern.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 /* internal exports only */
10 
11 struct ConsoleLine;
12 struct bContext;
13 struct wmOperatorType;
14 
15 /* console_draw.c */
16 
17 void console_textview_main(struct SpaceConsole *sc, const struct ARegion *region);
18 /* needed to calculate the scrollbar */
19 int console_textview_height(struct SpaceConsole *sc, const struct ARegion *region);
20 int console_char_pick(struct SpaceConsole *sc, const struct ARegion *region, const int mval[2]);
21 
22 void console_scrollback_prompt_begin(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
23 void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy);
24 
25 /* console_ops.c */
26 
29 ConsoleLine *console_history_add_str(struct SpaceConsole *sc, char *str, bool own);
30 ConsoleLine *console_scrollback_add_str(struct SpaceConsole *sc, char *str, bool own);
31 
33 
35 
36 void CONSOLE_OT_move(struct wmOperatorType *ot);
37 void CONSOLE_OT_delete(struct wmOperatorType *ot);
38 void CONSOLE_OT_insert(struct wmOperatorType *ot);
39 
40 void CONSOLE_OT_indent(struct wmOperatorType *ot);
43 
46 
47 void CONSOLE_OT_clear(struct wmOperatorType *ot);
50 void CONSOLE_OT_copy(struct wmOperatorType *ot);
51 void CONSOLE_OT_paste(struct wmOperatorType *ot);
54 
56 enum {
64 };
#define C
Definition: RandGen.cpp:25
void console_scrollback_prompt_end(struct SpaceConsole *sc, ConsoleLine *cl_dummy)
Definition: console_draw.c:70
@ NEXT_CHAR
@ LINE_BEGIN
@ PREV_WORD
@ PREV_CHAR
@ LINE_END
@ NEXT_WORD
void CONSOLE_OT_insert(struct wmOperatorType *ot)
Definition: console_ops.c:424
void CONSOLE_OT_unindent(struct wmOperatorType *ot)
Definition: console_ops.c:580
void CONSOLE_OT_copy(struct wmOperatorType *ot)
Definition: console_ops.c:1027
void console_textview_update_rect(SpaceConsole *sc, ARegion *region)
Definition: console_ops.c:45
void CONSOLE_OT_scrollback_append(struct wmOperatorType *ot)
Definition: console_ops.c:936
void CONSOLE_OT_paste(struct wmOperatorType *ot)
Definition: console_ops.c:1082
void CONSOLE_OT_select_word(struct wmOperatorType *ot)
Definition: console_ops.c:1260
@ DEL_SELECTION
@ DEL_PREV_WORD
@ DEL_PREV_SEL
@ DEL_PREV_CHAR
@ DEL_NEXT_WORD
@ DEL_NEXT_CHAR
@ DEL_NEXT_SEL
void console_history_free(SpaceConsole *sc, ConsoleLine *cl)
Definition: console_ops.c:58
void console_scrollback_free(SpaceConsole *sc, ConsoleLine *cl)
Definition: console_ops.c:64
ConsoleLine * console_history_verify(const struct bContext *C)
void CONSOLE_OT_history_cycle(struct wmOperatorType *ot)
Definition: console_ops.c:829
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:56
void CONSOLE_OT_history_append(struct wmOperatorType *ot)
Definition: console_ops.c:885
void CONSOLE_OT_indent_or_autocomplete(struct wmOperatorType *ot)
Definition: console_ops.c:472
void CONSOLE_OT_move(struct wmOperatorType *ot)
Definition: console_ops.c:351
void console_textview_main(struct SpaceConsole *sc, const struct ARegion *region)
void CONSOLE_OT_delete(struct wmOperatorType *ot)
Definition: console_ops.c:675
void CONSOLE_OT_clear_line(struct wmOperatorType *ot)
Definition: console_ops.c:718
ConsoleLine * console_scrollback_add_str(struct SpaceConsole *sc, char *str, bool own)
Definition: console_ops.c:194
int console_textview_height(struct SpaceConsole *sc, const struct ARegion *region)
void CONSOLE_OT_indent(struct wmOperatorType *ot)
Definition: console_ops.c:526
void CONSOLE_OT_clear(struct wmOperatorType *ot)
Definition: console_ops.c:760
ConsoleLine * console_history_add_str(struct SpaceConsole *sc, char *str, bool own)
Definition: console_ops.c:190
void CONSOLE_OT_select_set(struct wmOperatorType *ot)
Definition: console_ops.c:1210
#define str(s)
wmOperatorType * ot
Definition: wm_files.c:3479