|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sdljava.event.SDLEvent sdljava.event.SDLActiveEvent
public class SDLActiveEvent
When the mouse leaves or enters the window area a SDL_APPMOUSEFOCUS type activation event occurs, if the mouse entered the window then gain will be 1, otherwise gain will be 0. A SDL_APPINPUTFOCUS type activation event occurs when the application loses or gains keyboard focus. This usually occurs when another application is made active. Finally, a SDL_APPACTIVE type event occurs when the application is either minimised/iconified (gain=0) or restored.
Note: This event does not occur when an application window is first created.
Field Summary | |
---|---|
static int |
SDL_APPACTIVE
The application is active |
static int |
SDL_APPINPUTFOCUS
The app has input focus |
static int |
SDL_APPMOUSEFOCUS
The app has mouse coverage |
(package private) SDL_ActiveEvent |
swigActiveEvent
Reference to the SWIG generated event |
Constructor Summary | |
---|---|
SDLActiveEvent()
|
Method Summary | |
---|---|
SDL_ActiveEvent |
getSwigActiveEvent()
Gets the value of swigActiveEvent |
int |
getType()
The type of the this event |
void |
setSwigActiveEvent(SDL_ActiveEvent argSwigActiveEvent)
Sets the value of swigActiveEvent |
java.lang.String |
toString()
|
(package private) java.lang.String |
translateState(int state)
|
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, wait, wait, wait |
Field Detail |
---|
SDL_ActiveEvent swigActiveEvent
public static final int SDL_APPMOUSEFOCUS
public static final int SDL_APPINPUTFOCUS
public static final int SDL_APPACTIVE
Constructor Detail |
---|
public SDLActiveEvent()
Method Detail |
---|
public SDL_ActiveEvent getSwigActiveEvent()
public void setSwigActiveEvent(SDL_ActiveEvent argSwigActiveEvent)
argSwigActiveEvent
- Value to assign to this.swigActiveEventpublic int getType()
getType
in class SDLEvent
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of myselfjava.lang.String translateState(int state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |