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)
SourceInstance methods
draw(draw : Draw)
Sourceheight
Sourceresize_mode
Sourceresize_mode=(resize_mode : ResizeMode)
Sourcetexture
Sourcetexture=(texture : Texture)
Sourcetexture=(texture : Texture | Nil)
Sourcewidth
Source