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
|
|
|
|
-------- */
|
|
|
|
|
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
|
2000-11-22 23:51:27 +01:00
|
|
|
static void createValueButtonFrame(class CGUIObject *_parent,
|
2000-11-23 18:00:09 +01:00
|
|
|
int _x,int _y,int _w,int _h,
|
2000-11-22 23:51:27 +01:00
|
|
|
int _textId,
|
|
|
|
int *_target,int _value);
|
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
|
|
|
|
static void createCycleButtonFrame(class CGUIObject *_parent,
|
|
|
|
int _x,int _y,int _w,int _h,
|
|
|
|
int _textId,
|
|
|
|
int *_target,int *_data,CGUITextReadout::TextReadoutData *_readoutData);
|
|
|
|
|
2000-11-23 00:03:41 +01:00
|
|
|
// Creates a frame containing a slider button, readout and text label
|
2000-11-22 23:51:27 +01:00
|
|
|
static void createSliderButtonFrame(class CGUIObject *_parent,
|
2000-11-23 18:00:09 +01:00
|
|
|
int _x,int _y,int _w,int _h,
|
2000-11-22 23:51:27 +01:00
|
|
|
int _textId,
|
2000-11-23 18:00:09 +01:00
|
|
|
int *_target,int _min,int _max);
|
2000-11-22 23:51:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#endif /* __GUI_GFACTORY_H__ */
|
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|