Initial commit
This commit is contained in:
46
Torque/SDK/engine/gui/utility/guiMouseEventCtrl.h
Normal file
46
Torque/SDK/engine/gui/utility/guiMouseEventCtrl.h
Normal file
@@ -0,0 +1,46 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _GUIMOUSEEVENTCTRL_H_
|
||||
#define _GUIMOUSEEVENTCTRL_H_
|
||||
|
||||
#ifndef _GUICONTROL_H_
|
||||
#include "gui/core/guiControl.h"
|
||||
#endif
|
||||
#ifndef _EVENT_H_
|
||||
#include "platform/event.h"
|
||||
#endif
|
||||
|
||||
|
||||
class GuiMouseEventCtrl : public GuiControl
|
||||
{
|
||||
private:
|
||||
typedef GuiControl Parent;
|
||||
void sendMouseEvent(const char * name, const GuiEvent &);
|
||||
|
||||
// field info
|
||||
bool mLockMouse;
|
||||
|
||||
public:
|
||||
|
||||
GuiMouseEventCtrl();
|
||||
|
||||
// GuiControl
|
||||
void onMouseDown(const GuiEvent & event);
|
||||
void onMouseUp(const GuiEvent & event);
|
||||
void onMouseMove(const GuiEvent & event);
|
||||
void onMouseDragged(const GuiEvent & event);
|
||||
void onMouseEnter(const GuiEvent & event);
|
||||
void onMouseLeave(const GuiEvent & event);
|
||||
void onRightMouseDown(const GuiEvent & event);
|
||||
void onRightMouseUp(const GuiEvent & event);
|
||||
void onRightMouseDragged(const GuiEvent & event);
|
||||
|
||||
static void initPersistFields();
|
||||
|
||||
DECLARE_CONOBJECT(GuiMouseEventCtrl);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user