class_viewportsprite.rst 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_ViewportSprite:
  4. ViewportSprite
  5. ==============
  6. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`set_viewport_path<class_ViewportSprite_set_viewport_path>` **(** :ref:`NodePath<class_nodepath>` path **)** |
  14. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`NodePath<class_nodepath>` | :ref:`get_viewport_path<class_ViewportSprite_get_viewport_path>` **(** **)** const |
  16. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_centered<class_ViewportSprite_set_centered>` **(** :ref:`bool<class_bool>` centered **)** |
  18. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`is_centered<class_ViewportSprite_is_centered>` **(** **)** const |
  20. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`set_offset<class_ViewportSprite_set_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
  22. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Vector2<class_vector2>` | :ref:`get_offset<class_ViewportSprite_get_offset>` **(** **)** const |
  24. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_modulate<class_ViewportSprite_set_modulate>` **(** :ref:`Color<class_color>` modulate **)** |
  26. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`Color<class_color>` | :ref:`get_modulate<class_ViewportSprite_get_modulate>` **(** **)** const |
  28. +----------------------------------+---------------------------------------------------------------------------------------------------------------------+
  29. Member Function Description
  30. ---------------------------
  31. .. _class_ViewportSprite_set_viewport_path:
  32. - void **set_viewport_path** **(** :ref:`NodePath<class_nodepath>` path **)**
  33. .. _class_ViewportSprite_get_viewport_path:
  34. - :ref:`NodePath<class_nodepath>` **get_viewport_path** **(** **)** const
  35. .. _class_ViewportSprite_set_centered:
  36. - void **set_centered** **(** :ref:`bool<class_bool>` centered **)**
  37. .. _class_ViewportSprite_is_centered:
  38. - :ref:`bool<class_bool>` **is_centered** **(** **)** const
  39. .. _class_ViewportSprite_set_offset:
  40. - void **set_offset** **(** :ref:`Vector2<class_vector2>` offset **)**
  41. .. _class_ViewportSprite_get_offset:
  42. - :ref:`Vector2<class_vector2>` **get_offset** **(** **)** const
  43. .. _class_ViewportSprite_set_modulate:
  44. - void **set_modulate** **(** :ref:`Color<class_color>` modulate **)**
  45. .. _class_ViewportSprite_get_modulate:
  46. - :ref:`Color<class_color>` **get_modulate** **(** **)** const