sdljava.event
Class SDLResizeEvent

java.lang.Object
  extended by sdljava.event.SDLEvent
      extended by sdljava.event.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
(package private)  SDL_ResizeEvent swigResizeEvent
           
 
Fields inherited from class sdljava.event.SDLEvent
activeEvent, dummyEvent, exposeEvent, joyAxisEvent, joyBallEvent, joyButtonEvent, joyHatEvent, mouseButtonEvent, mouseMotionEvent, quitEvent, resizeEvent, SDL_ACTIVEEVENT, SDL_ACTIVEEVENTMASK, SDL_ADDEVENT, SDL_APPACTIVE, SDL_APPINPUTFOCUS, SDL_APPMOUSEFOCUS, SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT, SDL_BUTTON_WHEELDOWN, SDL_BUTTON_WHEELUP, SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL, SDL_DISABLE, SDL_ENABLE, SDL_GETEVENT, SDL_IGNORE, SDL_JOYAXISMOTION, SDL_JOYAXISMOTIONMASK, SDL_JOYBALLMOTION, SDL_JOYBALLMOTIONMASK, SDL_JOYBUTTONDOWN, SDL_JOYBUTTONDOWNMASK, SDL_JOYBUTTONUP, SDL_JOYBUTTONUPMASK, SDL_JOYEVENTMASK, SDL_JOYHATMOTION, SDL_JOYHATMOTIONMASK, SDL_KEYDOWN, SDL_KEYDOWNMASK, SDL_KEYUP, SDL_KEYUPMASK, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONDOWNMASK, SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONUPMASK, SDL_MOUSEEVENTMASK, SDL_MOUSEMOTION, SDL_MOUSEMOTIONMASK, SDL_NOEVENT, SDL_PEEKEVENT, SDL_PRESSED, SDL_QUERY, SDL_QUIT, SDL_QUITMASK, SDL_RELEASED, SDL_SYSWMEVENT, SDL_SYSWMEVENTMASK, SDL_USEREVENT, SDL_VIDEOEXPOSE, SDL_VIDEOEXPOSEMASK, SDL_VIDEORESIZE, SDL_VIDEORESIZEMASK, sdlKeyboardEvent, swigEvent, sysWMEvent, userEvent
 
Constructor Summary
SDLResizeEvent()
           
 
Method Summary
 int getHeight()
          Get the new height
 SDL_ResizeEvent getSwigResizeEvent()
          Gets the value of swigResizeEvent
 int getType()
          The type of the this event
 int getWidth()
          Get the new width
 void setSwigResizeEvent(SDL_ResizeEvent argSwigResizeEvent)
          Sets the value of swigResizeEvent
 
Methods inherited from class sdljava.event.SDLEvent
enableKeyRepeat, enableUNICODE, eventState, getAppState, getKeyName, getModState, getMouseState, getRelativeMouseState, joystickEventState, pollEvent, pollEvent, processEvent, pumpEvents, setModState, waitEvent, waitEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigResizeEvent

SDL_ResizeEvent swigResizeEvent
Constructor Detail

SDLResizeEvent

public SDLResizeEvent()
Method Detail

getSwigResizeEvent

public SDL_ResizeEvent getSwigResizeEvent()
Gets the value of swigResizeEvent

Returns:
the value of swigResizeEvent

setSwigResizeEvent

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

Parameters:
argSwigResizeEvent - Value to assign to this.swigResizeEvent

getWidth

public int getWidth()
Get the new width

Returns:
the new width

getHeight

public int getHeight()
Get the new height

Returns:
the new height

getType

public int getType()
The type of the this event

Specified by:
getType in class SDLEvent
Returns:
The type of event