28 POSITION_LEFT_TOP = 0,
29 POSITION_RIGHT_TOP = 1,
30 POSITION_LEFT_BOTTOM = 2,
31 POSITION_RIGHT_BOTTOM = 3,
35#pragma region Exposed Parameter Values
38 void mark_canvas_dirty();
41 Vector2i graphs_base_offset = Vector2i(8, 8);
44 BlockPosition text_block_position = BlockPosition::POSITION_LEFT_TOP;
45 Vector2i text_block_offset = Vector2i(8, 8);
46 Vector2i text_padding = Vector2i(3, 1);
47 real_t text_default_duration = 0.5f;
48 int text_default_size = 12;
49 Color text_foreground_color = Colors::white;
50 Color text_background_color = Colors::gray_bg;
51 Ref<Font> text_custom_font =
nullptr;
55 std::function<void()> mark_dirty_func =
nullptr;
59 static void _bind_methods();
66 void register_config(std::function<
void()> p_mark_dirty);
68 void unregister_config();
74 Vector2i get_graphs_base_offset()
const;
86 Vector2i get_text_block_offset()
const;
92 Vector2i get_text_padding()
const;
98 real_t get_text_default_duration()
const;
104 int get_text_default_size()
const;
110 Color get_text_foreground_color()
const;
116 Color get_text_background_color()
const;
122 Ref<Font> get_text_custom_font()
const;