NodePath.hpp 654 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. operator String() const;
  20. void operator=(const NodePath &other);
  21. bool operator==(const NodePath &other);
  22. ~NodePath();
  23. };
  24. } // namespace godot
  25. #endif // NODEPATH_H