Top Fields Constructors Methods
com.sun.glass.ui.gtk

pack-priv Class GtkWindow

extends Window
Class Inheritance
Imports
com.sun.glass.ui.Cursor, .HeaderButtonMetrics, .Pixels, .Screen, .View, .Window, .HeaderButtonOverlay, com.sun.glass.events.WindowEvent, com.sun.javafx.tk.HeaderAreaType

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
GtkWindow(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 long
protected native boolean
_grabFocus(long ptr)

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

protected boolean
_maximize(long ptr, boolean maximize, boolean wasMaximized)

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

protected 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 native boolean
_setBackground(long ptr, float r, float g, float b)

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

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 void
_setCursor(long ptr, Cursor cursor)

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

private native void
_setCursorType(long ptr, int type)

private native void
_setCustomCursor(long ptr, Cursor cursor)

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 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.

private native boolean
_setSystemMinimumSize(long ptr, int width, int height)

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 boolean
_setVisible(long ptr, boolean visible)

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

private native void
_showSystemMenu(long ptr, int x, int y)

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
private HeaderButtonOverlay
createHeaderButtonOverlay()

Creates a new HeaderButtonOverlay instance.

private boolean
dragAreaHitTest(int
the X coordinate in physical pixels
x
,
int
the Y coordinate in physical pixels
y
)

Returns whether the window is draggable at the specified coordinate.

public long

Returns:

X11 Window handle is returned.
getNativeWindow
()

Overrides com.sun.glass.ui.Window.getNativeWindow.

The lowest level (X11) window handle.

public long
getRawHandle()

Overrides com.sun.glass.ui.Window.getRawHandle.

return the "raw' pointer needed by subclasses to pass to native routines

private native boolean
isVisible(long ptr)

private native void
maximizeImpl(long ptr, boolean maximize, boolean wasMaximized)

private native void
minimizeImpl(long ptr, boolean minimize)

protected void
notifyStateChanged(final int state)

private void
onPrefHeaderButtonHeightChanged(Number
the preferred header button height
height
)

Creates or disposes the HeaderButtonOverlay when the preferred header button height has changed.

private native void
setVisibleImpl(long ptr, boolean visible)

public void
showSystemMenu(int
the X coordinate in physical pixels
x
,
int
the Y coordinate in physical pixels
y
)

Opens a system menu at the specified coordinates.

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

Constructor Detail

GtkWindowback to summary
public GtkWindow(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
_getNativeWindowImplback to summary
protected native long _getNativeWindowImpl(long ptr)
_grabFocusback to summary
protected native boolean _grabFocus(long ptr)

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

Annotations
@Override
_maximizeback to summary
protected boolean _maximize(long ptr, boolean maximize, boolean wasMaximized)

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

Annotations
@Override
_minimizeback to summary
protected 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 native boolean _setBackground(long ptr, float r, float g, float b)

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

Annotations
@Override
_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 void _setCursor(long ptr, Cursor cursor)

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

Annotations
@Override
_setCursorTypeback to summary
private native void _setCursorType(long ptr, int type)
_setCustomCursorback to summary
private native void _setCustomCursor(long ptr, Cursor cursor)
_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 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
_setSystemMinimumSizeback to summary
private native boolean _setSystemMinimumSize(long ptr, int width, int height)
_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 boolean _setVisible(long ptr, boolean visible)

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

Annotations
@Override
_showSystemMenuback to summary
private native void _showSystemMenu(long ptr, int x, int y)
_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
createHeaderButtonOverlayback to summary
private HeaderButtonOverlay createHeaderButtonOverlay()

Creates a new HeaderButtonOverlay instance.

dragAreaHitTestback to summary
private boolean dragAreaHitTest(int x, int y)

Returns whether the window is draggable at the specified coordinate.

This method is called from native code.

Parameters
x:int

the X coordinate in physical pixels

y:int

the Y coordinate in physical pixels

Annotations
@SuppressWarnings:unused
getNativeWindowback to summary
public long getNativeWindow()

Overrides com.sun.glass.ui.Window.getNativeWindow.

The lowest level (X11) window handle. (Used in prism to create GLContext)

Returns:long

X11 Window handle is returned.

Annotations
@Override
getRawHandleback to summary
public long getRawHandle()

Overrides com.sun.glass.ui.Window.getRawHandle.

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

return the "raw' pointer needed by subclasses to pass to native routines

Annotations
@Override
isVisibleback to summary
private native boolean isVisible(long ptr)
maximizeImplback to summary
private native void maximizeImpl(long ptr, boolean maximize, boolean wasMaximized)
minimizeImplback to summary
private native void minimizeImpl(long ptr, boolean minimize)
notifyStateChangedback to summary
protected void notifyStateChanged(final int state)
onPrefHeaderButtonHeightChangedback to summary
private void onPrefHeaderButtonHeightChanged(Number height)

Creates or disposes the HeaderButtonOverlay when the preferred header button height has changed.

If the preferred height is zero, the overlay is disposed; if the preferred height is non-zero, the headerButtonOverlay and headerButtonMetrics properties will hold the overlay and its metrics.

Parameters
height:Number

the preferred header button height

setVisibleImplback to summary
private native void setVisibleImpl(long ptr, boolean visible)
showSystemMenuback to summary
public void showSystemMenu(int x, int y)

Opens a system menu at the specified coordinates.

Parameters
x:int

the X coordinate in physical pixels

y:int

the Y coordinate in physical pixels