Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIElementFactory.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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_GUI_ELEMENT_FACTORY_HPP_INCLUDED
6#define NIRT_I_GUI_ELEMENT_FACTORY_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/EGUIElementTypes.hpp>
10
11namespace nirt
12{
13
14namespace gui
15{
16 class IGUIElement;
17
19
27 {
28 public:
29
31
35
37
40 virtual IGUIElement* addGUIElement(const c8* typeName, IGUIElement* parent=0) = 0;
41
44
46
49
51
53 virtual const c8* getCreateableGUIElementTypeName(s32 idx) const = 0;
54
56
59 };
60
61
62} // end namespace gui
63} // end namespace nirt
64
65#endif // NIRT_I_GUI_ELEMENT_FACTORY_HPP_INCLUDED
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface making it possible to dynamically create GUI elements.
Definition IGUIElementFactory.hpp:27
virtual IGUIElement * addGUIElement(EGUI_ELEMENT_TYPE type, IGUIElement *parent=0)=0
adds an element to the gui environment based on its type id
virtual IGUIElement * addGUIElement(const c8 *typeName, IGUIElement *parent=0)=0
adds a GUI element to the GUI Environment based on its type name
virtual s32 getCreatableGUIElementTypeCount() const =0
Get amount of GUI element types this factory is able to create.
virtual const c8 * getCreateableGUIElementTypeName(s32 idx) const =0
Get type name of a creatable GUI element type by index.
virtual const c8 * getCreateableGUIElementTypeName(EGUI_ELEMENT_TYPE type) const =0
returns type name of a creatable GUI element
virtual EGUI_ELEMENT_TYPE getCreateableGUIElementType(s32 idx) const =0
Get type of a creatable element type.
Base class of all GUI elements.
Definition IGUIElement.hpp:24
EGUI_ELEMENT_TYPE
List of all basic Nirtcpp GUI elements.
Definition EGUIElementTypes.hpp:18
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
char c8
8 bit character variable.
Definition irrTypes.hpp:37

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print