< prev index next >
modules/javafx.graphics/src/main/java/com/sun/glass/ui/Window.java
Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr
*** 26,35 ****
--- 26,37 ----
import com.sun.glass.events.MouseEvent;
import com.sun.glass.events.WindowEvent;
import com.sun.prism.impl.PrismSettings;
+ import java.lang.annotation.Native;
+
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
*** 127,169 ****
* An utility window.
*
* Often used for floating toolbars. It has smaller than usual decorations
* and doesn't display a taskbar button.
*/
! public static final int UTILITY = 1 << 2;
/**
* A popup window.
*
* Used to display popups (tooltips, popup menus, etc.) Note that by
* default it may display a task-bar button. To hide it the window must be
* owned.
*/
! public static final int POPUP = 1 << 3;
// These affect window decorations as well as system menu actions,
// so applicable to both decorated and undecorated windows
! public static final int CLOSABLE = 1 << 4;
! public static final int MINIMIZABLE = 1 << 5;
! public static final int MAXIMIZABLE = 1 << 6;
/**
* Indicates that the window trim will draw from right to left.
*/
! public static final int RIGHT_TO_LEFT = 1 << 7;
/**
* Indicates that a window will have a client area textured the same way as the platform decorations
* and will not have a border between decorations and the client area.
* This is supported not on all platforms, the client should check if the feature is supported by using
* {@link com.sun.glass.ui.Application#supportsUnifiedWindows()}
*/
! public static final int UNIFIED = 1 << 8;
final static public class State {
! public static final int NORMAL = 1;
! public static final int MINIMIZED = 2;
! public static final int MAXIMIZED = 3;
}
/**
* Available window levels.
*
--- 129,171 ----
* An utility window.
*
* Often used for floating toolbars. It has smaller than usual decorations
* and doesn't display a taskbar button.
*/
! @Native public static final int UTILITY = 1 << 2;
/**
* A popup window.
*
* Used to display popups (tooltips, popup menus, etc.) Note that by
* default it may display a task-bar button. To hide it the window must be
* owned.
*/
! @Native public static final int POPUP = 1 << 3;
// These affect window decorations as well as system menu actions,
// so applicable to both decorated and undecorated windows
! @Native public static final int CLOSABLE = 1 << 4;
! @Native public static final int MINIMIZABLE = 1 << 5;
! @Native public static final int MAXIMIZABLE = 1 << 6;
/**
* Indicates that the window trim will draw from right to left.
*/
! @Native public static final int RIGHT_TO_LEFT = 1 << 7;
/**
* Indicates that a window will have a client area textured the same way as the platform decorations
* and will not have a border between decorations and the client area.
* This is supported not on all platforms, the client should check if the feature is supported by using
* {@link com.sun.glass.ui.Application#supportsUnifiedWindows()}
*/
! @Native public static final int UNIFIED = 1 << 8;
final static public class State {
! @Native public static final int NORMAL = 1;
! @Native public static final int MINIMIZED = 2;
! @Native public static final int MAXIMIZED = 3;
}
/**
* Available window levels.
*
*** 171,192 ****
* may represent the same window level.
*
* @see #setLevel
*/
public static final class Level {
! private static final int _MIN = 1;
/** Normal window level. */
! public static final int NORMAL = 1;
/** A window level that is above all other NORMAL windows. */
! public static final int FLOATING = 2;
/** A very topmost window level. May cover system UI elements such as dock, taskbar, etc. */
! public static final int TOPMOST = 3;
! private static final int _MAX = 3;
}
private final Window owner;
private final long parent;
private final int styleMask;
--- 173,194 ----
* may represent the same window level.
*
* @see #setLevel
*/
public static final class Level {
! @Native private static final int _MIN = 1;
/** Normal window level. */
! @Native public static final int NORMAL = 1;
/** A window level that is above all other NORMAL windows. */
! @Native public static final int FLOATING = 2;
/** A very topmost window level. May cover system UI elements such as dock, taskbar, etc. */
! @Native public static final int TOPMOST = 3;
! @Native private static final int _MAX = 3;
}
private final Window owner;
private final long parent;
private final int styleMask;
< prev index next >