Blender V5.3
console_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <optional>
12
14
15namespace blender {
16
17/* internal exports only */
18
19struct ARegion;
20struct ConsoleLine;
21struct SpaceConsole;
22struct bContext;
23struct wmOperatorType;
24
31
32/* `console_draw.cc` */
33
34void console_textview_main(SpaceConsole *sc, const ARegion *region);
35/* Needed to calculate the scroll-bar. */
36int console_textview_height(SpaceConsole *sc, const ARegion *region);
37int console_char_pick(SpaceConsole *sc, const ARegion *region, const int mval[2]);
39std::optional<blender::int2> console_cursor_region_xy_get(const SpaceConsole *sc,
40 const ARegion *region,
41 int offset);
42
45
46/* `console_ops.cc` */
47
52
54
56
60
64
67
76
78enum {
86};
87
88} // namespace blender
#define C
Definition RandGen.cpp:29
#define str(s)
BMesh Iterators.
void CONSOLE_OT_history_cycle(wmOperatorType *ot)
void CONSOLE_OT_scrollback_append(wmOperatorType *ot)
void CONSOLE_OT_paste(wmOperatorType *ot)
void CONSOLE_OT_select_set(wmOperatorType *ot)
void CONSOLE_OT_select_all(wmOperatorType *ot)
ConsoleLine * console_history_verify(const bContext *C)
ConsoleLine * console_scrollback_add_str(SpaceConsole *sc, char *str, bool own)
void CONSOLE_OT_select_word(wmOperatorType *ot)
void CONSOLE_OT_copy(wmOperatorType *ot)
void CONSOLE_OT_unindent(wmOperatorType *ot)
void CONSOLE_OT_clear_line(wmOperatorType *ot)
std::optional< blender::int2 > console_cursor_region_xy_get(const SpaceConsole *sc, const ARegion *region, const int offset)
void CONSOLE_OT_history_append(wmOperatorType *ot)
void console_history_free(SpaceConsole *sc, ConsoleLine *cl)
void CONSOLE_OT_indent(wmOperatorType *ot)
void console_textview_update_rect(SpaceConsole *sc, ARegion *region)
void CONSOLE_OT_clear(wmOperatorType *ot)
void CONSOLE_OT_indent_or_autocomplete(wmOperatorType *ot)
void CONSOLE_OT_move(wmOperatorType *ot)
void CONSOLE_OT_insert(wmOperatorType *ot)
int console_textview_height(SpaceConsole *sc, const ARegion *region)
void console_textview_main(SpaceConsole *sc, const ARegion *region)
void console_scrollback_free(SpaceConsole *sc, ConsoleLine *cl)
void console_scrollback_prompt_end(SpaceConsole *sc, ConsoleLine *cl_dummy)
ConsoleLine * console_history_add_str(SpaceConsole *sc, char *str, bool own)
void console_scrollback_prompt_begin(SpaceConsole *sc, ConsoleLine *cl_dummy)
void CONSOLE_OT_delete(wmOperatorType *ot)
int console_char_pick(SpaceConsole *sc, const ARegion *region, const int mval[2])