public class WNDCLASSEX
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
User32.RegisterClassEx(org.lwjgl.system.windows.WNDCLASSEX) function.
cbSize – the size, in bytes, of this structurestyle – the class style(s)lpfnWndProc – a pointer to the window procedurecbClsExtra – the number of extra bytes to allocate following the window-class structure. The system initializes the bytes to zero.cbWndExtra – the number of extra bytes to allocate following the window instance. The system initializes the bytes to zero.hInstance – a handle to the instance that contains the window procedure for the classhIcon – a handle to the class icon. This member must be a handle to an icon resource. If this member is NULL, the system provides a default icon.hCursor –
a handle to the class cursor. This member must be a handle to a cursor resource. If this member is NULL, an application must explicitly set the cursor
shape whenever the mouse moves into the application's window.hbrBackground –
a handle to the class background brush. This member can be a handle to the brush to be used for painting the background, or it can be a color value.
When this member is NULL, an application must paint its own background whenever it is requested to paint in its client area.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. If this
member is NULL, windows belonging to this class have no default menu.lpszClassName – a pointer to a null-terminated string or is an atomhIconSm –
a handle to a small icon that is associated with the window class. If this member is NULL, the system searches the icon resource specified by the
hIcon member for an icon of the appropriate size to use as the small icon.
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
WNDCLASSEX.Buffer
An array of
WNDCLASSEX structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CBCLSEXTRA
The struct member offsets.
|
static int |
CBSIZE
The struct member offsets.
|
static int |
CBWNDEXTRA
The struct member offsets.
|
static int |
HBRBACKGROUND
The struct member offsets.
|
static int |
HCURSOR
The struct member offsets.
|
static int |
HICON
The struct member offsets.
|
static int |
HICONSM
The struct member offsets.
|
static int |
HINSTANCE
The struct member offsets.
|
static int |
LPFNWNDPROC
The struct member offsets.
|
static int |
LPSZCLASSNAME
The struct member offsets.
|
static int |
LPSZMENUNAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYLE
The struct member offsets.
|
| Constructor and Description |
|---|
WNDCLASSEX(java.nio.ByteBuffer container)
Creates a
WNDCLASSEX instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static WNDCLASSEX |
calloc()
Returns a new
WNDCLASSEX instance allocated with memCalloc. |
static WNDCLASSEX.Buffer |
calloc(int capacity)
Returns a new
WNDCLASSEX.Buffer instance allocated with memCalloc. |
static WNDCLASSEX |
callocStack()
Returns a new
WNDCLASSEX instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static WNDCLASSEX.Buffer |
callocStack(int capacity)
Returns a new
WNDCLASSEX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static WNDCLASSEX.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
WNDCLASSEX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static WNDCLASSEX |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
WNDCLASSEX instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
cbClsExtra()
Returns the value of the
cbClsExtra field. |
WNDCLASSEX |
cbClsExtra(int value)
Sets the specified value to the
cbClsExtra field. |
int |
cbSize()
Returns the value of the
cbSize field. |
WNDCLASSEX |
cbSize(int value)
Sets the specified value to the
cbSize field. |
int |
cbWndExtra()
Returns the value of the
cbWndExtra field. |
WNDCLASSEX |
cbWndExtra(int value)
Sets the specified value to the
cbWndExtra field. |
static WNDCLASSEX |
create()
Returns a new
WNDCLASSEX instance allocated with BufferUtils. |
static WNDCLASSEX.Buffer |
create(int capacity)
Returns a new
WNDCLASSEX.Buffer instance allocated with BufferUtils. |
static WNDCLASSEX |
create(long address)
Returns a new
WNDCLASSEX instance for the specified memory address. |
static WNDCLASSEX.Buffer |
create(long address,
int capacity)
Create a
WNDCLASSEX.Buffer instance at the specified memory. |
static WNDCLASSEX |
createSafe(long address)
|
static WNDCLASSEX.Buffer |
createSafe(long address,
int capacity)
|
long |
hbrBackground()
Returns the value of the
hbrBackground field. |
WNDCLASSEX |
hbrBackground(long value)
Sets the specified value to the
hbrBackground field. |
long |
hCursor()
Returns the value of the
hCursor field. |
WNDCLASSEX |
hCursor(long value)
Sets the specified value to the
hCursor field. |
long |
hIcon()
Returns the value of the
hIcon field. |
WNDCLASSEX |
hIcon(long value)
Sets the specified value to the
hIcon field. |
long |
hIconSm()
Returns the value of the
hIconSm field. |
WNDCLASSEX |
hIconSm(long value)
Sets the specified value to the
hIconSm field. |
long |
hInstance()
Returns the value of the
hInstance field. |
WNDCLASSEX |
hInstance(long value)
Sets the specified value to the
hInstance field. |
WindowProc |
lpfnWndProc()
Returns the value of the
lpfnWndProc field. |
WNDCLASSEX |
lpfnWndProc(WindowProcI value)
Sets the specified value to the
lpfnWndProc field. |
java.nio.ByteBuffer |
lpszClassName()
Returns a
ByteBuffer view of the null-terminated string pointed to by the lpszClassName field. |
WNDCLASSEX |
lpszClassName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
lpszClassName field. |
java.lang.String |
lpszClassNameString()
Decodes the null-terminated string pointed to by the
lpszClassName field. |
java.nio.ByteBuffer |
lpszMenuName()
Returns a
ByteBuffer view of the null-terminated string pointed to by the lpszMenuName field. |
WNDCLASSEX |
lpszMenuName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
lpszMenuName field. |
java.lang.String |
lpszMenuNameString()
Decodes the null-terminated string pointed to by the
lpszMenuName field. |
static WNDCLASSEX |
malloc()
Returns a new
WNDCLASSEX instance allocated with memAlloc. |
static WNDCLASSEX.Buffer |
malloc(int capacity)
Returns a new
WNDCLASSEX.Buffer instance allocated with memAlloc. |
static WNDCLASSEX |
mallocStack()
Returns a new
WNDCLASSEX instance allocated on the thread-local MemoryStack. |
static WNDCLASSEX.Buffer |
mallocStack(int capacity)
Returns a new
WNDCLASSEX.Buffer instance allocated on the thread-local MemoryStack. |
static WNDCLASSEX.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
WNDCLASSEX.Buffer instance allocated on the specified MemoryStack. |
static WNDCLASSEX |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
WNDCLASSEX instance allocated on the specified MemoryStack. |
static int |
ncbClsExtra(long struct)
Unsafe version of
cbClsExtra(). |
static void |
ncbClsExtra(long struct,
int value)
Unsafe version of
cbClsExtra. |
static int |
ncbSize(long struct)
Unsafe version of
cbSize(). |
static void |
ncbSize(long struct,
int value)
Unsafe version of
cbSize. |
static int |
ncbWndExtra(long struct)
Unsafe version of
cbWndExtra(). |
static void |
ncbWndExtra(long struct,
int value)
Unsafe version of
cbWndExtra. |
static long |
nhbrBackground(long struct)
Unsafe version of
hbrBackground(). |
static void |
nhbrBackground(long struct,
long value)
Unsafe version of
hbrBackground. |
static long |
nhCursor(long struct)
Unsafe version of
hCursor(). |
static void |
nhCursor(long struct,
long value)
Unsafe version of
hCursor. |
static long |
nhIcon(long struct)
Unsafe version of
hIcon(). |
static void |
nhIcon(long struct,
long value)
Unsafe version of
hIcon. |
static long |
nhIconSm(long struct)
Unsafe version of
hIconSm(). |
static void |
nhIconSm(long struct,
long value)
Unsafe version of
hIconSm. |
static long |
nhInstance(long struct)
Unsafe version of
hInstance(). |
static void |
nhInstance(long struct,
long value)
Unsafe version of
hInstance. |
static WindowProc |
nlpfnWndProc(long struct)
Unsafe version of
lpfnWndProc(). |
static void |
nlpfnWndProc(long struct,
WindowProcI value)
Unsafe version of
lpfnWndProc. |
static java.nio.ByteBuffer |
nlpszClassName(long struct)
Unsafe version of
lpszClassName(). |
static void |
nlpszClassName(long struct,
java.nio.ByteBuffer value)
Unsafe version of
lpszClassName. |
static java.lang.String |
nlpszClassNameString(long struct)
Unsafe version of
lpszClassNameString(). |
static java.nio.ByteBuffer |
nlpszMenuName(long struct)
Unsafe version of
lpszMenuName(). |
static void |
nlpszMenuName(long struct,
java.nio.ByteBuffer value)
Unsafe version of
lpszMenuName. |
static java.lang.String |
nlpszMenuNameString(long struct)
Unsafe version of
lpszMenuNameString(). |
static int |
nstyle(long struct)
Unsafe version of
style(). |
static void |
nstyle(long struct,
int value)
Unsafe version of
style. |
WNDCLASSEX |
set(int cbSize,
int style,
WindowProcI lpfnWndProc,
int cbClsExtra,
int cbWndExtra,
long hInstance,
long hIcon,
long hCursor,
long hbrBackground,
java.nio.ByteBuffer lpszMenuName,
java.nio.ByteBuffer lpszClassName,
long hIconSm)
Initializes this struct with the specified values.
|
WNDCLASSEX |
set(WNDCLASSEX src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
style()
Returns the value of the
style field. |
WNDCLASSEX |
style(int value)
Sets the specified value to the
style field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CBSIZE
public static final int STYLE
public static final int LPFNWNDPROC
public static final int CBCLSEXTRA
public static final int CBWNDEXTRA
public static final int HINSTANCE
public static final int HICON
public static final int HCURSOR
public static final int HBRBACKGROUND
public static final int LPSZMENUNAME
public static final int LPSZCLASSNAME
public static final int HICONSM
public WNDCLASSEX(java.nio.ByteBuffer container)
WNDCLASSEX instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int cbSize()
cbSize field.public int style()
style field.public WindowProc lpfnWndProc()
lpfnWndProc field.public int cbClsExtra()
cbClsExtra field.public int cbWndExtra()
cbWndExtra field.public long hInstance()
hInstance field.public long hIcon()
hIcon field.public long hCursor()
hCursor field.public long hbrBackground()
hbrBackground field.@Nullable public java.nio.ByteBuffer lpszMenuName()
ByteBuffer view of the null-terminated string pointed to by the lpszMenuName field.@Nullable public java.lang.String lpszMenuNameString()
lpszMenuName field.public java.nio.ByteBuffer lpszClassName()
ByteBuffer view of the null-terminated string pointed to by the lpszClassName field.public java.lang.String lpszClassNameString()
lpszClassName field.public long hIconSm()
hIconSm field.public WNDCLASSEX cbSize(int value)
cbSize field.public WNDCLASSEX style(int value)
style field.public WNDCLASSEX lpfnWndProc(WindowProcI value)
lpfnWndProc field.public WNDCLASSEX cbClsExtra(int value)
cbClsExtra field.public WNDCLASSEX cbWndExtra(int value)
cbWndExtra field.public WNDCLASSEX hInstance(long value)
hInstance field.public WNDCLASSEX hIcon(long value)
hIcon field.public WNDCLASSEX hCursor(long value)
hCursor field.public WNDCLASSEX hbrBackground(long value)
hbrBackground field.public WNDCLASSEX lpszMenuName(@Nullable java.nio.ByteBuffer value)
lpszMenuName field.public WNDCLASSEX lpszClassName(java.nio.ByteBuffer value)
lpszClassName field.public WNDCLASSEX hIconSm(long value)
hIconSm field.public WNDCLASSEX set(int cbSize, int style, WindowProcI lpfnWndProc, int cbClsExtra, int cbWndExtra, long hInstance, long hIcon, long hCursor, long hbrBackground, @Nullable java.nio.ByteBuffer lpszMenuName, java.nio.ByteBuffer lpszClassName, long hIconSm)
public WNDCLASSEX set(WNDCLASSEX src)
src - the source structpublic static WNDCLASSEX malloc()
WNDCLASSEX instance allocated with memAlloc. The instance must be explicitly freed.public static WNDCLASSEX calloc()
WNDCLASSEX instance allocated with memCalloc. The instance must be explicitly freed.public static WNDCLASSEX create()
WNDCLASSEX instance allocated with BufferUtils.public static WNDCLASSEX create(long address)
WNDCLASSEX instance for the specified memory address.@Nullable public static WNDCLASSEX createSafe(long address)
public static WNDCLASSEX.Buffer malloc(int capacity)
WNDCLASSEX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static WNDCLASSEX.Buffer calloc(int capacity)
WNDCLASSEX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static WNDCLASSEX.Buffer create(int capacity)
WNDCLASSEX.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static WNDCLASSEX.Buffer create(long address, int capacity)
WNDCLASSEX.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static WNDCLASSEX.Buffer createSafe(long address, int capacity)
public static WNDCLASSEX mallocStack()
WNDCLASSEX instance allocated on the thread-local MemoryStack.public static WNDCLASSEX callocStack()
WNDCLASSEX instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static WNDCLASSEX mallocStack(org.lwjgl.system.MemoryStack stack)
WNDCLASSEX instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static WNDCLASSEX callocStack(org.lwjgl.system.MemoryStack stack)
WNDCLASSEX instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static WNDCLASSEX.Buffer mallocStack(int capacity)
WNDCLASSEX.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static WNDCLASSEX.Buffer callocStack(int capacity)
WNDCLASSEX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static WNDCLASSEX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
WNDCLASSEX.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static WNDCLASSEX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
WNDCLASSEX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ncbSize(long struct)
cbSize().public static int nstyle(long struct)
style().public static WindowProc nlpfnWndProc(long struct)
lpfnWndProc().public static int ncbClsExtra(long struct)
cbClsExtra().public static int ncbWndExtra(long struct)
cbWndExtra().public static long nhInstance(long struct)
hInstance().public static long nhIcon(long struct)
hIcon().public static long nhCursor(long struct)
hCursor().public static long nhbrBackground(long struct)
hbrBackground().@Nullable public static java.nio.ByteBuffer nlpszMenuName(long struct)
lpszMenuName().@Nullable public static java.lang.String nlpszMenuNameString(long struct)
lpszMenuNameString().public static java.nio.ByteBuffer nlpszClassName(long struct)
lpszClassName().public static java.lang.String nlpszClassNameString(long struct)
lpszClassNameString().public static long nhIconSm(long struct)
hIconSm().public static void ncbSize(long struct,
int value)
cbSize.public static void nstyle(long struct,
int value)
style.public static void nlpfnWndProc(long struct,
WindowProcI value)
lpfnWndProc.public static void ncbClsExtra(long struct,
int value)
cbClsExtra.public static void ncbWndExtra(long struct,
int value)
cbWndExtra.public static void nhInstance(long struct,
long value)
hInstance.public static void nhIcon(long struct,
long value)
hIcon.public static void nhCursor(long struct,
long value)
hCursor.public static void nhbrBackground(long struct,
long value)
hbrBackground.public static void nlpszMenuName(long struct,
@Nullable
java.nio.ByteBuffer value)
lpszMenuName.public static void nlpszClassName(long struct,
java.nio.ByteBuffer value)
lpszClassName.public static void nhIconSm(long struct,
long value)
hIconSm.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.