UI.ImageText

From GiderosMobile
Revision as of 07:18, 17 October 2023 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2023.1
Class: UI

Description

Creates an ImageText widget.

UI.ImageText.new()

Example

local gui = UI.ImageText.new()
local tex = Texture.new("ui/icons/ic_ref.png")
gui:setImage(tex)
gui:setText("reading is good for you")
gui:setPosition(50, 50)

local screen=UI.Screen.new() -- needed to add the texture
screen:ui(gui)