mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
lib + include + Godot dossier
This commit is contained in:
118
GodoBinding/include/gen/GraphEdit.hpp
Normal file
118
GodoBinding/include/gen/GraphEdit.hpp
Normal file
@@ -0,0 +1,118 @@
|
||||
#ifndef GODOT_CPP_GRAPHEDIT_HPP
|
||||
#define GODOT_CPP_GRAPHEDIT_HPP
|
||||
|
||||
|
||||
#include <gdnative_api_struct.gen.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <core/CoreTypes.hpp>
|
||||
#include <core/Ref.hpp>
|
||||
|
||||
#include "Control.hpp"
|
||||
namespace godot {
|
||||
|
||||
class Node;
|
||||
class InputEvent;
|
||||
class HBoxContainer;
|
||||
|
||||
class GraphEdit : public Control {
|
||||
struct ___method_bindings {
|
||||
godot_method_bind *mb__connections_layer_draw;
|
||||
godot_method_bind *mb__graph_node_moved;
|
||||
godot_method_bind *mb__graph_node_raised;
|
||||
godot_method_bind *mb__gui_input;
|
||||
godot_method_bind *mb__scroll_moved;
|
||||
godot_method_bind *mb__snap_toggled;
|
||||
godot_method_bind *mb__snap_value_changed;
|
||||
godot_method_bind *mb__top_layer_draw;
|
||||
godot_method_bind *mb__top_layer_input;
|
||||
godot_method_bind *mb__update_scroll_offset;
|
||||
godot_method_bind *mb__zoom_minus;
|
||||
godot_method_bind *mb__zoom_plus;
|
||||
godot_method_bind *mb__zoom_reset;
|
||||
godot_method_bind *mb_add_valid_connection_type;
|
||||
godot_method_bind *mb_add_valid_left_disconnect_type;
|
||||
godot_method_bind *mb_add_valid_right_disconnect_type;
|
||||
godot_method_bind *mb_clear_connections;
|
||||
godot_method_bind *mb_connect_node;
|
||||
godot_method_bind *mb_disconnect_node;
|
||||
godot_method_bind *mb_get_connection_list;
|
||||
godot_method_bind *mb_get_scroll_ofs;
|
||||
godot_method_bind *mb_get_snap;
|
||||
godot_method_bind *mb_get_zoom;
|
||||
godot_method_bind *mb_get_zoom_hbox;
|
||||
godot_method_bind *mb_is_node_connected;
|
||||
godot_method_bind *mb_is_right_disconnects_enabled;
|
||||
godot_method_bind *mb_is_using_snap;
|
||||
godot_method_bind *mb_is_valid_connection_type;
|
||||
godot_method_bind *mb_remove_valid_connection_type;
|
||||
godot_method_bind *mb_remove_valid_left_disconnect_type;
|
||||
godot_method_bind *mb_remove_valid_right_disconnect_type;
|
||||
godot_method_bind *mb_set_connection_activity;
|
||||
godot_method_bind *mb_set_right_disconnects;
|
||||
godot_method_bind *mb_set_scroll_ofs;
|
||||
godot_method_bind *mb_set_selected;
|
||||
godot_method_bind *mb_set_snap;
|
||||
godot_method_bind *mb_set_use_snap;
|
||||
godot_method_bind *mb_set_zoom;
|
||||
};
|
||||
static ___method_bindings ___mb;
|
||||
|
||||
public:
|
||||
static void ___init_method_bindings();
|
||||
|
||||
static inline const char *___get_class_name() { return (const char *) "GraphEdit"; }
|
||||
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
|
||||
|
||||
|
||||
static GraphEdit *_new();
|
||||
|
||||
// methods
|
||||
void _connections_layer_draw();
|
||||
void _graph_node_moved(const Node *arg0);
|
||||
void _graph_node_raised(const Node *arg0);
|
||||
void _gui_input(const Ref<InputEvent> arg0);
|
||||
void _scroll_moved(const real_t arg0);
|
||||
void _snap_toggled();
|
||||
void _snap_value_changed(const real_t arg0);
|
||||
void _top_layer_draw();
|
||||
void _top_layer_input(const Ref<InputEvent> arg0);
|
||||
void _update_scroll_offset();
|
||||
void _zoom_minus();
|
||||
void _zoom_plus();
|
||||
void _zoom_reset();
|
||||
void add_valid_connection_type(const int64_t from_type, const int64_t to_type);
|
||||
void add_valid_left_disconnect_type(const int64_t type);
|
||||
void add_valid_right_disconnect_type(const int64_t type);
|
||||
void clear_connections();
|
||||
Error connect_node(const String from, const int64_t from_port, const String to, const int64_t to_port);
|
||||
void disconnect_node(const String from, const int64_t from_port, const String to, const int64_t to_port);
|
||||
Array get_connection_list() const;
|
||||
Vector2 get_scroll_ofs() const;
|
||||
int64_t get_snap() const;
|
||||
real_t get_zoom() const;
|
||||
HBoxContainer *get_zoom_hbox();
|
||||
bool is_node_connected(const String from, const int64_t from_port, const String to, const int64_t to_port);
|
||||
bool is_right_disconnects_enabled() const;
|
||||
bool is_using_snap() const;
|
||||
bool is_valid_connection_type(const int64_t from_type, const int64_t to_type) const;
|
||||
void remove_valid_connection_type(const int64_t from_type, const int64_t to_type);
|
||||
void remove_valid_left_disconnect_type(const int64_t type);
|
||||
void remove_valid_right_disconnect_type(const int64_t type);
|
||||
void set_connection_activity(const String from, const int64_t from_port, const String to, const int64_t to_port, const real_t amount);
|
||||
void set_right_disconnects(const bool enable);
|
||||
void set_scroll_ofs(const Vector2 ofs);
|
||||
void set_selected(const Node *node);
|
||||
void set_snap(const int64_t pixels);
|
||||
void set_use_snap(const bool enable);
|
||||
void set_zoom(const real_t p_zoom);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user