SBSPSS/source/gui/gbutton.h

88 lines
1.6 KiB
C
Raw Normal View History

2000-11-02 18:19:06 +01:00
/*=========================================================================
gbutton.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __GUI_GBUTTON_H__
#define __GUI_GBUTTON_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __GUI_GUI_H__
#include "gui\gui.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
2000-11-03 17:41:57 +01:00
class CGUIToggleButton : public CGUIObject
2000-11-02 18:19:06 +01:00
{
public:
virtual void setButtonTarget(int *_target);
2000-11-03 17:41:57 +01:00
virtual void think(int _frames);
protected:
int *getTarget() {return m_target;}
virtual int isSelectable() {return true;}
private:
int *m_target;
};
class CGUICycleButton : public CGUIToggleButton
{
public:
2000-11-02 18:19:06 +01:00
virtual void setButtonData(int *_data);
virtual void think(int _frames);
2000-11-02 18:35:44 +01:00
protected:
2000-11-03 17:41:57 +01:00
int *getData() {return m_data;}
2000-11-02 18:35:44 +01:00
2000-11-02 18:19:06 +01:00
private:
int *m_data;
2000-11-03 17:41:57 +01:00
2000-11-02 18:19:06 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __GUI_GBUTTON_H__ */
/*===========================================================================
end */