2
0

NodePath.hpp 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef NODEPATH_H
  2. #define NODEPATH_H
  3. #if defined(_WIN32)
  4. # ifdef _GD_CPP_CORE_API_IMPL
  5. # define GD_CPP_CORE_API __declspec(dllexport)
  6. # else
  7. # define GD_CPP_CORE_API __declspec(dllimport)
  8. # endif
  9. #else
  10. # define GD_CPP_CORE_API
  11. #endif
  12. #include "String.hpp"
  13. #include <godot/godot_node_path.h>
  14. namespace godot {
  15. class GD_CPP_CORE_API NodePath
  16. {
  17. godot_node_path _node_path;
  18. public:
  19. NodePath();
  20. NodePath(const NodePath &other);
  21. NodePath(const String& from);
  22. NodePath(const char *contents);
  23. String get_name(const int idx) const;
  24. int get_name_count() const;
  25. String get_property() const;
  26. String get_subname(const int idx) const;
  27. int get_subname_count() const;
  28. bool is_absolute() const;
  29. bool is_empty() const;
  30. operator String() const;
  31. void operator =(const NodePath& other);
  32. ~NodePath();
  33. };
  34. }
  35. #endif // NODEPATH_H