class

GSDL::UI::Image

Inherits GSDL::UI::Element < Reference < Object

Constructors

new(id : Symbol | Texture | Nil = nil, resize_mode : ResizeMode = ResizeMode::Center, width : Int32 = FitContent, height : Int32 = FitContent, x : Int32 = 0, y : Int32 = 0, anchor : Anchor = Anchor::TopLeft, z_index : Int32 = 0, padding : SpacingInput = 0, margin : SpacingInput = 0, flex : UInt8 = 0_u8)
Source

Instance methods

draw(draw : Draw)
Source
height
Source
resize_mode
Source
resize_mode=(resize_mode : ResizeMode)
Source
texture
Source
texture=(texture : Texture)
Source
texture=(texture : Texture | Nil)
Source
texture=(id : Symbol)
Source
width
Source