|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Misc
This is a base class providing allignment and padding to a number of displayable widgets.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
protected |
Misc(Handle handle)
|
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. |
protected static void |
gtk_misc_get_alignment(Handle misc,
double[] xalign,
double[] yalign)
|
protected static void |
gtk_misc_get_padding(Handle misc,
int[] xpad,
int[] ypad)
|
protected static int |
gtk_misc_get_type()
|
protected static void |
gtk_misc_set_alignment(Handle misc,
double xalign,
double yalign)
|
protected static void |
gtk_misc_set_padding(Handle misc,
int xpad,
int ypad)
|
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. |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Misc(Handle handle)
Method Detail |
public void setAlignment(double xAlign, double yAlign)
xAlign
- The horizontal alignment from 0 (left) to 1 (right).yAlign
- The vertical alignment from 0 (top) to 1 (bottom).public double getXAlign()
public double getYAlign()
public void setPadding(int xPad, int yPad)
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.public int getXPadding()
public int getYPadding()
public static Type getType()
protected static final int gtk_misc_get_type()
protected static final void gtk_misc_set_alignment(Handle misc, double xalign, double yalign)
protected static final void gtk_misc_get_alignment(Handle misc, double[] xalign, double[] yalign)
protected static final void gtk_misc_set_padding(Handle misc, int xpad, int ypad)
protected static final void gtk_misc_get_padding(Handle misc, int[] xpad, int[] ypad)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |