org.gnu.gtk
Class Misc
This is a base class providing alignment and padding to a number of
displayable widgets.
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.
|
activate , addAccelerator , addEvents , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , canActivateAccel , createContext , createLayout , draw , drawArea , drawArea , finish , getAccessible , getAllocation , getCanFocus , getColormap , getContext , getData , getDisplay , getDragData , getEventListenerClass , getEventType , getExtensionEvents , getModifierStyle , getName , getParent , getParentWindow , getPointer , getRootWindow , getScreen , getSensitive , getStyle , getToplevel , getType , getWidget , getWindow , grabDefault , grabFocus , hasFocus , hasScreen , hide , hideAll , highlight , highlight , intersect , isAncestor , makeWidget , modifyStyle , popColormap , pushColormap , realize , removeAccelerator , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , reparent , setBackgroundColor , setBaseColor , setCanFocus , setColormap , setDoubleBuffered , setDragDestination , setDragIcon , setDragIconPixbuf , setDragIconStock , setDragSource , setEvents , setExtensionEvents , setFont , setForegroundColor , setMinimumSize , setName , setNoDragDestination , setNoDragSource , setSensitive , setTextColor , shapeCombineMask , show , showAll , unHighlight , unHighlight |
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Widget
getXAlign
public double getXAlign()
Returns the horizontal alignment of the widget.
getXPadding
public int getXPadding()
Retrieve the amount of space added to the left and right of the widget.
getYAlign
public double getYAlign()
Returns the vertical alignment of the widget.
getYPadding
public int getYPadding()
Retrieve the amount of space added to the top and bottom of the widget.
setAlignment
public void setAlignment(double xAlign,
double yAlign)
Sets the alignment of a widget.
xAlign
- The horizontal alignment from 0 (left) to 1 (right).yAlign
- The vertical alignment from 0 (top) to 1 (bottom).
setPadding
public void setPadding(int xPad,
int yPad)
Sets the amount of space to add around the widget.
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.