c_mouse_event Struct Reference

#include <cio.h>

Collaboration diagram for c_mouse_event:

Collaboration graph
[legend]

List of all members.

Public Types

enum  button_state_type {
  BUTTON1 = 0x1, BUTTON1_DBL = 0x2, BUTTON2 = 0x4, BUTTON2_DBL = 0x8,
  BUTTON3 = 0x10, BUTTON3_DBL = 0x20, BUTTON4 = 0x40, BUTTON4_DBL = 0x80,
  BUTTON_SCRL_UP = 0x100, BUTTON_SCRL_DN = 0x200
}

Public Member Functions

 c_mouse_event ()
 c_mouse_event (const coord_def &c, int state=0)
 operator bool () const
bool left_clicked () const
bool right_clicked () const
bool scroll_up () const
bool scroll_down () const

Public Attributes

coord_def pos
int bstate


Member Enumeration Documentation

Enumerator:
BUTTON1 
BUTTON1_DBL 
BUTTON2 
BUTTON2_DBL 
BUTTON3 
BUTTON3_DBL 
BUTTON4 
BUTTON4_DBL 
BUTTON_SCRL_UP 
BUTTON_SCRL_DN 


Constructor & Destructor Documentation

c_mouse_event::c_mouse_event (  )  [inline]

c_mouse_event::c_mouse_event ( const coord_def c,
int  state = 0 
) [inline]


Member Function Documentation

c_mouse_event::operator bool (  )  const [inline]

bool c_mouse_event::left_clicked (  )  const [inline]

bool c_mouse_event::right_clicked (  )  const [inline]

bool c_mouse_event::scroll_up (  )  const [inline]

bool c_mouse_event::scroll_down (  )  const [inline]


Member Data Documentation


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

Generated on Thu Jan 13 13:31:40 2011 by  doxygen 1.5.6