GtkFrame::set_label_align

GtkFrame::set_label_align

set_label_align() sets the position of the label along the top edge of the frame. The position is given as a double, so that an xalign setting of 0.0 would hold the label against the top left edge of the frame and a setting of 1.0 against the top right edge. The default xalign setting is 0.0.

Note that although the yalign setting is currently ignored by GTK, it is not possible to omit the parameter completely. The default setting for yalign is 0.5 both currently and in development releases of GTK+, so it would seem advisable to use that value.

$frame->set_label_align(0.7, 0.5);

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.