godot-cpp/include/godot_cpp/core/NodePath.hpp

53 lines
743 B
C++
Raw Normal View History

2017-03-03 00:07:14 +00:00
#ifndef NODEPATH_H
#define NODEPATH_H
2017-03-15 22:19:58 +00:00
#if defined(_WIN32)
# ifdef _GD_CPP_CORE_API_IMPL
# define GD_CPP_CORE_API __declspec(dllexport)
# else
# define GD_CPP_CORE_API __declspec(dllimport)
# endif
#else
# define GD_CPP_CORE_API
#endif
2017-03-06 07:49:24 +00:00
#include "String.hpp"
2017-03-03 00:07:14 +00:00
#include <godot/godot_node_path.h>
namespace godot {
2017-03-15 22:19:58 +00:00
class GD_CPP_CORE_API NodePath
2017-03-03 00:07:14 +00:00
{
godot_node_path _node_path;
public:
NodePath();
NodePath(const String &from);
String get_name(const int idx) const;
int get_name_count() const;
String get_property() const;
String get_subname(const int idx) const;
int get_subname_count() const;
bool is_absolute() const;
bool is_empty() const;
operator String() const;
~NodePath();
2017-03-03 00:07:14 +00:00
};
}
#endif // NODEPATH_H