![]() |
Middle Europe Productions Library
alpha 1.3.3
|
A basic class for the BaseWindow. More...
#include <BaseWindow.h>
Public Types | |
| enum | Status { Status::LowEntrance = 0, Status::Entrance = -1, Status::Exit = -2, Status::LowExit = -3, Status::InProgress = -4, Status::Main = -5, Status::NullAction = -6 } |
Public Member Functions | |
| BaseWindow (const unsigned int ID) | |
| BaseWindow (const unsigned int ID, const sf::View &view, const sf::View &master) | |
| virtual bool | render (sf::RenderWindow &Window) |
| void | onResize (const sf::Vector2u &new_res) |
| virtual void | update (sf::Time ¤tTime) |
| virtual void | beforeUpdate (sf::Time &) |
| virtual void | updateRunning (sf::Time ¤tTime) |
| virtual void | updateEntrance (sf::Time ¤tTime) |
| virtual void | updateExit (sf::Time ¤tTime) |
| virtual void | afterUpdate (sf::Time &) |
| virtual void | handleEvent (sf::RenderWindow &Window, sf::Event &event) |
| const Status & | getStatus () |
| void | changeStatus (const Status status) |
| void | newObject (DataPackage object) |
| void | newObject (MEP::Drawable *object) |
| void | newObject (MEP::Drawable &object) |
| template<typename ... Values> | |
| void | newObjects (Values &&... values) |
| void | debugOutput (std::ostream &out) |
| unsigned int | getID () const |
| bool | operator== (const unsigned int ID) const |
| bool | operator== (const BaseWindow &x) const |
| virtual | ~BaseWindow () |
Public Member Functions inherited from MEPtools::GroupManager< MEPtools::ToRender, MEPtools::ToRender, std::list< MEPtools::ToRender > > | |
| GroupManager ()=default | |
| bool | _insert (MEP::U_int32 ID, MEP::U_int32 group, MEPtools::ToRender value) |
| MEPtools::ToRender & | _get (MEP::U_int32 ID, MEP::U_int32 group) const |
| std::list< MEPtools::ToRender > & | _getGroup (MEP::U_int32 group) |
| bool | _deleteGroup (MEP::U_int32 group) |
| bool | _deleteElement (MEP::U_int32 ID, MEP::U_int32 group) |
| void | _execute (Method method) |
| bool | _execute (Method method, MEP::U_int32 group) |
| void | _execute (Method method) const |
| bool | _execute (Method method, MEP::U_int32 group) const |
| void | _debugOutput (std::ostream &out, const char *before="", const char *after="") const |
| void | _debugOutput (std::ostream &out, Out method) const |
| unsigned int | _size () const |
| bool | _empty () const |
| void | _clear () |
Public Member Functions inherited from MEP::WindowView | |
| WindowView ()=default | |
| WindowView (const sf::View &view, const sf::View &master) | |
| void | grabWindow () |
| void | releaseWindow () |
| void | moveViewChange (const sf::Vector2i &change) |
| bool | isGrabbed () const |
| bool | customView () const |
| const sf::View & | getView () const |
| void | setView (const sf::View &view) |
| virtual void | moveView (sf::RenderWindow &Window) |
| const sf::View & | getMasterView () const |
Additional Inherited Members | |
Protected Attributes inherited from MEP::WindowView | |
| sf::Vector2i | m_windowPossChange |
| bool | m_grabbedWindow = false |
| sf::View | m_view |
| const sf::View * | m_appView = nullptr |
| bool | isCustomViewEnabled = false |
A basic class for the BaseWindow.
All of the Windows added to the MEP::Template::Application are expected to be a MEP::BaseWindow objects.
|
strong |
| Enumerator | |
|---|---|
| LowEntrance | In this state all of the MEP::Animation with RunAtLowEntry or RunAtLowEntryAndEnd are activated. Then window enters InProgress state. |
| Entrance | In this state all of the MEP::Animation with RunAtEntry or RunAtEntryAndEnd are activated. Then window enters Main state. |
| Exit | In this state all of the MEP::Objects with RunAtEnd or RunAtEntryAndEnd are activated and Window wait for them to finish. |
| LowExit | In this state all of the MEP::Animation with RunAtLowEntry or RunAtLowEntryAndEnd are activated and Window wait for them to finish. |
| InProgress | In this state window is being rendered. |
| Main | In this state window is being rendered and events from it are handled. |
| NullAction | In this state window is not doing anything. |
|
inline |
Constructor of a BaseWindow
| [in] | id | : Window identifier |
|
inline |
Constructor of a BaseWindow
| [in] | id | : Window identifier @patam[in] view : Input view of the window. @patam[in] master : Main window view. |
|
inlinevirtual |
|
inlinevirtual |
If you dont want to ovveride update just use this function. To update things after update call.
| [in] | currontTime | : Current global time. |
Reimplemented in MEP::Template::Loading.
|
inlinevirtual |
If you dont want to ovveride update just use this function. To update things before update call.
| [in] | currontTime | : Current global time. |
|
inline |
Changes the status of a window.
| [in] | status | : MEP::Status |
|
inline |
|
inline |
Outputs an ID of a MEP::Window::BaseWindow
|
inline |
Outputs the status of a window.
|
inlinevirtual |
Base handle events method.
| [in] | Window | : sf::RenderWindow. |
| [in] | event | : sf::Event |
Reimplemented in MEP::Template::Hub.
|
inline |
Adds a new MEP::Drawable to the main scope.
| [in] | MEP::Drawable* |
|
inline |
Adds a new MEP::Drawable to the main scope.
| [in] | MEP::Drawable& |
|
inline |
Adds a new MEP::Drawable to the main scope.
| [in] | MEP::Drawable* |
|
inline |
Deletes all MEP::Objects in the MEP::Window::BaseWindow
|
inline |
Updates the position when window is resized.
|
inline |
|
inline |
|
inlinevirtual |
Base render method.
| [in] | Window | : RenderWindow object. |
|
inlinevirtual |
Base update method.
| [in] | currontTime | : Current global time. |
|
inlinevirtual |
This is a classic update it executes if window has Entrance tag.
| [in] | currontTime | : Current global time. |
|
inlinevirtual |
This is a classic update it executes if window has Exit tag.
| [in] | currontTime | : Current global time. |
|
inlinevirtual |
This is a classic update it executes if window has Main or InProgress tag.
| [in] | currontTime | : Current global time. |