1 /**
2 * Package module for event args.
3 *
4 * Authors:
5 *   Jacob Jensen
6 * License:
7 *   https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE
8 */
9 module poison.core.eventargs;
10 
11 /// Base event args
12 class EventArgs {
13   /// The empty event args.
14   private static EventArgs _empty;
15 
16   protected:
17   /// Creates a new instance of event args.
18   this() {
19 
20   }
21 
22   public:
23   static:
24   @property {
25     /// Gets an empty event args.
26     EventArgs empty() {
27       if (!_empty) {
28         _empty = new EventArgs();
29       }
30 
31       return _empty;
32     }
33   }
34 }
35 
36 public {
37   import poison.core.eventargs.changeeventargs;
38   import poison.core.eventargs.buttoneventargs;
39   import poison.core.eventargs.keyeventargs;
40   import poison.core.eventargs.mouseeventargs;
41   import poison.core.eventargs.texteventargs;
42 }