SBSPSS/source/gui/gfactory.h

83 lines
2.3 KiB
C
Raw Normal View History

2000-11-22 23:51:27 +01:00
/*=========================================================================
gfactory.h
Author: PKG
Created:
Project: Spongebob
Purpose: A factory to simplify the creation of actual UI objects. Rather than
creating the constituent parts of an item yourself, just call the
member functions here.
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __GUI_GFACTORY_H__
#define __GUI_GFACTORY_H__
/*----------------------------------------------------------------------
Includes
-------- */
2001-08-17 17:54:50 +02:00
#ifndef __GUI_GUI_H__
#include "gui\gui.h"
#endif
2000-11-23 18:00:09 +01:00
#ifndef __GUI_GREADOUT_H__
#include "gui\greadout.h"
#endif
2000-11-22 23:51:27 +01:00
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CGUIFactory
{
public:
2000-11-23 00:03:41 +01:00
// Creates a frame containing a value button with text label
2001-08-17 17:54:50 +02:00
static CGUIObject *createValueButtonFrame(CGUIObject *_parent,
2001-07-31 17:57:19 +02:00
int _x,int _y,int _w,int _h,
int _textId,
2001-08-17 17:54:50 +02:00
int *_target,int _value,
CGUIObject::GUIId _id=CGUIObject::noId);
2000-11-23 00:03:41 +01:00
2000-11-23 18:00:09 +01:00
// Creates a frame containing a cycle button, text readout and text label
2001-08-17 17:54:50 +02:00
static CGUIObject *createCycleButtonFrame(CGUIObject *_parent,
2001-07-31 17:57:19 +02:00
int _x,int _y,int _w,int _h,
int _textId,
2001-08-17 17:54:50 +02:00
int *_target,int *_data,CGUITextReadout::TextReadoutData *_readoutData,
CGUIObject::GUIId _id=CGUIObject::noId);
2000-11-23 18:00:09 +01:00
2000-11-23 00:03:41 +01:00
// Creates a frame containing a slider button, readout and text label
2001-08-17 17:54:50 +02:00
static CGUIObject *createSliderButtonFrame(CGUIObject *_parent,
2001-07-31 17:57:19 +02:00
int _x,int _y,int _w,int _h,
int _textId,
2001-08-17 17:54:50 +02:00
int *_target,int _min,int _max,
CGUIObject::GUIId _id=CGUIObject::noId);
2000-11-22 23:51:27 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __GUI_GFACTORY_H__ */
/*===========================================================================
end */