public final class SizeEvent extends Event
Event.Type.RESIZED.Event.Type| Modifier and Type | Field and Description |
|---|---|
Vector2i |
size
The new size of the window in pixels.
|
| Constructor and Description |
|---|
SizeEvent(int type,
int width,
int height)
Constructs a new window resize event.
|
| Modifier and Type | Method and Description |
|---|---|
SizeEvent |
asSizeEvent()
Attempts to cast this event to a
SizeEvent. |
asJoystickButtonEvent, asJoystickEvent, asJoystickMoveEvent, asKeyEvent, asMouseButtonEvent, asMouseEvent, asMouseWheelEvent, asTextEventpublic final Vector2i size
public SizeEvent(int type,
int width,
int height)
type - the type of the event.
This must be a valid ordinal in the Event.Type enumeration.width - the new width of the window in pixels.height - the new height of the window in pixels.public SizeEvent asSizeEvent()
EventSizeEvent.asSizeEvent in class EventSizeEvent if its type is
Event.Type.RESIZED, null otherwise.