21NAPI_CLASS_REF class DebugDraw2DConfig : public RefCounted {
22 GDCLASS(DebugDraw2DConfig, RefCounted)
32 POSITION_RIGHT_BOTTOM,
36#pragma region Exposed Parameter Values
39 void mark_canvas_dirty();
42 BlockPosition text_block_position = BlockPosition::POSITION_LEFT_TOP;
43 Vector2i text_block_offset = Vector2i(8, 8);
44 Vector2i text_padding = Vector2i(3, 1);
45 real_t text_default_duration = 0.5f;
46 int text_default_size = 12;
47 Color text_foreground_color = Colors::white;
48 Color text_background_color = Colors::gray_bg;
49 Ref<Font> text_custom_font =
nullptr;
53 std::function<void()> mark_dirty_func =
nullptr;
57 static void _bind_methods();
64 void register_config(std::function<
void()> p_mark_dirty);
66 void unregister_config();
78 NAPI godot::Vector2i get_text_block_offset()
const;
84 NAPI godot::Vector2i get_text_padding()
const;
90 NAPI real_t get_text_default_duration()
const;
96 NAPI
int get_text_default_size()
const;
102 NAPI godot::Color get_text_foreground_color()
const;
108 NAPI godot::Color get_text_background_color()
const;
114 NAPI Ref<godot::Font> get_text_custom_font()
const;