Irrlicht 3D Engine
irr::gui::IGUIWindow Class Reference

Default moveable window GUI element with border, caption and close icons. More...

#include <IGUIWindow.h>

+ Inheritance diagram for irr::gui::IGUIWindow:

List of all members.

Public Member Functions


Detailed Description

Default moveable window GUI element with border, caption and close icons.

This element can create the following events of type EGUI_EVENT_TYPE:
  • EGET_ELEMENT_CLOSED

Definition at line 21 of file IGUIWindow.h.


Constructor & Destructor Documentation

irr::gui::IGUIWindow::IGUIWindow ( IGUIEnvironment environment,
IGUIElement parent,
s32  id,
core::rect< s32 rectangle 
) [inline]

constructor

Definition at line 26 of file IGUIWindow.h.


Member Function Documentation

virtual core::rect<s32> irr::gui::IGUIWindow::getClientRect ( ) const [pure virtual]

Returns the rectangle of the drawable area (without border and without titlebar)

The coordinates are given relative to the top-left position of the gui element.
So to get absolute positions you have to add the resulting rectangle to getAbsolutePosition().UpperLeftCorner.
To get it relative to the parent element you have to add the resulting rectangle to getRelativePosition().UpperLeftCorner. Beware that adding a menu will not change the clientRect as menus are own gui elements, so in that case you might want to subtract the menu area additionally.

virtual IGUIButton* irr::gui::IGUIWindow::getCloseButton ( ) const [pure virtual]

Returns pointer to the close button.

You can hide the button by calling setVisible(false) on the result.

virtual bool irr::gui::IGUIWindow::getDrawBackground ( ) const [pure virtual]

Get if the window background will be drawn.

virtual bool irr::gui::IGUIWindow::getDrawTitlebar ( ) const [pure virtual]

Get if the window titlebar will be drawn.

virtual IGUIButton* irr::gui::IGUIWindow::getMaximizeButton ( ) const [pure virtual]

Returns pointer to the maximize button.

You can hide the button by calling setVisible(false) on the result.

virtual IGUIButton* irr::gui::IGUIWindow::getMinimizeButton ( ) const [pure virtual]

Returns pointer to the minimize button.

You can hide the button by calling setVisible(false) on the result.

virtual bool irr::gui::IGUIWindow::isDraggable ( ) const [pure virtual]

Returns true if the window can be dragged with the mouse, false if not.

virtual void irr::gui::IGUIWindow::setDraggable ( bool  draggable) [pure virtual]

Sets whether the window can be dragged by the mouse.

virtual void irr::gui::IGUIWindow::setDrawBackground ( bool  draw) [pure virtual]

Set if the window background will be drawn.

virtual void irr::gui::IGUIWindow::setDrawTitlebar ( bool  draw) [pure virtual]

Set if the window titlebar will be drawn Note: If the background is not drawn, then the titlebar is automatically also not drawn


The documentation for this class was generated from the following file: