2008-05-22 04:51:37 -07:00
|
|
|
// Copyright (C) 2002-2008 Nikolaus Gebhardt
|
2007-05-20 11:03:49 -07:00
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __C_GUI_MODAL_SCREEN_H_INCLUDED__
|
|
|
|
#define __C_GUI_MODAL_SCREEN_H_INCLUDED__
|
|
|
|
|
2007-07-25 22:30:19 -07:00
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
#ifdef _IRR_COMPILE_WITH_GUI_
|
|
|
|
|
2007-05-20 11:03:49 -07:00
|
|
|
#include "IGUIElement.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace gui
|
|
|
|
{
|
|
|
|
|
|
|
|
class CGUIModalScreen : public IGUIElement
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
//! constructor
|
|
|
|
CGUIModalScreen(IGUIEnvironment* environment, IGUIElement* parent, s32 id);
|
|
|
|
|
|
|
|
//! called if an event happened.
|
2007-09-16 16:41:55 -07:00
|
|
|
virtual bool OnEvent(const SEvent& event);
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! Removes a child.
|
|
|
|
virtual void removeChild(IGUIElement* child);
|
|
|
|
|
2007-07-07 00:03:54 -07:00
|
|
|
//! Adds a child
|
|
|
|
virtual void addChild(IGUIElement* child);
|
|
|
|
|
|
|
|
|
2007-05-20 11:03:49 -07:00
|
|
|
//! draws the element and its children
|
|
|
|
virtual void draw();
|
|
|
|
|
|
|
|
//! Updates the absolute position.
|
|
|
|
virtual void updateAbsolutePosition();
|
|
|
|
|
|
|
|
//! Writes attributes of the element.
|
2007-09-14 15:25:59 -07:00
|
|
|
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! Reads attributes of the element
|
|
|
|
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
u32 MouseDownTime;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // end namespace gui
|
|
|
|
} // end namespace irr
|
|
|
|
|
2007-07-25 22:30:19 -07:00
|
|
|
#endif // _IRR_COMPILE_WITH_GUI_
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2007-07-25 22:30:19 -07:00
|
|
|
#endif
|