sfEvent Class Reference

sfEvent defines a system event and its parameters More...

#include <Event.hpp>

List of all members.


Public Types

enum  EventType {
  Close,
  Resize,
  LostFocus,
  GainedFocus,
  TextEntered,
  KeyPressed,
  KeyReleased,
  MouseButtonPressed,
  MouseButtonReleased,
  MouseMove,
  JoystickButtonPressed,
  JoystickButtonReleased,
  JoystickMove
}
 Enumeration of the different types of events. More...

Public Attributes

EventType Type
 Type of the event.
union {
   struct {
      sfUint16   Unicode
   }   Text
 Text event parameters.
   struct {
      sfKey::Code   Code
      bool   Alt
      bool   Control
      bool   Shift
   }   Key
 Keyboard events parameters.
   struct {
      unsigned int   Buttons
      unsigned int   X
      unsigned int   Y
   }   Mouse
 Mouse events parameters.
   struct {
      unsigned int   JoystickId
      unsigned int   Button
      int   X
      int   Y
      int   Z
   }   Joystick
 Joystick events parameters.
   struct {
      unsigned int   Width
      unsigned int   Height
   }   Size
 Size events parameters.
}; 

Detailed Description

sfEvent defines a system event and its parameters

Definition at line 74 of file Event.hpp.


Member Enumeration Documentation

enum sfEvent::EventType

Enumeration of the different types of events.

Enumerator:
Close 
Resize 
LostFocus 
GainedFocus 
TextEntered 
KeyPressed 
KeyReleased 
MouseButtonPressed 
MouseButtonReleased 
MouseMove 
JoystickButtonPressed 
JoystickButtonReleased 
JoystickMove 

Definition at line 81 of file Event.hpp.


Member Data Documentation

EventType sfEvent::Type

Type of the event.

Definition at line 101 of file Event.hpp.

struct { ... } sfEvent::Text

Text event parameters.

struct { ... } sfEvent::Key

Keyboard events parameters.

struct { ... } sfEvent::Mouse

Mouse events parameters.

struct { ... } sfEvent::Joystick

Joystick events parameters.

struct { ... } sfEvent::Size

Size events parameters.


The documentation for this class was generated from the following file: