org.gnu.gtk

Class WindowPosition

public class WindowPosition extends Enum

This class can influence the placement of a window. Note that only CENTER_ALWAYS will affect the window placement once the window is visible.
Field Summary
static WindowPositionCENTER
Windows should be placed in the center of the screen.
static WindowPositionCENTER_ALWAYS
Keep windows centered as it changes size.
static WindowPositionCENTER_ON_PARENT
Center the window on its transient parent.
static WindowPositionMOUSE
Windows should be placed at the current mouse position.
static WindowPositionNONE
No influence is made on placement.
Method Summary
WindowPositionand(WindowPosition other)
static WindowPositionintern(int value)
WindowPositionor(WindowPosition other)
booleantest(WindowPosition other)
WindowPositionxor(WindowPosition other)

Field Detail

CENTER

public static final WindowPosition CENTER
Windows should be placed in the center of the screen.

CENTER_ALWAYS

public static final WindowPosition CENTER_ALWAYS
Keep windows centered as it changes size. This will move the window if it is applied to a visible window.

CENTER_ON_PARENT

public static final WindowPosition CENTER_ON_PARENT
Center the window on its transient parent.

MOUSE

public static final WindowPosition MOUSE
Windows should be placed at the current mouse position.

NONE

public static final WindowPosition NONE
No influence is made on placement.

Method Detail

and

public WindowPosition and(WindowPosition other)

intern

public static WindowPosition intern(int value)

or

public WindowPosition or(WindowPosition other)

test

public boolean test(WindowPosition other)

xor

public WindowPosition xor(WindowPosition other)