NodePath.hpp 639 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. {
  8. godot_node_path _node_path;
  9. public:
  10. NodePath();
  11. NodePath(const NodePath &other);
  12. NodePath(const String& from);
  13. NodePath(const char *contents);
  14. String get_name(const int idx) const;
  15. int get_name_count() const;
  16. String get_subname(const int idx) const;
  17. int get_subname_count() const;
  18. bool is_absolute() const;
  19. bool is_empty() const;
  20. operator String() const;
  21. void operator =(const NodePath& other);
  22. bool operator ==(const NodePath& other);
  23. ~NodePath();
  24. };
  25. }
  26. #endif // NODEPATH_H