NodePath.hpp 847 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. friend class Variant;
  9. inline explicit NodePath(godot_node_path node_path) {
  10. _node_path = node_path;
  11. }
  12. public:
  13. NodePath();
  14. NodePath(const NodePath &other);
  15. NodePath(const String &from);
  16. NodePath(const char *contents);
  17. String get_name(const int idx) const;
  18. int get_name_count() const;
  19. String get_subname(const int idx) const;
  20. int get_subname_count() const;
  21. bool is_absolute() const;
  22. bool is_empty() const;
  23. NodePath get_as_property_path() const;
  24. String get_concatenated_subnames() const;
  25. operator String() const;
  26. void operator=(const NodePath &other);
  27. bool operator==(const NodePath &other);
  28. ~NodePath();
  29. };
  30. } // namespace godot
  31. #endif // NODEPATH_H