org.gnu.gtk
public class Misc extends Widget
Method Summary | |
---|---|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
double | getXAlign()
Returns the horizontal alignment of the widget. |
int | getXPadding()
Retrieve the amount of space added to the left and right of the widget. |
double | getYAlign()
Returns the vertical alignment of the widget. |
int | getYPadding()
Retrieve the amount of space added to the top and bottom of the widget. |
void | setAlignment(double xAlign, double yAlign)
Sets the alignment of a widget.
|
void | setPadding(int xPad, int yPad)
Sets the amount of space to add around the widget.
|
Parameters: xAlign The horizontal alignment from 0 (left) to 1 (right). yAlign The vertical alignment from 0 (top) to 1 (bottom).
Parameters: xPad The amount of space to add to the left and right of the widget. yPad The amount of space to add to the top and bottom of the widget.