#ifndef __C_GUI_MODAL_SCREEN_H_INCLUDED__
#define __C_GUI_MODAL_SCREEN_H_INCLUDED__
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUIElement.h"
namespace irr
{
namespace gui
{
class CGUIModalScreen : public IGUIElement
{
public:
CGUIModalScreen(IGUIEnvironment* environment, IGUIElement* parent, s32 id);
virtual bool OnEvent(const SEvent& event);
virtual void removeChild(IGUIElement* child);
virtual void addChild(IGUIElement* child);
virtual void draw();
virtual void updateAbsolutePosition();
virtual bool isVisible() const;
virtual bool isPointInside(const core::position2d<s32>& point) const;
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
protected:
virtual bool canTakeFocus(IGUIElement* target) const;
private:
u32 MouseDownTime;
};
}
}
#endif
#endif