SBSPSS/source/gui/gfactory.h
2001-08-17 15:54:50 +00:00

83 lines
2.3 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_GUI_H__
#include "gui\gui.h"
#endif
#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(CGUIObject *_parent,
int _x,int _y,int _w,int _h,
int _textId,
int *_target,int _value,
CGUIObject::GUIId _id=CGUIObject::noId);
// Creates a frame containing a cycle button, text readout and text label
static CGUIObject *createCycleButtonFrame(CGUIObject *_parent,
int _x,int _y,int _w,int _h,
int _textId,
int *_target,int *_data,CGUITextReadout::TextReadoutData *_readoutData,
CGUIObject::GUIId _id=CGUIObject::noId);
// Creates a frame containing a slider button, readout and text label
static CGUIObject *createSliderButtonFrame(CGUIObject *_parent,
int _x,int _y,int _w,int _h,
int _textId,
int *_target,int _min,int _max,
CGUIObject::GUIId _id=CGUIObject::noId);
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __GUI_GFACTORY_H__ */
/*===========================================================================
end */