| Modifier and Type | Field and Description |
|---|---|
| private final InsetsImmutable | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | WrappedWindow(final AbstractGraphicsConfiguration
the cfg, final long AbstractGraphicsConfiguration to be usedthe wrapped pre-existing native surface handle, maybe 0 if not yet determined surfaceHandle, final int initialWinX, final int initialWinY, final int initialWinWidth, final int initialWinHeight, final int FIXME: pixel-dim == window-dim 'for now' ? initialPixelWidth, final int FIXME: pixel-dim == window-dim 'for now' ? initialPixelHeight, final boolean true if this ProxySurface instance
owns the AbstractGraphicsConfiguration's AbstractGraphicsDevice,
otherwise false. Owning the device implies closing it at destroyNotify().Utilizes a |
| public | WrappedWindow(final AbstractGraphicsConfiguration
the cfg, final long AbstractGraphicsConfiguration to be usedthe wrapped pre-existing native surface handle, maybe 0 if not yet determined surfaceHandle, final UpstreamWindowHookMutableSizePos the upstream, final boolean UpstreamSurfaceHook to be usedtrue if this ProxySurface instance
owns the AbstractGraphicsConfiguration's AbstractGraphicsDevice,
otherwise false.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | getHeight()
Implements com. |
| public InsetsImmutable | getInsets()
Implements com. |
| public Point | getLocationOnScreen(final Point
Optional point)Point storage.
If not null, null, it is translated about the resulting screen position
and returned.Implements com. |
| public final NativeSurface | getNativeSurface()
Implements com. NativeSurface of this NativeSurfaceHolder.
|
| public NativeWindow | |
| public int | getWidth()
Implements com. |
| public long | getWindowHandle()
Implements com. |
| public int | getX()
Implements com. |
| public int | getY()
Implements com. |
| public boolean | hasFocus()
Implements com. |
| protected void | invalidateImpl()
Overrides jogamp. UpstreamSurfaceHook being passed.
|
| insets | back to summary |
|---|---|
| private final InsetsImmutable insets | |
| windowHandle | back to summary |
|---|---|
| private long windowHandle | |
| WrappedWindow | back to summary |
|---|---|
| public WrappedWindow(final AbstractGraphicsConfiguration cfg, final long surfaceHandle, final int initialWinX, final int initialWinY, final int initialWinWidth, final int initialWinHeight, final int initialPixelWidth, final int initialPixelHeight, final boolean ownsDevice, final long windowHandle) Utilizes a
| |
| WrappedWindow | back to summary |
|---|---|
public WrappedWindow(final AbstractGraphicsConfiguration cfg, final long surfaceHandle, final UpstreamWindowHookMutableSizePos upstream, final boolean ownsDevice, final long windowHandle)
| |
| destroy | back to summary |
|---|---|
| public void destroy() Implements com. Doc from com. Destroys this window incl. releasing all related resources.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight() Implements com. Doc from com. Returns the height of the client area excluding insets (window decorations) in window units.
| |
| getInsets | back to summary |
|---|---|
| public InsetsImmutable getInsets() Implements com. Doc from com. Returns the insets defined as the width and height of the window decoration on the left, right, top and bottom in window units. Insets are zero if the window is undecorated, including child windows.
Insets are available only after the native window has been created,
ie. the native window has been made visible. The top-level window size is
| |
| getLocationOnScreen | back to summary |
|---|---|
| public Point getLocationOnScreen(final Point point) Implements com. Doc from com. Returns the window's top-left client-area position in the screen.
If See Coordinate System. Since the position reflects the client area, it does not include the insets. | |
| getNativeSurface | back to summary |
|---|---|
| public final NativeSurface getNativeSurface() Implements com. Doc from com. Returns the associated
Returns this instance, which is-a
| |
| getParent | back to summary |
|---|---|
| public NativeWindow getParent() Implements com.
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Implements com. Doc from com. Returns the width of the client area excluding insets (window decorations) in window units.
| |
| getWindowHandle | back to summary |
|---|---|
| public long getWindowHandle() Implements com. Doc from com. Returns the window handle for this NativeWindow. The window handle shall reflect the platform one for all window related operations, e.g. open, close, resize.
On X11 this returns an entity of type Window.
| |
| getX | back to summary |
|---|---|
| public int getX() Implements com. Doc from com. Returns the x position of the top-left corner of the client area relative to it's parent in window units. If no parent exist (top-level window), this coordinate equals the screen coordinate. Since the position reflects the client area, it does not include the insets. See Coordinate System.
| |
| getY | back to summary |
|---|---|
| public int getY() Implements com. Doc from com. Returns the current y position of the top-left corner of the client area relative to it's parent in window units. If no parent exist (top-level window), this coordinate equals the screen coordinate. Since the position reflects the client area, it does not include the insets. See Coordinate System.
| |
| hasFocus | back to summary |
|---|---|
| public boolean hasFocus() Implements com. Doc from com. Returns true if this native window owns the focus, otherwise false.
| |
| invalidateImpl | back to summary |
|---|---|
| protected void invalidateImpl() Overrides jogamp. Doc from jogamp. Must be overridden by implementations allowing having a
| |