Source code: org/libsdl/event/SDLActiveEvent.java
1
2
3 package org.libsdl.event;
4
5
6 /**
7 * The <code>SDLActiveEvent</code> represents an application visibility
8 * event.
9 * <p>
10 *
11 * @author Eric Wittmann
12 * @version $revision$
13 */
14 public class SDLActiveEvent extends SDLEvent
15 {
16 private short gain;
17 private short state;
18
19 /**
20 * Constructs a new <code>SDLActiveEvent</code> with the given type,
21 * gain, and state parameters.
22 * @param type Short - type of active event
23 * @param gain Short - the gain
24 * @param state Short - the state
25 */
26 public SDLActiveEvent(short type, short gain, short state) {
27 super(SDLEvent.SDL_ACTIVEEVENT, type);
28 this.gain = gain;
29 this.state = state;
30 }
31
32 /**
33 * Return the gain of this active event.
34 * @return Short - the gain
35 */
36 public short getGain() {
37 return gain;
38 }
39
40 /**
41 * Return the state of this active event.
42 * @return Short - the state
43 */
44 public short getState() {
45 return state;
46 }
47 }