Frame.setLabelAlign

Sets the alignment of the frame widget’s label. The default values for a newly created frame are 0.0 and 0.5.

class Frame
void
setLabelAlign
(
float xalign
,
float yalign
)

Parameters

xalign float

The position of the label along the top edge of the widget. A value of 0.0 represents left alignment; 1.0 represents right alignment.

yalign float

The y alignment of the label. A value of 0.0 aligns under the frame; 1.0 aligns above the frame. If the values are exactly 0.0 or 1.0 the gap in the frame won’t be painted because the label will be completely above or below the frame.