Loading...
Searching...
No Matches
IGUIWindow.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_WINDOW_H_INCLUDED__
#define __I_GUI_WINDOW_H_INCLUDED__
#include "IGUIElement.h"
#include "EMessageBoxFlags.h"
namespace irr
{
namespace gui
{
class IGUIButton;
class IGUIWindow : public IGUIElement
{
public:
IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {}
virtual IGUIButton* getCloseButton() const = 0;
virtual IGUIButton* getMinimizeButton() const = 0;
virtual IGUIButton* getMaximizeButton() const = 0;
virtual bool isDraggable() const = 0;
virtual void setDraggable(bool draggable) = 0;
virtual void setDrawBackground(bool draw) = 0;
virtual bool getDrawBackground() const = 0;
virtual void setDrawTitlebar(bool draw) = 0;
virtual bool getDrawTitlebar() const = 0;
virtual core::rect<s32> getClientRect() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif
EMessageBoxFlags.h
IGUIElement.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIButton
GUI Button interface.
Definition IGUIButton.h:59
irr::gui::IGUIElement::draw
virtual void draw()
Draws the element and its children.
Definition IGUIElement.h:312
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUIWindow::getMinimizeButton
virtual IGUIButton * getMinimizeButton() const =0
Returns pointer to the minimize button.
irr::gui::IGUIWindow::isDraggable
virtual bool isDraggable() const =0
Returns true if the window can be dragged with the mouse, false if not.
irr::gui::IGUIWindow::getClientRect
virtual core::rect< s32 > getClientRect() const =0
Returns the rectangle of the drawable area (without border and without titlebar).
irr::gui::IGUIWindow::getDrawTitlebar
virtual bool getDrawTitlebar() const =0
Get if the window titlebar will be drawn.
irr::gui::IGUIWindow::getDrawBackground
virtual bool getDrawBackground() const =0
Get if the window background will be drawn.
irr::gui::IGUIWindow::getMaximizeButton
virtual IGUIButton * getMaximizeButton() const =0
Returns pointer to the maximize button.
irr::gui::IGUIWindow::setDrawBackground
virtual void setDrawBackground(bool draw)=0
Set if the window background will be drawn.
irr::gui::IGUIWindow::IGUIWindow
IGUIWindow(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIWindow.h:26
irr::gui::IGUIWindow::setDrawTitlebar
virtual void setDrawTitlebar(bool draw)=0
irr::gui::IGUIWindow::setDraggable
virtual void setDraggable(bool draggable)=0
Sets whether the window can be dragged by the mouse.
irr::gui::IGUIWindow::getCloseButton
virtual IGUIButton * getCloseButton() const =0
Returns pointer to the close button.
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUIET_WINDOW
@ EGUIET_WINDOW
A window.
Definition EGUIElementTypes.h:86
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0