StyleRectOffset

structure StyleRectOffset

A sub-structure of Style.

This is used in places where you need to define a zone around the edges of a widget. (Margins, padding, defining the segments of a 9-segment stretchable image, etc).

Suffix Type Description
LEFT Scalar Number of pixels on the left.
RIGHT Scalar Number of pixels on the right.
TOP Scalar Number of pixels on the top.
BOTTOM Scalar Number of pixels on the bottom.
H Scalar Sets the number of pixels on both the left and right. Reading returns LEFT.
V Scalar Sets the number of pixels on both the top and bottom. Reading returns TOP.
StyleRectOffset:LEFT
Type:Scalar
Access:Get/Set

Number of Pixels on the left

StyleRectOffset:RIGHT
Type:Scalar
Access:Get/Set

Number of Pixels on the right

StyleRectOffset:TOP
Type:Scalar
Access:Get/Set

Number of Pixels on the top

StyleRectOffset:BOTTOM
Type:Scalar
Access:Get/Set

Number of Pixels on the bottom

StyleRectOffset:H
Type:Scalar
Access:Get/Set

Sets the number of pixels on both the left and right to this same value. Getting the value returns just the value of LEFT (it does not test to see if RIGHT is the same value).

StyleRectOffset:V
Type:Scalar
Access:Get/Set

Sets the number of pixels on both the top and bottom to this same value. Getting the value returns just the value of TOP (it does not test to see if BOTTOM is the same value).