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 SummaryNested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe flags that control the position of the minimized window and the method by which the window is restored.intThe 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.intThe current show state of the window.static final intIf 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 intThe restored window will be maximized, regardless of whether it was maximized before it was minimized.static final intThe coordinates of the minimized window may be specified.Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.sun.jna.StructureallocateMemory, 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_SETMINPOSITIONpublic static final int WPF_SETMINPOSITIONThe coordinates of the minimized window may be specified.- See Also:
 
- 
WPF_RESTORETOMAXIMIZEDpublic 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_ASYNCWINDOWPLACEMENTpublic 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:
 
- 
lengthpublic int lengthThe length of the structure, in bytes.
- 
flagspublic 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.
- 
showCmdpublic 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.
- 
ptMinPositionVirtual position of the window's upper-left corner when minimized. Usually largely negative. May be in workspace coordinates.
- 
ptMaxPositionCoordinates of the window's upper-right corner when maximized. Usually small and negative. May be in workspace coordinates.
- 
rcNormalPositionThe window's coordinates when the window is in the restored position. May be in workspace coordinates.
 
- 
- 
Constructor Details- 
WINDOWPLACEMENTpublic WINDOWPLACEMENT()
 
-