blob: 5a420f24d217760b0f78eaa35db27a619d7d2637 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#pragma once
#include <godot_cpp/classes/container.hpp>
#include <openvic-simulation/interface/GUI.hpp>
namespace OpenVic {
class GUIOverlappingElementsBox : public godot::Container {
GDCLASS(GUIOverlappingElementsBox, godot::Container)
GUI::OverlappingElementsBox const* PROPERTY(gui_overlapping_elements_box);
GUI::Element const* PROPERTY(gui_child_element);
godot::Error _update_child_positions();
protected:
static void _bind_methods();
void _notification(int what);
public:
GUIOverlappingElementsBox();
/* Reset gui_overlapping_elements_box and gui_child_element to nullptr, and remove all child elements. */
void clear();
/* Remove all child elements. */
void clear_children();
/* Add or remove child elements to reach the specified count. */
godot::Error set_child_count(int32_t new_count);
/* Set the GUI::OverlappingElementsBox. This does not affect any existing child elements. */
godot::Error set_gui_overlapping_elements_box(GUI::OverlappingElementsBox const* new_gui_overlapping_elements_box);
/* Return the name of the GUI::OverlappingElementsBox, or an empty String if it's null. */
godot::String get_gui_overlapping_elements_box_name() const;
/* Set the child GUI::Element, removing all previous child elements (even if the child GUI::Element doesn't change). */
godot::Error set_gui_child_element(GUI::Element const* new_gui_child_element);
/* Search for a GUI::Element with the specfied name and, if successful,
* set the child element to it using set_gui_child_element. */
godot::Error set_gui_child_element_name(
godot::String const& gui_child_element_file, godot::String const& gui_child_element_name
);
/* Return the name of the child GUI::Element, or an empty String if it's null. */
godot::String get_gui_child_element_name() const;
};
}
|