mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
54 lines
1.7 KiB
C++
54 lines
1.7 KiB
C++
#ifndef GODOT_CPP_EDITORINSPECTORPLUGIN_HPP
|
|
#define GODOT_CPP_EDITORINSPECTORPLUGIN_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
|
|
#include "Reference.hpp"
|
|
namespace godot {
|
|
|
|
class Control;
|
|
class Object;
|
|
|
|
class EditorInspectorPlugin : public Reference {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb_add_custom_control;
|
|
godot_method_bind *mb_add_property_editor;
|
|
godot_method_bind *mb_add_property_editor_for_multiple_properties;
|
|
godot_method_bind *mb_can_handle;
|
|
godot_method_bind *mb_parse_begin;
|
|
godot_method_bind *mb_parse_category;
|
|
godot_method_bind *mb_parse_end;
|
|
godot_method_bind *mb_parse_property;
|
|
};
|
|
static ___method_bindings ___mb;
|
|
|
|
public:
|
|
static void ___init_method_bindings();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "EditorInspectorPlugin"; }
|
|
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (o) ? (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o) : nullptr; }
|
|
|
|
// enums
|
|
|
|
// constants
|
|
|
|
// methods
|
|
void add_custom_control(const Control *control);
|
|
void add_property_editor(const String property, const Control *editor);
|
|
void add_property_editor_for_multiple_properties(const String label, const PoolStringArray properties, const Control *editor);
|
|
bool can_handle(const Object *object);
|
|
void parse_begin(const Object *object);
|
|
void parse_category(const Object *object, const String category);
|
|
void parse_end();
|
|
bool parse_property(const Object *object, const int64_t type, const String path, const int64_t hint, const String hint_text, const int64_t usage);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |