TextureFrame

Inherits: Control < CanvasItem < Node < Object

Category: Core

Brief Description

Control Frame that draws a texture.

Member Functions

Color

get_modulate ( ) const

int

get_stretch_mode ( ) const

Object

get_texture ( ) const

bool

has_expand ( ) const

void

set_expand ( bool enable )

void

set_modulate ( Color modulate )

void

set_stretch_mode ( int stretch_mode )

void

set_texture ( Object texture )

Numeric Constants

  • STRETCH_SCALE_ON_EXPAND = 0

  • STRETCH_SCALE = 1

  • STRETCH_TILE = 2

  • STRETCH_KEEP = 3

  • STRETCH_KEEP_CENTERED = 4

  • STRETCH_KEEP_ASPECT = 5

  • STRETCH_KEEP_ASPECT_CENTERED = 6

  • STRETCH_KEEP_ASPECT_COVERED = 7

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

  • Color get_modulate ( ) const

  • int get_stretch_mode ( ) const

  • Object get_texture ( ) const

  • bool has_expand ( ) const

  • void set_expand ( bool enable )

  • void set_modulate ( Color modulate )

  • void set_stretch_mode ( int stretch_mode )

  • void set_texture ( Object texture )