Package: gtk

Function gtk-button-alignment

Lambda List

gtk-button-alignment (button)

Syntax

(gtk-button-alignment button) => (list xalign yalign)
(setf (gtk-button-alignment button) (list xalign yalign))

Arguments

button -- a gtk-button widget
xalign -- a float with the horizontal position of the child, the value 0.0 is left aligned, 1.0 is right aligned
yalign -- a float with the vertical position of the child, the value 0.0 is top aligned, 1.0 is bottom aligned

Details

Accessor of the alignment of the button.

The gtk-button-alignment function gets the alignment of the child in the button. The (setf gtk-button-alignment) function sets the alignment. This property has no effect unless the child is a gtk-misc or a gtk-alignment widget.

Warning:

The gtk-button-alignment function has been deprecated since version 3.14 and should not be used in newly written code. Access the child widget directly if you need to control its alignment.
 

See also

2021-12-4