SBSPSS/source/gui/gfactory.h
2001-07-31 15:57:19 +00:00

76 lines
2.1 KiB
C++

/*=========================================================================
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
-------- */
#ifndef __GUI_GREADOUT_H__
#include "gui\greadout.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CGUIFactory
{
public:
// Creates a frame containing a value button with text label
static CGUIObject *createValueButtonFrame(class CGUIObject *_parent,
int _x,int _y,int _w,int _h,
int _textId,
int *_target,int _value);
// Creates a frame containing a cycle button, text readout and text label
static CGUIObject *createCycleButtonFrame(class CGUIObject *_parent,
int _x,int _y,int _w,int _h,
int _textId,
int *_target,int *_data,CGUITextReadout::TextReadoutData *_readoutData);
// Creates a frame containing a slider button, readout and text label
static CGUIObject *createSliderButtonFrame(class CGUIObject *_parent,
int _x,int _y,int _w,int _h,
int _textId,
int *_target,int _min,int _max);
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __GUI_GFACTORY_H__ */
/*===========================================================================
end */