Package org.lwjgl.system.windows
Class WNDCLASSEX
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct WNDCLASSEX {
UINT cbSize;
UINT style;
WNDPROC lpfnWndProc;
int cbClsExtra;
int cbWndExtra;
HINSTANCE hInstance;
HICON hIcon;
HCURSOR hCursor;
HBRUSH hbrBackground;
LPCTSTR lpszMenuName;
LPCTSTR lpszClassName;
HICON hIconSm;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionWNDCLASSEX(ByteBuffer container) Creates aWNDCLASSEXinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic WNDCLASSEXcalloc()Returns a newWNDCLASSEXinstance allocated withmemCalloc.static WNDCLASSEX.Buffercalloc(int capacity) Returns a newWNDCLASSEX.Bufferinstance allocated withmemCalloc.static WNDCLASSEX.Buffercalloc(int capacity, MemoryStack stack) Returns a newWNDCLASSEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static WNDCLASSEXcalloc(MemoryStack stack) Returns a newWNDCLASSEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcbClsExtra(int value) Sets the specified value to thecbClsExtrafield.intcbSize()cbSize(int value) Sets the specified value to thecbSizefield.intcbWndExtra(int value) Sets the specified value to thecbWndExtrafield.static WNDCLASSEXcreate()Returns a newWNDCLASSEXinstance allocated withBufferUtils.static WNDCLASSEX.Buffercreate(int capacity) Returns a newWNDCLASSEX.Bufferinstance allocated withBufferUtils.static WNDCLASSEXcreate(long address) Returns a newWNDCLASSEXinstance for the specified memory address.static WNDCLASSEX.Buffercreate(long address, int capacity) Create aWNDCLASSEX.Bufferinstance at the specified memory.static @Nullable WNDCLASSEXcreateSafe(long address) static @Nullable WNDCLASSEX.BuffercreateSafe(long address, int capacity) longhbrBackground(long value) Sets the specified value to thehbrBackgroundfield.longhCursor()hCursor(long value) Sets the specified value to thehCursorfield.longhIcon()hIcon(long value) Sets the specified value to thehIconfield.longhIconSm()hIconSm(long value) Sets the specified value to thehIconSmfield.longhInstance(long value) Sets the specified value to thehInstancefield.lpfnWndProc(WindowProcI value) Sets the specified value to thelpfnWndProcfield.lpszClassName(ByteBuffer value) Sets the address of the specified encoded string to thelpszClassNamefield.@Nullable ByteBufferlpszMenuName(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thelpszMenuNamefield.@Nullable Stringstatic WNDCLASSEXmalloc()Returns a newWNDCLASSEXinstance allocated withmemAlloc.static WNDCLASSEX.Buffermalloc(int capacity) Returns a newWNDCLASSEX.Bufferinstance allocated withmemAlloc.static WNDCLASSEX.Buffermalloc(int capacity, MemoryStack stack) Returns a newWNDCLASSEX.Bufferinstance allocated on the specifiedMemoryStack.static WNDCLASSEXmalloc(MemoryStack stack) Returns a newWNDCLASSEXinstance allocated on the specifiedMemoryStack.static intncbClsExtra(long struct) Unsafe version ofcbClsExtra().static voidncbClsExtra(long struct, int value) Unsafe version ofcbClsExtra.static intncbSize(long struct) Unsafe version ofcbSize().static voidncbSize(long struct, int value) Unsafe version ofcbSize.static intncbWndExtra(long struct) Unsafe version ofcbWndExtra().static voidncbWndExtra(long struct, int value) Unsafe version ofcbWndExtra.static longnhbrBackground(long struct) Unsafe version ofhbrBackground().static voidnhbrBackground(long struct, long value) Unsafe version ofhbrBackground.static longnhCursor(long struct) Unsafe version ofhCursor().static voidnhCursor(long struct, long value) Unsafe version ofhCursor.static longnhIcon(long struct) Unsafe version ofhIcon().static voidnhIcon(long struct, long value) Unsafe version ofhIcon.static longnhIconSm(long struct) Unsafe version ofhIconSm().static voidnhIconSm(long struct, long value) Unsafe version ofhIconSm.static longnhInstance(long struct) Unsafe version ofhInstance().static voidnhInstance(long struct, long value) Unsafe version ofhInstance.static WindowProcnlpfnWndProc(long struct) Unsafe version oflpfnWndProc().static voidnlpfnWndProc(long struct, WindowProcI value) Unsafe version oflpfnWndProc.static ByteBuffernlpszClassName(long struct) Unsafe version oflpszClassName().static voidnlpszClassName(long struct, ByteBuffer value) Unsafe version oflpszClassName.static StringnlpszClassNameString(long struct) Unsafe version oflpszClassNameString().static @Nullable ByteBuffernlpszMenuName(long struct) Unsafe version oflpszMenuName().static voidnlpszMenuName(long struct, @Nullable ByteBuffer value) Unsafe version oflpszMenuName.static @Nullable StringnlpszMenuNameString(long struct) Unsafe version oflpszMenuNameString().static intnstyle(long struct) Unsafe version ofstyle().static voidnstyle(long struct, int value) Unsafe version ofstyle.set(int cbSize, int style, WindowProcI lpfnWndProc, int cbClsExtra, int cbWndExtra, long hInstance, long hIcon, long hCursor, long hbrBackground, @Nullable ByteBuffer lpszMenuName, ByteBuffer lpszClassName, long hIconSm) Initializes this struct with the specified values.set(WNDCLASSEX src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstyle()style(int value) Sets the specified value to thestylefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CBSIZE
public static final int CBSIZEThe struct member offsets. -
STYLE
public static final int STYLEThe struct member offsets. -
LPFNWNDPROC
public static final int LPFNWNDPROCThe struct member offsets. -
CBCLSEXTRA
public static final int CBCLSEXTRAThe struct member offsets. -
CBWNDEXTRA
public static final int CBWNDEXTRAThe struct member offsets. -
HINSTANCE
public static final int HINSTANCEThe struct member offsets. -
HICON
public static final int HICONThe struct member offsets. -
HCURSOR
public static final int HCURSORThe struct member offsets. -
HBRBACKGROUND
public static final int HBRBACKGROUNDThe struct member offsets. -
LPSZMENUNAME
public static final int LPSZMENUNAMEThe struct member offsets. -
LPSZCLASSNAME
public static final int LPSZCLASSNAMEThe struct member offsets. -
HICONSM
public static final int HICONSMThe struct member offsets.
-
-
Constructor Details
-
WNDCLASSEX
Creates aWNDCLASSEXinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<WNDCLASSEX>
-
cbSize
public int cbSize()- Returns:
- the value of the
cbSizefield.
-
style
public int style()- Returns:
- the value of the
stylefield.
-
lpfnWndProc
- Returns:
- the value of the
lpfnWndProcfield.
-
cbClsExtra
public int cbClsExtra()- Returns:
- the value of the
cbClsExtrafield.
-
cbWndExtra
public int cbWndExtra()- Returns:
- the value of the
cbWndExtrafield.
-
hInstance
public long hInstance()- Returns:
- the value of the
hInstancefield.
-
hIcon
public long hIcon()- Returns:
- the value of the
hIconfield.
-
hCursor
public long hCursor()- Returns:
- the value of the
hCursorfield.
-
hbrBackground
public long hbrBackground()- Returns:
- the value of the
hbrBackgroundfield.
-
lpszMenuName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thelpszMenuNamefield.
-
lpszMenuNameString
- Returns:
- the null-terminated string pointed to by the
lpszMenuNamefield.
-
lpszClassName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thelpszClassNamefield.
-
lpszClassNameString
- Returns:
- the null-terminated string pointed to by the
lpszClassNamefield.
-
hIconSm
public long hIconSm()- Returns:
- the value of the
hIconSmfield.
-
cbSize
Sets the specified value to thecbSizefield. -
style
Sets the specified value to thestylefield. -
lpfnWndProc
Sets the specified value to thelpfnWndProcfield. -
cbClsExtra
Sets the specified value to thecbClsExtrafield. -
cbWndExtra
Sets the specified value to thecbWndExtrafield. -
hInstance
Sets the specified value to thehInstancefield. -
hIcon
Sets the specified value to thehIconfield. -
hCursor
Sets the specified value to thehCursorfield. -
hbrBackground
Sets the specified value to thehbrBackgroundfield. -
lpszMenuName
Sets the address of the specified encoded string to thelpszMenuNamefield. -
lpszClassName
Sets the address of the specified encoded string to thelpszClassNamefield. -
hIconSm
Sets the specified value to thehIconSmfield. -
set
public WNDCLASSEX set(int cbSize, int style, WindowProcI lpfnWndProc, int cbClsExtra, int cbWndExtra, long hInstance, long hIcon, long hCursor, long hbrBackground, @Nullable ByteBuffer lpszMenuName, ByteBuffer lpszClassName, long hIconSm) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newWNDCLASSEXinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newWNDCLASSEXinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newWNDCLASSEXinstance allocated withBufferUtils. -
create
Returns a newWNDCLASSEXinstance for the specified memory address. -
createSafe
-
malloc
Returns a newWNDCLASSEX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newWNDCLASSEX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newWNDCLASSEX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aWNDCLASSEX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newWNDCLASSEXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newWNDCLASSEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newWNDCLASSEX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newWNDCLASSEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncbSize
public static int ncbSize(long struct) Unsafe version ofcbSize(). -
nstyle
public static int nstyle(long struct) Unsafe version ofstyle(). -
nlpfnWndProc
Unsafe version oflpfnWndProc(). -
ncbClsExtra
public static int ncbClsExtra(long struct) Unsafe version ofcbClsExtra(). -
ncbWndExtra
public static int ncbWndExtra(long struct) Unsafe version ofcbWndExtra(). -
nhInstance
public static long nhInstance(long struct) Unsafe version ofhInstance(). -
nhIcon
public static long nhIcon(long struct) Unsafe version ofhIcon(). -
nhCursor
public static long nhCursor(long struct) Unsafe version ofhCursor(). -
nhbrBackground
public static long nhbrBackground(long struct) Unsafe version ofhbrBackground(). -
nlpszMenuName
Unsafe version oflpszMenuName(). -
nlpszMenuNameString
Unsafe version oflpszMenuNameString(). -
nlpszClassName
Unsafe version oflpszClassName(). -
nlpszClassNameString
Unsafe version oflpszClassNameString(). -
nhIconSm
public static long nhIconSm(long struct) Unsafe version ofhIconSm(). -
ncbSize
public static void ncbSize(long struct, int value) Unsafe version ofcbSize. -
nstyle
public static void nstyle(long struct, int value) Unsafe version ofstyle. -
nlpfnWndProc
Unsafe version oflpfnWndProc. -
ncbClsExtra
public static void ncbClsExtra(long struct, int value) Unsafe version ofcbClsExtra. -
ncbWndExtra
public static void ncbWndExtra(long struct, int value) Unsafe version ofcbWndExtra. -
nhInstance
public static void nhInstance(long struct, long value) Unsafe version ofhInstance. -
nhIcon
public static void nhIcon(long struct, long value) Unsafe version ofhIcon. -
nhCursor
public static void nhCursor(long struct, long value) Unsafe version ofhCursor. -
nhbrBackground
public static void nhbrBackground(long struct, long value) Unsafe version ofhbrBackground. -
nlpszMenuName
Unsafe version oflpszMenuName. -
nlpszClassName
Unsafe version oflpszClassName. -
nhIconSm
public static void nhIconSm(long struct, long value) Unsafe version ofhIconSm. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-