Difference between revisions of "UI.Border"

From GiderosMobile
(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''...")
 
 
Line 32: Line 32:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
{{GIDEROS IMPORTANT LINKS}}
+
{{UI}}

Latest revision as of 08:17, 17 October 2023

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)