Package com.sun.jna.platform.win32
Class WinUser.WINDOWPLACEMENT
java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.WinUser.WINDOWPLACEMENT
- Enclosing interface:
- WinUser
@FieldOrder({"length","flags","showCmd","ptMinPosition","ptMaxPosition","rcNormalPosition"})
public static class WinUser.WINDOWPLACEMENT
extends Structure
Contains information about the placement of a window on the screen.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jna.Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The flags that control the position of the minimized window and the method by which the window is restored.int
The length of the structure, in bytes.Coordinates of the window's upper-right corner when maximized.Virtual position of the window's upper-left corner when minimized.The window's coordinates when the window is in the restored position.int
The current show state of the window.static final int
If the calling thread and the thread that owns the window are attached to different input queues, the system posts the request to the thread that owns the window.static final int
The restored window will be maximized, regardless of whether it was maximized before it was minimized.static final int
The coordinates of the minimized window may be specified.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
WPF_SETMINPOSITION
public static final int WPF_SETMINPOSITIONThe coordinates of the minimized window may be specified.- See Also:
-
WPF_RESTORETOMAXIMIZED
public static final int WPF_RESTORETOMAXIMIZEDThe restored window will be maximized, regardless of whether it was maximized before it was minimized. This setting is only valid the next time the window is restored. It does not change the default restoration behavior. This flag is only valid when the SW_SHOWMINIMIZED value is specified for the showCmd member.- See Also:
-
WPF_ASYNCWINDOWPLACEMENT
public static final int WPF_ASYNCWINDOWPLACEMENTIf the calling thread and the thread that owns the window are attached to different input queues, the system posts the request to the thread that owns the window. This prevents the calling thread from blocking its execution while other threads process the request.- See Also:
-
length
public int lengthThe length of the structure, in bytes. -
flags
public int flagsThe flags that control the position of the minimized window and the method by which the window is restored. This member can be one or more of WPF_SETMINPOSITION, WPF_RESTORETOMAXIMIZED, or WPF_ASYNCWINDOWPLACEMENT. -
showCmd
public int showCmdThe current show state of the window. This member can be one of SW_HIDE, SW_MAXIMIZE, SW_MINIMIZE, SW_RESTORE, SW_SHOW, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_SHOWNA, SW_SHOWNOACTIVATE, SW_SHOWNORMAL. Note that here SW_MAXIMIZE and SW_SHOWMAXIMIZED are the same value. -
ptMinPosition
Virtual position of the window's upper-left corner when minimized. Usually largely negative. May be in workspace coordinates. -
ptMaxPosition
Coordinates of the window's upper-right corner when maximized. Usually small and negative. May be in workspace coordinates. -
rcNormalPosition
The window's coordinates when the window is in the restored position. May be in workspace coordinates.
-
-
Constructor Details
-
WINDOWPLACEMENT
public WINDOWPLACEMENT()
-