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

public abstract Class WindowProc

extends Callback
implements WindowProcI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.windows.WindowProcI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.windows.WindowProc.Container
Imports
javax.annotation.*, org.lwjgl.system.*

An application-defined function that processes messages sent to a window.

Type


LRESULT (*invoke) (
    HWND hwnd,
    UINT uMsg,
    WPARAM wParam,
    LPARAM lParam
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
WindowProc(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static WindowProc

Returns:

the new WindowProc
create
(long functionPointer)

Creates a WindowProc instance from the specified function pointer.

public static WindowProc
create(WindowProcI instance)

Creates a WindowProc instance that delegates to the specified WindowProcI instance.

public static WindowProc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

WindowProcback to summary
protected WindowProc()
WindowProcback to summary
pack-priv WindowProc(long functionPointer)

Method Detail

createback to summary
public static WindowProc create(long functionPointer)

Creates a WindowProc instance from the specified function pointer.

Returns:WindowProc

the new WindowProc

createback to summary
public static WindowProc create(WindowProcI instance)

Creates a WindowProc instance that delegates to the specified WindowProcI instance.

createSafeback to summary
public static WindowProc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.system.windows back to summary

private final Class WindowProc.Container

extends WindowProc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final WindowProcI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, WindowProcI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long
a handle to the window procedure that received the message
hwnd
,
int
the message
uMsg
,
long
additional message information. The content of this parameter depends on the value of the uMsg parameter.
wParam
,
long
additional message information. The content of this parameter depends on the value of the uMsg parameter.
lParam
)

Implements org.lwjgl.system.windows.WindowProcI.invoke.

Will be called for each message sent to the window.
Inherited from org.lwjgl.system.windows.WindowProc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final WindowProcI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, WindowProcI delegate)

Method Detail

invokeback to summary
public long invoke(long hwnd, int uMsg, long wParam, long lParam)

Implements org.lwjgl.system.windows.WindowProcI.invoke.

Doc from org.lwjgl.system.windows.WindowProcI.invoke.

Will be called for each message sent to the window.

Parameters
hwnd:long

a handle to the window procedure that received the message

uMsg:int

the message

wParam:long

additional message information. The content of this parameter depends on the value of the uMsg parameter.

lParam:long

additional message information. The content of this parameter depends on the value of the uMsg parameter.

Annotations
@Override