Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Mouse Class Reference

#include <Mouse.h>

List of all members.

Public Types

enum  CURSOR {
  ARROW, CROSS, WAIT, NOT,
  DRAG, USER1, USER2, USER3
}
enum  HOTSPOT { HOTSPOT_CTR, HOTSPOT_NW }

Static Public Member Functions

static const char * TYPENAME ()
static int X ()
static int Y ()
static int LButton ()
static int MButton ()
static int RButton ()
static int Wheel ()
static void Paint ()
static void SetCursorPos (int x, int y)
static void Show (int s=1)
static int SetCursor (CURSOR c)
static int LoadCursor (CURSOR c, const char *name, HOTSPOT hs=HOTSPOT_CTR)
static void Create (Screen *screen)
static void Resize (Screen *screen)
static void Close ()

Friends

class Game
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)

Detailed Description

Definition at line 28 of file Mouse.h.


Member Enumeration Documentation

Enumerator:
ARROW 
CROSS 
WAIT 
NOT 
DRAG 
USER1 
USER2 
USER3 

Definition at line 36 of file Mouse.h.

Enumerator:
HOTSPOT_CTR 
HOTSPOT_NW 

Definition at line 37 of file Mouse.h.


Member Function Documentation

void Mouse::Close ( )
static

Definition at line 61 of file Mouse.cpp.

void Mouse::Create ( Screen screen)
static

Definition at line 41 of file Mouse.cpp.

static int Mouse::LButton ( )
inlinestatic

Definition at line 41 of file Mouse.h.

int Mouse::LoadCursor ( CURSOR  c,
const char *  name,
HOTSPOT  hs = HOTSPOT_CTR 
)
static

Definition at line 108 of file Mouse.cpp.

static int Mouse::MButton ( )
inlinestatic

Definition at line 42 of file Mouse.h.

void Mouse::Paint ( )
static

Definition at line 143 of file Mouse.cpp.

static int Mouse::RButton ( )
inlinestatic

Definition at line 43 of file Mouse.h.

void Mouse::Resize ( Screen screen)
static

Definition at line 51 of file Mouse.cpp.

int Mouse::SetCursor ( CURSOR  c)
static

Definition at line 98 of file Mouse.cpp.

void Mouse::SetCursorPos ( int  x,
int  y 
)
static

Definition at line 78 of file Mouse.cpp.

void Mouse::Show ( int  s = 1)
static

Definition at line 135 of file Mouse.cpp.

static const char* Mouse::TYPENAME ( )
inlinestatic

Definition at line 34 of file Mouse.h.

static int Mouse::Wheel ( )
inlinestatic

Definition at line 44 of file Mouse.h.

static int Mouse::X ( )
inlinestatic

Definition at line 39 of file Mouse.h.

static int Mouse::Y ( )
inlinestatic

Definition at line 40 of file Mouse.h.


Friends And Related Function Documentation

friend class Game
friend

Definition at line 31 of file Mouse.h.

LRESULT CALLBACK WndProc ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)
friend

Definition at line 1273 of file Game.cpp.


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