view LightClone/Source/GuiDialog.h @ 72:9a9be3d8632e

Remove reference to World.h
author koryspansel
date Tue, 11 Oct 2011 13:49:40 -0700
parents d0ce73ced12e
children
line wrap: on
line source

/*
 * GuiButton
 */

#ifndef __GUIDIALOG_H__
#define __GUIDIALOG_H__

#include "Core.h"
#include "GuiImage.h"

/*
 * GuiResultArguments
 */
struct GuiResultArguments : public GuiEventArguments
{
	/*
	 * nResult
	 */
	uint32 nResult;

	/*
	 * GuiResultArguments
	 */
	GuiResultArguments(GuiElement* pSource, uint32 nResultCode) : GuiEventArguments(pSource), nResult(nResultCode)
	{
	}
};

/*
 * GuiDialog
 */
class GuiDialog : public GuiImage
{
public:

	/*
	 * EventResult
	 */
	static const char* EventResult;

public:

	/*
	 * GuiDialog
	 */
	GuiDialog();

	/*
	 * Show
	 */
	ErrorCode Show();

protected:

	/*
	 * Close
	 */
	void Close(uint32 nResult);
};

#endif //__GUIDIALOG_H__