.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_TextureFrame: TextureFrame ============ **Inherits:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Control Frame that draws a texture. Member Functions ---------------- +------------------------------+-------------------------------------------------------------------------------------------------------+ | void | :ref:`set_texture` **(** :ref:`Object` texture **)** | +------------------------------+-------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`get_texture` **(** **)** const | +------------------------------+-------------------------------------------------------------------------------------------------------+ | void | :ref:`set_modulate` **(** :ref:`Color` modulate **)** | +------------------------------+-------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_modulate` **(** **)** const | +------------------------------+-------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand` **(** :ref:`bool` enable **)** | +------------------------------+-------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_expand` **(** **)** const | +------------------------------+-------------------------------------------------------------------------------------------------------+ Description ----------- 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. Member Function Description --------------------------- .. _class_TextureFrame_set_texture: - void **set_texture** **(** :ref:`Object` texture **)** .. _class_TextureFrame_get_texture: - :ref:`Object` **get_texture** **(** **)** const .. _class_TextureFrame_set_modulate: - void **set_modulate** **(** :ref:`Color` modulate **)** .. _class_TextureFrame_get_modulate: - :ref:`Color` **get_modulate** **(** **)** const .. _class_TextureFrame_set_expand: - void **set_expand** **(** :ref:`bool` enable **)** .. _class_TextureFrame_has_expand: - :ref:`bool` **has_expand** **(** **)** const