UI.Border

From GiderosMobile

Available since: Gideros 2023.1
Class: UI

Description

Creates a Border widget. There are two kind of borders: UI.Border.Basic and UI.Border.NinePatch.

UI.Border.Basic.new(params)

Available parameters for the Border.Basic are:

  • thickness (number)
  • insets (number)
  • radius (number)
  • bgColor (hex)
  • fgColor (hex)

Parameters

params: (table) the Border widget parameters

Example

local gui = UI.Border.Basic.new(
	{
		thickness=8, insets=3, radius=4,
		bgColor=0x333366, fgColor=0xccccff,
	}
)
gui:setSize(128, 32)
gui:setPosition(64, 64)
stage:addChild(gui)