Top Description Inners Fields Constructors Methods
org.lwjgl.system.windows

public Class WNDCLASSEX

extends Struct<WNDCLASSEX>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Contains the window class attributes that are registered by the User32#RegisterClassEx function.

Layout


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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
WNDCLASSEX.Buffer

An array of WNDCLASSEX structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CBCLSEXTRA

The struct member offsets.

public static final int
CBSIZE

The struct member offsets.

public static final int
CBWNDEXTRA

The struct member offsets.

public static final int
HBRBACKGROUND

The struct member offsets.

public static final int
HCURSOR

The struct member offsets.

public static final int
HICON

The struct member offsets.

public static final int
HICONSM

The struct member offsets.

public static final int
HINSTANCE

The struct member offsets.

public static final int
LPFNWNDPROC

The struct member offsets.

public static final int
LPSZCLASSNAME

The struct member offsets.

public static final int
LPSZMENUNAME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYLE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
WNDCLASSEX(long address, ByteBuffer container)

public
WNDCLASSEX(ByteBuffer container)

Creates a WNDCLASSEX instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static WNDCLASSEX
calloc()

Returns a new WNDCLASSEX instance allocated with memCalloc.

public static WNDCLASSEX.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new WNDCLASSEX.Buffer instance allocated with memCalloc.

public static WNDCLASSEX
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new WNDCLASSEX instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static WNDCLASSEX.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new WNDCLASSEX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static WNDCLASSEX
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static WNDCLASSEX
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static WNDCLASSEX.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static WNDCLASSEX.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
cbClsExtra()

the number of extra bytes to allocate following the window-class structure.

public WNDCLASSEX
cbClsExtra(int value)

Sets the specified value to the cbClsExtra field.

public int
cbSize()

the size, in bytes, of this structure

public WNDCLASSEX
cbSize(int value)

Sets the specified value to the cbSize field.

public int
cbWndExtra()

the number of extra bytes to allocate following the window instance.

public WNDCLASSEX
cbWndExtra(int value)

Sets the specified value to the cbWndExtra field.

protected WNDCLASSEX
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static WNDCLASSEX
create()

Returns a new WNDCLASSEX instance allocated with BufferUtils.

public static WNDCLASSEX
create(long address)

Returns a new WNDCLASSEX instance for the specified memory address.

public static WNDCLASSEX.Buffer
create(int
the buffer capacity
capacity
)

Returns a new WNDCLASSEX.Buffer instance allocated with BufferUtils.

public static WNDCLASSEX.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a WNDCLASSEX.Buffer instance at the specified memory.

public static WNDCLASSEX
createSafe(long address)

Like create, but returns null if address is NULL.

public static WNDCLASSEX.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
hbrBackground()

a handle to the class background brush.

public WNDCLASSEX
hbrBackground(long value)

Sets the specified value to the hbrBackground field.

public long
hCursor()

a handle to the class cursor.

public WNDCLASSEX
hCursor(long value)

Sets the specified value to the hCursor field.

public long
hIcon()

a handle to the class icon.

public WNDCLASSEX
hIcon(long value)

Sets the specified value to the hIcon field.

public long
hIconSm()

a handle to a small icon that is associated with the window class.

public WNDCLASSEX
hIconSm(long value)

Sets the specified value to the hIconSm field.

public long
hInstance()

a handle to the instance that contains the window procedure for the class

public WNDCLASSEX
hInstance(long value)

Sets the specified value to the hInstance field.

public WindowProc
lpfnWndProc()

a pointer to the window procedure

public WNDCLASSEX
lpfnWndProc(WindowProcI value)

Sets the specified value to the lpfnWndProc field.

public ByteBuffer
lpszClassName()

a pointer to a null-terminated string or is an atom

public WNDCLASSEX
lpszClassName(ByteBuffer value)

Sets the address of the specified encoded string to the lpszClassName field.

public String
lpszClassNameString()

a pointer to a null-terminated string or is an atom

public ByteBuffer
lpszMenuName()

pointer to a null-terminated character string that specifies the resource name of the class menu, as the name appears in the resource file.

public WNDCLASSEX
lpszMenuName(ByteBuffer value)

Sets the address of the specified encoded string to the lpszMenuName field.

public String
lpszMenuNameString()

pointer to a null-terminated character string that specifies the resource name of the class menu, as the name appears in the resource file.

public static WNDCLASSEX
malloc()

Returns a new WNDCLASSEX instance allocated with memAlloc.

public static WNDCLASSEX.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new WNDCLASSEX.Buffer instance allocated with memAlloc.

public static WNDCLASSEX
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new WNDCLASSEX instance allocated on the specified MemoryStack.

public static WNDCLASSEX.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new WNDCLASSEX.Buffer instance allocated on the specified MemoryStack.

public static WNDCLASSEX
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static WNDCLASSEX
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static WNDCLASSEX.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static WNDCLASSEX.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
ncbClsExtra(long struct)

Unsafe version of cbClsExtra.

public static void
ncbClsExtra(long struct, int value)

Unsafe version of cbClsExtra.

public static int
ncbSize(long struct)

Unsafe version of cbSize.

public static void
ncbSize(long struct, int value)

Unsafe version of cbSize.

public static int
ncbWndExtra(long struct)

Unsafe version of cbWndExtra.

public static void
ncbWndExtra(long struct, int value)

Unsafe version of cbWndExtra.

public static long
nhbrBackground(long struct)

Unsafe version of hbrBackground.

public static void
nhbrBackground(long struct, long value)

Unsafe version of hbrBackground.

public static long
nhCursor(long struct)

Unsafe version of hCursor.

public static void
nhCursor(long struct, long value)

Unsafe version of hCursor.

public static long
nhIcon(long struct)

Unsafe version of hIcon.

public static void
nhIcon(long struct, long value)

Unsafe version of hIcon.

public static long
nhIconSm(long struct)

Unsafe version of hIconSm.

public static void
nhIconSm(long struct, long value)

Unsafe version of hIconSm.

public static long
nhInstance(long struct)

Unsafe version of hInstance.

public static void
nhInstance(long struct, long value)

Unsafe version of hInstance.

public static WindowProc
nlpfnWndProc(long struct)

Unsafe version of lpfnWndProc.

public static void
nlpfnWndProc(long struct, WindowProcI value)

Unsafe version of lpfnWndProc.

public static ByteBuffer
nlpszClassName(long struct)

Unsafe version of lpszClassName.

public static void
nlpszClassName(long struct, ByteBuffer value)

Unsafe version of lpszClassName.

public static String
nlpszClassNameString(long struct)

Unsafe version of lpszClassNameString.

public static ByteBuffer
nlpszMenuName(long struct)

Unsafe version of lpszMenuName.

public static void
nlpszMenuName(long struct, ByteBuffer value)

Unsafe version of lpszMenuName.

public static String
nlpszMenuNameString(long struct)

Unsafe version of lpszMenuNameString.

public static int
nstyle(long struct)

Unsafe version of style.

public static void
nstyle(long struct, int value)

Unsafe version of style.

public WNDCLASSEX
set(int cbSize, int style, WindowProcI lpfnWndProc, int cbClsExtra, int cbWndExtra, long hInstance, long hIcon, long hCursor, long hbrBackground, ByteBuffer lpszMenuName, ByteBuffer lpszClassName, long hIconSm)

Initializes this struct with the specified values.

public WNDCLASSEX

Returns:

this struct
set
(WNDCLASSEX
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
style()

the class style(s)

public WNDCLASSEX
style(int value)

Sets the specified value to the style field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate