zengine-gewi/include/GewiWidgetList.h
2003-05-19 23:56:05 +00:00

61 lines
1.6 KiB
C++
Executable File

/*******************************************************************************
This file is Part of the Gewi GUI Library for ZEngine.
Gewi and ZEngine Copyright (C) 2002, 2003 James Turk
Licensed under a BSD-style license. (see licensing.txt)
The maintainer of this library is James Turk (james@conceptofzero.net)
this library is found at the home of ZEngine http://zengine.sourceforge.net
*******************************************************************************/
/*!
\file GewiWidgetList.h
\brief Definition file for WidgetList.
Definition file for WidgetList, a list of widgets used by GewiEngine and GContainers.
<br>$Id: GewiWidgetList.h,v 1.3 2003/05/19 23:56:05 cozman Exp $<br>
\author James Turk
**/
#ifndef __gewiwidgetlist_h__
#define __gewiwidgetlist_h__
#include "GewiIncludes.h"
namespace Gewi
{
class GWidget;
class WidgetNode
{
public:
WidgetNode();
GWidget *widget;
WidgetNode *prev;
WidgetNode *next;
};
class WidgetList
{
private:
WidgetNode *mWidgetList;
WidgetNode *mClick;
void DeleteWidgetMem(WidgetNode *node);
public:
WidgetList();
void AddWidget(WidgetNode *node);
void DeleteWidget(GWidget *widget);
void DeleteWidgets();
void Message(SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch);
void FitParent();
void ShowWidgets();
};
}
#endif //__gewiwidgetlist_h__