mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 03:34:48 +00:00
42 lines
947 B
C++
42 lines
947 B
C++
//-----------------------------------------------------------------------------
|
|
// Torque Engine
|
|
//
|
|
// Copyright (c) 2001 GarageGames.Com
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _GUIBUTTONBASECTRL_H_
|
|
#define _GUIBUTTONBASECTRL_H_
|
|
|
|
#ifndef _GUICONTROL_H_
|
|
#include "gui/guiControl.h"
|
|
#endif
|
|
|
|
class GuiButtonBaseCtrl : public GuiControl
|
|
{
|
|
typedef GuiControl Parent;
|
|
|
|
protected:
|
|
StringTableEntry mButtonText;
|
|
bool mDepressed;
|
|
bool mMouseOver;
|
|
public:
|
|
GuiButtonBaseCtrl();
|
|
static void initPersistFields();
|
|
|
|
void setText(const char *text);
|
|
const char *getText();
|
|
|
|
void AcceleratorKeyPress();
|
|
void AcceleratorKeyRelease();
|
|
|
|
void onMouseDown(const GuiEvent &);
|
|
void onMouseUp(const GuiEvent &);
|
|
|
|
void onMouseEnter(const GuiEvent &);
|
|
void onMouseLeave(const GuiEvent &);
|
|
|
|
bool onKeyDown(const GuiEvent &event);
|
|
bool onKeyUp(const GuiEvent &event);
|
|
};
|
|
|
|
#endif |