Top Constructors Methods
com.pixelduke.window

public Class WindowUtils

extends Object
Class Inheritance
Imports
com.sun.jna.NativeLong, .Pointer, com.sun.jna.platform.win32.WinDef, javafx.stage.Window, java.lang.reflect.Method

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static WinDef.HWND

Returns:

A WinDef.HWND instance representing the window's platform's native pointer.
getNativeHandleOfStage
(Window
The JavaFX stage window
stage
)

Function will obtain the pointer to the native window and return as a Windows specific handle.

public static long

Returns:

A long representing the window's platform's native pointer.
getNativeHandleOfStageAsLong
(Window
The JavaFX stage window
stage
)

Function will obtain the pointer to the native window and return as a 64 bit long value.

public static NativeLong

Returns:

A NativeLong representing the window's platform's native pointer.
getNativeHandleOfStageAsNativeLong
(Window
The JavaFX stage window
stage
)

Function will obtain the pointer to the native window and return as a 64 bit long value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WindowUtilsback to summary
public WindowUtils()

Method Detail

getNativeHandleOfStageback to summary
public static WinDef.HWND getNativeHandleOfStage(Window stage)

Function will obtain the pointer to the native window and return as a Windows specific handle.

Parameters
stage:Window

The JavaFX stage window

Returns:WinDef.HWND

A WinDef.HWND instance representing the window's platform's native pointer.

getNativeHandleOfStageAsLongback to summary
public static long getNativeHandleOfStageAsLong(Window stage)

Function will obtain the pointer to the native window and return as a 64 bit long value.

Parameters
stage:Window

The JavaFX stage window

Returns:long

A long representing the window's platform's native pointer.

getNativeHandleOfStageAsNativeLongback to summary
public static NativeLong getNativeHandleOfStageAsNativeLong(Window stage)

Function will obtain the pointer to the native window and return as a 64 bit long value.

Parameters
stage:Window

The JavaFX stage window

Returns:NativeLong

A NativeLong representing the window's platform's native pointer.