Top Description Fields Constructors Methods
com.sun.glass.ui.win

pack-priv Class WinWindow

extends Window
Class Inheritance
Imports
com.sun.glass.ui.Cursor, .Pixels, .Screen, .View, .Window

MS Windows platform implementation class for Window.

Field Summary

Modifier and TypeField and Description
public static final long
private boolean
private boolean
pack-priv float
pack-priv float
pack-priv int
pack-priv int
public static final int
public static final int
public static final int
Inherited from com.sun.glass.ui.Window:
CLOSABLEheightMAXIMIZABLEMINIMIZABLEMODALNORMALplatformScaleXplatformScaleYPOPUPRIGHT_TO_LEFTscreenTITLEDTRANSPARENTUNIFIEDUNTITLEDUTILITYviewwidthxy

Constructor Summary

AccessConstructor and Description
protected
WinWindow(Window owner, Screen screen, int styleMask)

Method Summary

Modifier and TypeMethod and Description
protected native boolean
_close(long ptr)

Implements abstract com.sun.glass.ui.Window._close.

protected native long
_createWindow(long ownerPtr, long screenPtr, int mask)

Implements abstract com.sun.glass.ui.Window._createWindow.

protected native void
_enterModal(long ptr)

Implements abstract com.sun.glass.ui.Window._enterModal.

protected native void
_enterModalWithWindow(long dialog, long window)

Implements abstract com.sun.glass.ui.Window._enterModalWithWindow.

protected native void
_exitModal(long ptr)

Implements abstract com.sun.glass.ui.Window._exitModal.

private native long
_getAnchor(long ptr)

private native long
_getInsets(long ptr)

protected native boolean
_grabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._grabFocus.

private static native void
protected native boolean
_maximize(long ptr, boolean maximize, boolean wasMaximized)

Implements abstract com.sun.glass.ui.Window._maximize.

protected native boolean
_minimize(long ptr, boolean minimize)

Implements abstract com.sun.glass.ui.Window._minimize.

protected void
protected native boolean
_requestFocus(long ptr, int event)

Implements abstract com.sun.glass.ui.Window._requestFocus.

protected void
_requestInput(long ptr, 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)

Implements abstract com.sun.glass.ui.Window._requestInput.

protected native void
_setAlpha(long ptr, float alpha)

Implements abstract com.sun.glass.ui.Window._setAlpha.

protected boolean
_setBackground(long ptr, float r, float g, float b)

Implements abstract com.sun.glass.ui.Window._setBackground.

protected native boolean
_setBackground2(long ptr, float r, float g, float b)

protected native void
_setBounds(long ptr, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

Implements abstract com.sun.glass.ui.Window._setBounds.

protected native void
_setCursor(long ptr, Cursor cursor)

Implements abstract com.sun.glass.ui.Window._setCursor.

protected native void
_setEnabled(long ptr, boolean enabled)

Implements abstract com.sun.glass.ui.Window._setEnabled.

protected native void
_setFocusable(long ptr, boolean isFocusable)

Implements abstract com.sun.glass.ui.Window._setFocusable.

protected native void
_setIcon(long ptr, Pixels pixels)

Implements abstract com.sun.glass.ui.Window._setIcon.

protected native void
_setLevel(long ptr, int level)

Implements abstract com.sun.glass.ui.Window._setLevel.

protected native boolean
_setMaximumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMaximumSize.

protected native boolean
_setMenubar(long ptr, long menubarPtr)

Implements abstract com.sun.glass.ui.Window._setMenubar.

protected native boolean
_setMinimumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMinimumSize.

protected native boolean
_setResizable(long ptr, boolean resizable)

Implements abstract com.sun.glass.ui.Window._setResizable.

protected native boolean
_setTitle(long ptr, String title)

Implements abstract com.sun.glass.ui.Window._setTitle.

protected native boolean
_setView(long ptr, View view)

Implements abstract com.sun.glass.ui.Window._setView.

protected native boolean
_setVisible(long ptr, boolean visible)

Implements abstract com.sun.glass.ui.Window._setVisible.

protected native void
_toBack(long ptr)

Implements abstract com.sun.glass.ui.Window._toBack.

protected native void
_toFront(long ptr)

Implements abstract com.sun.glass.ui.Window._toFront.

protected native void
_ungrabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._ungrabFocus.

protected native void
public void
protected int[]
notifyMoving(int x, int y, int w, int h, float fx_x, float fx_y, int anchorX, int anchorY, int resizeMode, int iLft, int iTop, int iRgt, int iBot)

protected void
notifyResize(int type, int width, int height)

Overrides com.sun.glass.ui.Window.notifyResize.

type values: - WindowEvent.RESIZE - WindowEvent.MINIMIZE - WindowEvent.MAXIMIZE - WindowEvent.RESTORE

public void
setBounds(float
the new window horizontal position, ignored if xSet is set to false
x
,
float
the new window vertical position, ignored if ySet is set to false
y
,
boolean
indicates whether the x parameter is valid
xSet
,
boolean
indicates whether the y parameter is valid
ySet
,
float
the new window width, ignored if set to -1
w
,
float
the new window height, ignored if set to -1
h
,
float
the new window content width, ignored if set to -1
cw
,
float
the new window content height, ignored if set to -1
ch
,
float
the xGravity coefficient
xGravity
,
float
the yGravity coefficient
yGravity
)

Overrides com.sun.glass.ui.Window.setBounds.

Sets the window bounds to the specified values.

pack-priv void
setDeferredClosing(boolean dc)

Defer destroying the window to avoid a crash when using a native dialog (like a file chooser).

Inherited from com.sun.glass.ui.Window:
addaddFirstenterModalenterModalexitModalgetAlphagetEventHandlergetHeightgetLevelgetMaximumHeightgetMaximumWidthgetMenuBargetMinimumHeightgetMinimumWidthgetNativeHandlegetNativeWindowgetOutputScaleXgetOutputScaleYgetOwnergetPlatformScaleXgetPlatformScaleYgetRawHandlegetRenderScaleXgetRenderScaleYgetScreengetStyleMaskgetTitlegetViewgetWidthgetWindowsgetWindowsClonegetXgetYgrabFocushandleWindowEventisClosedisDecoratedisEnabledisFocusedisMaximizedisMinimizedisModalisPopupisResizableisTransparentWindowisUnifiedWindowisVisiblemaximizeminimizenotifyClosenotifyDelegatePtrnotifyDestroynotifyFocusnotifyFocusDisablednotifyFocusUngrabnotifyLevelChangednotifyMovenotifyMoveToAnotherScreennotifyRescalenotifyScaleChangedreleaseInputremoverequestFocusrequestFocusrequestInputsetAlphasetBackgroundsetContentSizesetCursorsetEnabledsetEventHandlersetFocusablesetIconsetLevelsetMaximumSizesetMenuBarsetMinimumSizesetPositionsetRenderScaleXsetRenderScaleYsetResizablesetScreensetShouldStartUndecoratedMovesetSizesetStatesetTitlesetUndecoratedMoveRectanglesetUndecoratedResizeRectanglesetViewsetVisibleshouldStartUndecoratedMoveshouldStartUndecoratedResizetoBacktoFronttoStringungrabFocus

Field Detail

ANCHOR_NO_CAPTUREback to summary
public static final long ANCHOR_NO_CAPTURE
closingRequestedback to summary
private boolean closingRequested
deferredClosingback to summary
private boolean deferredClosing
fxReqHeightback to summary
pack-priv float fxReqHeight
fxReqWidthback to summary
pack-priv float fxReqWidth
pfReqHeightback to summary
pack-priv int pfReqHeight
pfReqWidthback to summary
pack-priv int pfReqWidth
RESIZE_AROUND_ANCHORback to summary
public static final int RESIZE_AROUND_ANCHOR
RESIZE_DISABLEback to summary
public static final int RESIZE_DISABLE
RESIZE_TO_FX_ORIGINback to summary
public static final int RESIZE_TO_FX_ORIGIN

Constructor Detail

WinWindowback to summary
protected WinWindow(Window owner, Screen screen, int styleMask)

Method Detail

_closeback to summary
protected native boolean _close(long ptr)

Implements abstract com.sun.glass.ui.Window._close.

Annotations
@Override
_createWindowback to summary
protected native long _createWindow(long ownerPtr, long screenPtr, int mask)

Implements abstract com.sun.glass.ui.Window._createWindow.

Annotations
@Override
_enterModalback to summary
protected native void _enterModal(long ptr)

Implements abstract com.sun.glass.ui.Window._enterModal.

Annotations
@Override
_enterModalWithWindowback to summary
protected native void _enterModalWithWindow(long dialog, long window)

Implements abstract com.sun.glass.ui.Window._enterModalWithWindow.

Annotations
@Override
_exitModalback to summary
protected native void _exitModal(long ptr)

Implements abstract com.sun.glass.ui.Window._exitModal.

Annotations
@Override
_getAnchorback to summary
private native long _getAnchor(long ptr)
_getInsetsback to summary
private native long _getInsets(long ptr)
_grabFocusback to summary
protected native boolean _grabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._grabFocus.

Annotations
@Override
_initIDsback to summary
private static native void _initIDs()
_maximizeback to summary
protected native boolean _maximize(long ptr, boolean maximize, boolean wasMaximized)

Implements abstract com.sun.glass.ui.Window._maximize.

Annotations
@Override
_minimizeback to summary
protected native boolean _minimize(long ptr, boolean minimize)

Implements abstract com.sun.glass.ui.Window._minimize.

Annotations
@Override
_releaseInputback to summary
protected void _releaseInput(long ptr)

Implements abstract com.sun.glass.ui.Window._releaseInput.

Annotations
@Override
_requestFocusback to summary
protected native boolean _requestFocus(long ptr, int event)

Implements abstract com.sun.glass.ui.Window._requestFocus.

Annotations
@Override
_requestInputback to summary
protected void _requestInput(long ptr, 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)

Implements abstract com.sun.glass.ui.Window._requestInput.

Annotations
@Override
_setAlphaback to summary
protected native void _setAlpha(long ptr, float alpha)

Implements abstract com.sun.glass.ui.Window._setAlpha.

Annotations
@Override
_setBackgroundback to summary
protected boolean _setBackground(long ptr, float r, float g, float b)

Implements abstract com.sun.glass.ui.Window._setBackground.

Annotations
@Override
_setBackground2back to summary
protected native boolean _setBackground2(long ptr, float r, float g, float b)
_setBoundsback to summary
protected native void _setBounds(long ptr, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

Implements abstract com.sun.glass.ui.Window._setBounds.

Annotations
@Override
_setCursorback to summary
protected native void _setCursor(long ptr, Cursor cursor)

Implements abstract com.sun.glass.ui.Window._setCursor.

Annotations
@Override
_setEnabledback to summary
protected native void _setEnabled(long ptr, boolean enabled)

Implements abstract com.sun.glass.ui.Window._setEnabled.

Annotations
@Override
_setFocusableback to summary
protected native void _setFocusable(long ptr, boolean isFocusable)

Implements abstract com.sun.glass.ui.Window._setFocusable.

Annotations
@Override
_setIconback to summary
protected native void _setIcon(long ptr, Pixels pixels)

Implements abstract com.sun.glass.ui.Window._setIcon.

Annotations
@Override
_setLevelback to summary
protected native void _setLevel(long ptr, int level)

Implements abstract com.sun.glass.ui.Window._setLevel.

Annotations
@Override
_setMaximumSizeback to summary
protected native boolean _setMaximumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMaximumSize.

Annotations
@Override
_setMenubarback to summary
protected native boolean _setMenubar(long ptr, long menubarPtr)

Implements abstract com.sun.glass.ui.Window._setMenubar.

Annotations
@Override
_setMinimumSizeback to summary
protected native boolean _setMinimumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMinimumSize.

Annotations
@Override
_setResizableback to summary
protected native boolean _setResizable(long ptr, boolean resizable)

Implements abstract com.sun.glass.ui.Window._setResizable.

Annotations
@Override
_setTitleback to summary
protected native boolean _setTitle(long ptr, String title)

Implements abstract com.sun.glass.ui.Window._setTitle.

Annotations
@Override
_setViewback to summary
protected native boolean _setView(long ptr, View view)

Implements abstract com.sun.glass.ui.Window._setView.

Annotations
@Override
_setVisibleback to summary
protected native boolean _setVisible(long ptr, boolean visible)

Implements abstract com.sun.glass.ui.Window._setVisible.

Annotations
@Override
_toBackback to summary
protected native void _toBack(long ptr)

Implements abstract com.sun.glass.ui.Window._toBack.

Annotations
@Override
_toFrontback to summary
protected native void _toFront(long ptr)

Implements abstract com.sun.glass.ui.Window._toFront.

Annotations
@Override
_ungrabFocusback to summary
protected native void _ungrabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._ungrabFocus.

Annotations
@Override
_updateViewSizeback to summary
protected native void _updateViewSize(long ptr)

Implements abstract com.sun.glass.ui.Window._updateViewSize.

Annotations
@Override
closeback to summary
public void close()

Overrides com.sun.glass.ui.Window.close.

Annotations
@Override
notifyMovingback to summary
protected int[] notifyMoving(int x, int y, int w, int h, float fx_x, float fx_y, int anchorX, int anchorY, int resizeMode, int iLft, int iTop, int iRgt, int iBot)
notifyResizeback to summary
protected void notifyResize(int type, int width, int height)

Overrides com.sun.glass.ui.Window.notifyResize.

Doc from com.sun.glass.ui.Window.notifyResize.

type values: - WindowEvent.RESIZE - WindowEvent.MINIMIZE - WindowEvent.MAXIMIZE - WindowEvent.RESTORE

Annotations
@Override
setBoundsback to summary
public void setBounds(float x, float y, boolean xSet, boolean ySet, float w, float h, float cw, float ch, float xGravity, float yGravity)

Overrides com.sun.glass.ui.Window.setBounds.

Doc from com.sun.glass.ui.Window.setBounds.

Sets the window bounds to the specified values. Gravity values specify how to correct window location if only its size changes (for example when stage decorations are added). User initiated resizing should be ignored and must not influence window location through this mechanism. The corresponding correction formulas are: x -= xGravity * deltaW y -= yGravity * deltaH

Parameters
x:float

the new window horizontal position, ignored if xSet is set to false

y:float

the new window vertical position, ignored if ySet is set to false

xSet:boolean

indicates whether the x parameter is valid

ySet:boolean

indicates whether the y parameter is valid

w:float

the new window width, ignored if set to -1

h:float

the new window height, ignored if set to -1

cw:float

the new window content width, ignored if set to -1

ch:float

the new window content height, ignored if set to -1

xGravity:float

the xGravity coefficient

yGravity:float

the yGravity coefficient

Annotations
@Override
setDeferredClosingback to summary
pack-priv void setDeferredClosing(boolean dc)

Defer destroying the window to avoid a crash when using a native dialog (like a file chooser).