Sprite:getLayoutConstraints

From GiderosMobile

Available since: Gideros 2018.9
Class: Sprite

Description

See Sprite:setLayoutConstraints for a description of the fields.

(table) = Sprite:getLayoutConstraints([mask,layoutKey])

Parameters

mask (bool) enable masking optional
layoutKey (LayoutKeys) the LayoutKeys to querry optional

Return values

Returns (table) table of layout constraints

Example

local lp2 = mybtn1:getLayoutConstraints(true, Sprite.LayoutKeys.gridwidth)
print(lp2.gridwidth)