NodePath.hpp 739 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef NODEPATH_H
  2. #define NODEPATH_H
  3. #include "String.hpp"
  4. #include <gdnative/node_path.h>
  5. namespace godot {
  6. class NodePath {
  7. godot_node_path _node_path;
  8. public:
  9. NodePath();
  10. NodePath(const NodePath &other);
  11. NodePath(const String &from);
  12. NodePath(const char *contents);
  13. String get_name(const int idx) const;
  14. int get_name_count() const;
  15. String get_subname(const int idx) const;
  16. int get_subname_count() const;
  17. bool is_absolute() const;
  18. bool is_empty() const;
  19. NodePath get_as_property_path() const;
  20. String get_concatenated_subnames() const;
  21. operator String() const;
  22. void operator=(const NodePath &other);
  23. bool operator==(const NodePath &other);
  24. ~NodePath();
  25. };
  26. } // namespace godot
  27. #endif // NODEPATH_H