Jimcpp 2.1.0
Jimcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIWindow.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in jimcpp/jimcpp.hpp
4
5#ifndef JPP_I_GUI_WINDOW_HPP_INCLUDED
6#define JPP_I_GUI_WINDOW_HPP_INCLUDED
7
8#include <jimcpp/core/engine/IGUIElement.hpp>
9#include <jimcpp/core/engine/EMessageBoxFlags.hpp>
10
11namespace jpp
12{
13namespace gui
14{
15 class IGUIButton;
16
18
21 class IGUIWindow : public IGUIElement
22 {
23 public:
24
26 IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
27 : IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {}
28
30
31 virtual IGUIButton* getCloseButton() const = 0;
32
34
35 virtual IGUIButton* getMinimizeButton() const = 0;
36
38
39 virtual IGUIButton* getMaximizeButton() const = 0;
40
42 virtual bool isDraggable() const = 0;
43
45 virtual void setDraggable(bool draggable) = 0;
46
48 virtual void setDrawBackground(bool draw) = 0;
49
51 virtual bool getDrawBackground() const = 0;
52
55 virtual void setDrawTitlebar(bool draw) = 0;
56
58 virtual bool getDrawTitlebar() const = 0;
59
61
66 virtual core::rect<s32> getClientRect() const = 0;
67 };
68
69
70} // end namespace gui
71} // end namespace jpp
72
73#endif
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
GUI Button interface.
Definition IGUIButton.hpp:110
Base class of all GUI elements.
Definition IGUIElement.hpp:24
virtual void draw()
Draws the element and its children.
Definition IGUIElement.hpp:331
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Default moveable window GUI element with border, caption and close icons.
Definition IGUIWindow.hpp:22
IGUIWindow(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIWindow.hpp:26
virtual void setDrawBackground(bool draw)=0
Set if the window background will be drawn.
virtual void setDrawTitlebar(bool draw)=0
virtual bool getDrawBackground() const =0
Get if the window background will be drawn.
virtual bool isDraggable() const =0
Returns true if the window can be dragged with the mouse, false if not.
virtual bool getDrawTitlebar() const =0
Get if the window titlebar will be drawn.
virtual core::rect< s32 > getClientRect() const =0
Returns the rectangle of the drawable area (without border and without titlebar)
virtual IGUIButton * getMaximizeButton() const =0
Returns pointer to the maximize button.
virtual void setDraggable(bool draggable)=0
Sets whether the window can be dragged by the mouse.
virtual IGUIButton * getMinimizeButton() const =0
Returns pointer to the minimize button.
virtual IGUIButton * getCloseButton() const =0
Returns pointer to the close button.
@ EGUIET_WINDOW
A window.
Definition EGUIElementTypes.hpp:86
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Jimcpp    @cppfx.xyz

K