UI.Border

From GiderosMobile
Revision as of 02:33, 14 October 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates a Border widget. There are two kind of borders: '''UI.Border.Basic''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)