class_textureframe.rst 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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_TextureFrame:
  4. TextureFrame
  5. ============
  6. **Inherits:** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Control Frame that draws a texture.
  11. Member Functions
  12. ----------------
  13. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  14. | :ref:`Color<class_color>` | :ref:`get_modulate<class_TextureFrame_get_modulate>` **(** **)** const |
  15. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`get_stretch_mode<class_TextureFrame_get_stretch_mode>` **(** **)** const |
  17. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Object<class_object>` | :ref:`get_texture<class_TextureFrame_get_texture>` **(** **)** const |
  19. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`has_expand<class_TextureFrame_has_expand>` **(** **)** const |
  21. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_expand<class_TextureFrame_set_expand>` **(** :ref:`bool<class_bool>` enable **)** |
  23. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_modulate<class_TextureFrame_set_modulate>` **(** :ref:`Color<class_color>` modulate **)** |
  25. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_stretch_mode<class_TextureFrame_set_stretch_mode>` **(** :ref:`int<class_int>` stretch_mode **)** |
  27. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`set_texture<class_TextureFrame_set_texture>` **(** :ref:`Object<class_object>` texture **)** |
  29. +------------------------------+---------------------------------------------------------------------------------------------------------------+
  30. Numeric Constants
  31. -----------------
  32. - **STRETCH_SCALE_ON_EXPAND** = **0**
  33. - **STRETCH_SCALE** = **1**
  34. - **STRETCH_TILE** = **2**
  35. - **STRETCH_KEEP** = **3**
  36. - **STRETCH_KEEP_CENTERED** = **4**
  37. - **STRETCH_KEEP_ASPECT** = **5**
  38. - **STRETCH_KEEP_ASPECT_CENTERED** = **6**
  39. - **STRETCH_KEEP_ASPECT_COVERED** = **7**
  40. Description
  41. -----------
  42. Control frame that simply draws an assigned texture. It can stretch or not. It's a simple way to just show an image in a UI.
  43. Member Function Description
  44. ---------------------------
  45. .. _class_TextureFrame_get_modulate:
  46. - :ref:`Color<class_color>` **get_modulate** **(** **)** const
  47. .. _class_TextureFrame_get_stretch_mode:
  48. - :ref:`int<class_int>` **get_stretch_mode** **(** **)** const
  49. .. _class_TextureFrame_get_texture:
  50. - :ref:`Object<class_object>` **get_texture** **(** **)** const
  51. .. _class_TextureFrame_has_expand:
  52. - :ref:`bool<class_bool>` **has_expand** **(** **)** const
  53. .. _class_TextureFrame_set_expand:
  54. - void **set_expand** **(** :ref:`bool<class_bool>` enable **)**
  55. .. _class_TextureFrame_set_modulate:
  56. - void **set_modulate** **(** :ref:`Color<class_color>` modulate **)**
  57. .. _class_TextureFrame_set_stretch_mode:
  58. - void **set_stretch_mode** **(** :ref:`int<class_int>` stretch_mode **)**
  59. .. _class_TextureFrame_set_texture:
  60. - void **set_texture** **(** :ref:`Object<class_object>` texture **)**