TextureRect

Control for drawing textures.

Used to draw icons and sprites in a user interface. The texture's placement can be controlled with the stretchMode property. It can scale, tile, or stay centered inside its bounding rectangle.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
StretchMode
enum StretchMode

Functions

getStretchMode
TextureRect.StretchMode getStretchMode()
getTexture
Ref!Texture getTexture()
hasExpand
bool hasExpand()
opAssign
TextureRect opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(TextureRect other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setExpand
void setExpand(bool enable)
setStretchMode
void setStretchMode(long stretch_mode)
setTexture
void setTexture(Texture texture)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

expand
bool expand [@property setter]

If true the texture scales to fit its bounding rectangle. Default value: false.

expand
bool expand [@property getter]

If true the texture scales to fit its bounding rectangle. Default value: false.

stretchMode
TextureRect.StretchMode stretchMode [@property getter]
long stretchMode [@property setter]

Controls the texture's behavior when resizing the node's bounding rectangle. See stretchmode.

texture
Texture texture [@property getter]
Texture texture [@property setter]

The node's Texture resource.

Static functions

_new
TextureRect _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta