Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent| Modifier and Type | Method and Description |
|---|---|
float |
getAlignmentX()
Gets the horizontal alignment of the Widget within its allocation.
|
float |
getAlignmentY()
Gets the vertical alignment of the Widget within its allocation.
|
int |
getPaddingX()
Returns the horizontal padding of the Widget, in pixels.
|
int |
getPaddingY()
Returns the vertical padding of the Widget, in pixels.
|
void |
setAlignment(float xalign,
float yalign)
Set the horizontal and vertical alignment attributes, enabling the
Widget to be positioned within its allocated area.
|
void |
setPadding(int xpad,
int ypad)
Set the amount of extra horizontal and vertical padding space to added
around the Widget.
|
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAllpublic float getAlignmentX()
setAlignment().public float getAlignmentY()
setAlignment().public int getPaddingX()
public int getPaddingY()
public void setAlignment(float xalign,
float yalign)
xalign - the horizontal alignment, from 0.0f (full left)
to 1.0f (full right).yalign - the vertical alignment, from 0.0f (top) to
1.0f (bottom).public void setPadding(int xpad,
int ypad)
xpad - the amount of space to add on the left and right of the
Widget, in pixels.ypad - the amount of space to add on the top and bottom of the
Widget, in pixels.