sdljava.event

Class SDLResizeEvent

public class SDLResizeEvent extends SDLEvent

SDL_ResizeEvent is a member of the SDL_Event union and is used when an event of type SDL_VIDEORESIZE is reported.

When SDL_RESIZABLE is passed as a flag to SDL_SetVideoMode the user is allowed to resize the applications window. When the window is resized an SDL_VIDEORESIZE is reported, with the new window width and height values stored in w and h respectively. When an SDL_VIDEORESIZE is recieved the window should be resized to the new dimensions using SDL_SetVideoMode.

Version: $Id: SDLResizeEvent.java,v 1.4 2005/01/25 02:50:45 ivan_ganza Exp $

Author: Ivan Z. Ganza

Field Summary
SDL_ResizeEventswigResizeEvent
Method Summary
intgetHeight()
Get the new height
SDL_ResizeEventgetSwigResizeEvent()
Gets the value of swigResizeEvent
intgetType()
The type of the this event
intgetWidth()
Get the new width
voidsetSwigResizeEvent(SDL_ResizeEvent argSwigResizeEvent)
Sets the value of swigResizeEvent

Field Detail

swigResizeEvent

SDL_ResizeEvent swigResizeEvent

Method Detail

getHeight

public int getHeight()
Get the new height

Returns: the new height

getSwigResizeEvent

public SDL_ResizeEvent getSwigResizeEvent()
Gets the value of swigResizeEvent

Returns: the value of swigResizeEvent

getType

public int getType()
The type of the this event

Returns: The type of event

getWidth

public int getWidth()
Get the new width

Returns: the new width

setSwigResizeEvent

public void setSwigResizeEvent(SDL_ResizeEvent argSwigResizeEvent)
Sets the value of swigResizeEvent

Parameters: argSwigResizeEvent Value to assign to this.swigResizeEvent