3 #include <CEGUI/CEGUI.h>
4 #include <luabind/object.hpp>
5 #include <OgreVector2.h>
6 #include <OISKeyboard.h>
15 class StandardItemWrapper;
28 std::string layoutName
112 static luabind::scope
121 getWindowUnderMouse();
143 std::string layoutName
191 const std::string& text
202 const std::string& text
213 const std::string& image
226 const std::string& parameter,
227 const std::string& property
248 const std::string &text,
257 const std::string &text
266 const std::string &text
276 listWidgetGetFirstSelectedItemText();
279 listWidgetGetFirstSelectedID();
342 const std::string& name
356 const std::string& eventName,
357 CEGUI::Event::Subscriber callback
363 const std::string& eventName,
364 const luabind::object& callback
375 CEGUI::Event::Subscriber callback
381 const luabind::object& callback
513 CEGUIWindow(CEGUI::Window* window,
bool newWindow =
true);
517 CEGUI::Window* m_window =
nullptr;
void destroy() const
Destroys the underlying CEGUI Window.
Definition: CEGUIWindow.cpp:258
void addChild(CEGUIWindow *window)
Adds a child to the window.
Definition: CEGUIWindow.cpp:247
void setSizeAbs(float width, float height)
Sets the windows size.
Definition: CEGUIWindow.cpp:567
void scrollingpaneSetVerticalPosition(float position)
Sets the vertical scroll position.
Definition: CEGUIWindow.cpp:417
void listWidgetAddTextItem(const std::string &text)
Adds a string to the window if it is a ListWidget otherwise throws bad_cast exception.
Definition: CEGUIWindow.cpp:330
void scrollingpaneAddIcon(CEGUIWindow *icon)
Adds an icon vertically to the scrollable pane.
Definition: CEGUIWindow.cpp:423
void moveBehind(const CEGUIWindow &target)
Moves the window behind target window.
Definition: CEGUIWindow.cpp:543
void appendText(const std::string &text)
Appends to the underlying cegui windows text.
Definition: CEGUIWindow.cpp:277
CEGUIWindow createChildWindow(std::string layoutName)
Creates a new windows and adds it to the underlying CEGUI window.
Definition: CEGUIWindow.cpp:236
void playAnimation(std::string name)
Plays an animation by name.
Definition: CEGUIWindow.cpp:587
void show()
Makes the window visible.
Definition: CEGUIWindow.cpp:511
CEGUIWindow getParent() const
Gets the underlying cegui windows parent, wrapped as a CEGUIWindow*.
Definition: CEGUIWindow.cpp:431
void listWidgetResetList()
Clears the list if the window is a ListWidget otherwise throws bad_cast exception.
Definition: CEGUIWindow.cpp:361
void listWidgetUpdateItem(StandardItemWrapper *item, const std::string &text)
Updates an item with the new text.
Definition: CEGUIWindow.cpp:343
void disable()
Disables interaction with the window.
Definition: CEGUIWindow.cpp:499
void setFocus()
Sets focus to the underlying cegui window.
Definition: CEGUIWindow.cpp:505
void moveToBack()
Moves the window behind all other windows.
Definition: CEGUIWindow.cpp:529
void removeChild(CEGUIWindow *window)
Removes a child from the window.
Definition: CEGUIWindow.cpp:252
Definition: CEGUIWindow.h:17
CEGUIWindow getChild(const std::string &name) const
Gets one of the underlying cegui windows children by name, wrapped as a CEGUIWindow*.
Definition: CEGUIWindow.cpp:437
void listWidgetAddStandardItem(StandardItemWrapper *item)
Adds a StandardItem to the window if it is a ListWidget otherwise throws bad_cast exception...
Definition: CEGUIWindow.cpp:299
void setProperty(const std::string ¶meter, const std::string &property)
Sets the underlying windows property.
Definition: CEGUIWindow.cpp:291
void listWidgetAddItem(const std::string &text, int id)
Creates and adds a StandardItem to the window if it is a ListWidget otherwise throws bad_cast excepti...
Definition: CEGUIWindow.cpp:316
bool isNull() const
Returns whether the underlying CEGUI::Window is a nullptr.
Definition: CEGUIWindow.cpp:231
void setImage(const std::string &image)
Sets the underlying windows image property.
Definition: CEGUIWindow.cpp:284
void hide()
Hides the window.
Definition: CEGUIWindow.cpp:517
void moveToFront()
Moves the window in front of all other windows.
Definition: CEGUIWindow.cpp:523
Definition: bullet_to_ogre_system.h:5
Definition: bullet_ogre_conversion.h:6
float scrollingpaneGetVerticalPosition()
Gets the vertical scroll position.
Definition: CEGUIWindow.cpp:411
void registerKeyEventHandler(CEGUI::Event::Subscriber callback) const
Registers an callback for a given keypress CEGUI event.
Definition: CEGUIWindow.cpp:470
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
std::string getText() const
Get the underlying cegui windows text if it has any.
Definition: CEGUIWindow.cpp:263
void moveInFront(const CEGUIWindow &target)
Moves the window in front of target window.
Definition: CEGUIWindow.cpp:535
void progressbarSetProgress(float progress)
Sets the progress of the progressbar.
Definition: CEGUIWindow.cpp:406
std::string getName()
Returns the windows internal name.
Definition: CEGUIWindow.cpp:582
void setText(const std::string &text)
Sets the underlying cegui windows text.
Definition: CEGUIWindow.cpp:269
Definition: script_wrappers.h:18
void enable()
Enables the window, allowing interaction.
Definition: CEGUIWindow.cpp:493
void setPositionAbs(float x, float y)
Sets the windows position.
Definition: CEGUIWindow.cpp:551
static luabind::scope luaBindings()
Lua bindings.
Definition: CEGUIWindow.cpp:170
void registerEventHandler(const std::string &eventName, CEGUI::Event::Subscriber callback) const
Registers an callback for a given generic CEGUI event.
Definition: CEGUIWindow.cpp:445
virtual ~CEGUIWindow()
Destructor.
Definition: CEGUIWindow.cpp:165
CEGUIWindow(std::string layoutName)
Constructor.
Definition: CEGUIWindow.cpp:148