final class MonocleWindow extends Window
Window.EventHandler, Window.Level, Window.State
Modifier and Type | Field and Description |
---|---|
private float |
cachedAlpha |
private int |
cachedH |
private int |
cachedW |
private int |
cachedX |
private int |
cachedY |
private int |
id |
private int |
maxH |
private int |
maxW |
private int |
minH |
private int |
minW |
private int |
state |
private static int |
STATE_FULLSCREEN |
private static int |
STATE_MAXIMIZED |
private static int |
STATE_MINIMIZED |
private static int |
STATE_NORMAL |
CLOSABLE, MAXIMIZABLE, MINIMIZABLE, NORMAL, POPUP, RIGHT_TO_LEFT, TITLED, TRANSPARENT, UNIFIED, UNTITLED, UTILITY
Constructor and Description |
---|
MonocleWindow(long parent) |
MonocleWindow(Window owner,
Screen screen,
int styleMask) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_close(long nativeWindowPointer) |
protected long |
_createChildWindow(long parent) |
protected long |
_createWindow(long NativeWindow,
long NativeScreen,
int mask) |
protected void |
_enterModal(long ptr)
The functions below are used when the platform support modality natively.
|
protected void |
_enterModalWithWindow(long dialog,
long window) |
protected void |
_exitModal(long ptr) |
protected int |
_getEmbeddedX(long ptr) |
protected int |
_getEmbeddedY(long ptr) |
protected boolean |
_grabFocus(long ptr) |
protected boolean |
_maximize(long nativeWindowPointer,
boolean maximize,
boolean wasMaximized) |
protected boolean |
_minimize(long nativeWindowPointer,
boolean minimize) |
(package private) void |
_notifyFocusDisabled() |
protected void |
_notifyFocusUngrab() |
protected void |
_releaseInput(long ptr) |
protected boolean |
_requestFocus(long ptr,
int event) |
protected void |
_requestInput(long ptr,
java.lang.String text,
int type,
double width,
double height,
double Mxx,
double Mxy,
double Mxz,
double Mxt,
double Myx,
double Myy,
double Myz,
double Myt,
double Mzx,
double Mzy,
double Mzz,
double Mzt) |
protected void |
_setAlpha(long ptr,
float alpha) |
protected boolean |
_setBackground(long ptr,
float r,
float g,
float b) |
protected void |
_setBounds(long nativeWindowPointer,
int x,
int y,
boolean xSet,
boolean ySet,
int w,
int h,
int cw,
int ch,
float xGravity,
float yGravity)
w/h is the total window width/height including all its
decorations (e.g.
|
protected void |
_setCursor(long ptr,
Cursor cursor) |
protected void |
_setEnabled(long ptr,
boolean enabled) |
protected void |
_setFocusable(long ptr,
boolean isFocusable) |
protected void |
_setIcon(long ptr,
Pixels pixels) |
protected void |
_setLevel(long ptr,
int level) |
protected boolean |
_setMaximumSize(long ptr,
int width,
int height) |
protected boolean |
_setMenubar(long ptr,
long menubarPtr) |
protected boolean |
_setMinimumSize(long ptr,
int width,
int height) |
protected boolean |
_setResizable(long ptr,
boolean resizable) |
protected boolean |
_setTitle(long ptr,
java.lang.String title) |
protected boolean |
_setView(long nativeWindowPointer,
View view) |
protected boolean |
_setVisible(long ptr,
boolean visible) |
protected void |
_toBack(long ptr) |
protected void |
_toFront(long ptr) |
protected void |
_ungrabFocus(long ptr) |
long |
getNativeWindow()
Returns the handle used to create a rendering context in Prism
|
protected void |
notifyClose() |
protected void |
notifyDestroy() |
protected void |
notifyFocus(int event) |
private void |
notifyResizeAndMove(int x,
int y,
int width,
int height) |
(package private) void |
setFullScreen(boolean fullscreen) |
add, addFirst, close, dispatchNpapiEvent, enterModal, enterModal, exitModal, getAlpha, getEventHandler, getFocusedWindow, getHeight, getLevel, getMaximumHeight, getMaximumWidth, getMenuBar, getMinimumHeight, getMinimumWidth, getNativeHandle, getOutputScale, getOwner, getPlatformScale, getRawHandle, getRenderScale, getScreen, getStyleMask, getTitle, getView, getWidth, getWindows, getWindowsClone, getX, getY, grabFocus, handleWindowEvent, isClosed, isDecorated, isEnabled, isFocused, isMaximized, isMinimized, isModal, isResizable, isTransparentWindow, isUnifiedWindow, isVisible, maximize, minimize, notifyDelegatePtr, notifyFocusDisabled, notifyFocusUngrab, notifyLevelChanged, notifyMove, notifyMoveToAnotherScreen, notifyResize, releaseInput, remove, requestFocus, requestFocus, requestInput, setAlpha, setBackground, setBounds, setContentSize, setCursor, setEnabled, setEventHandler, setFocusable, setIcon, setLevel, setMaximumSize, setMenuBar, setMinimumSize, setPlatformScale, setPosition, setRenderScale, setResizable, setScreen, setShouldStartUndecoratedMove, setSize, setState, setTitle, setUndecoratedMoveRectangle, setUndecoratedResizeRectangle, setView, setVisible, shouldStartUndecoratedMove, shouldStartUndecoratedResize, toBack, toFront, toString, ungrabFocus
private static final int STATE_NORMAL
private static final int STATE_MINIMIZED
private static final int STATE_MAXIMIZED
private static final int STATE_FULLSCREEN
private int id
private int state
private int cachedX
private int cachedY
private int cachedW
private int cachedH
private int minW
private int minH
private int maxW
private int maxH
private float cachedAlpha
protected void _setBounds(long nativeWindowPointer, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)
_setBounds
in class Window
private void notifyResizeAndMove(int x, int y, int width, int height)
protected long _createWindow(long NativeWindow, long NativeScreen, int mask)
_createWindow
in class Window
protected long _createChildWindow(long parent)
_createChildWindow
in class Window
protected boolean _setView(long nativeWindowPointer, View view)
public long getNativeWindow()
getNativeWindow
in class Window
protected boolean _setMenubar(long ptr, long menubarPtr)
_setMenubar
in class Window
protected boolean _minimize(long nativeWindowPointer, boolean minimize)
protected boolean _maximize(long nativeWindowPointer, boolean maximize, boolean wasMaximized)
void setFullScreen(boolean fullscreen)
protected boolean _setVisible(long ptr, boolean visible)
_setVisible
in class Window
protected boolean _setResizable(long ptr, boolean resizable)
_setResizable
in class Window
protected boolean _requestFocus(long ptr, int event)
_requestFocus
in class Window
protected void _setFocusable(long ptr, boolean isFocusable)
_setFocusable
in class Window
protected boolean _setTitle(long ptr, java.lang.String title)
protected boolean _setBackground(long ptr, float r, float g, float b)
_setBackground
in class Window
protected void _setEnabled(long ptr, boolean enabled)
_setEnabled
in class Window
protected boolean _setMinimumSize(long ptr, int width, int height)
_setMinimumSize
in class Window
protected boolean _setMaximumSize(long ptr, int width, int height)
_setMaximumSize
in class Window
protected boolean _grabFocus(long ptr)
_grabFocus
in class Window
protected void _ungrabFocus(long ptr)
_ungrabFocus
in class Window
protected void _enterModal(long ptr)
_enterModal
in class Window
protected void _enterModalWithWindow(long dialog, long window)
_enterModalWithWindow
in class Window
protected void _exitModal(long ptr)
_exitModal
in class Window
protected void notifyClose()
notifyClose
in class Window
protected void notifyDestroy()
notifyDestroy
in class Window
protected void notifyFocus(int event)
notifyFocus
in class Window
protected void _notifyFocusUngrab()
void _notifyFocusDisabled()
protected void _setCursor(long ptr, Cursor cursor)
_setCursor
in class Window
protected int _getEmbeddedX(long ptr)
_getEmbeddedX
in class Window
protected int _getEmbeddedY(long ptr)
_getEmbeddedY
in class Window
protected void _requestInput(long ptr, java.lang.String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)
_requestInput
in class Window
protected void _releaseInput(long ptr)
_releaseInput
in class Window