AlpacaLibrary/Include/Game/Tools/Widgets.hpp

25 lines
755 B
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef WIDGETS_HPP_INCLUDED
#define WIDGETS_HPP_INCLUDED
2018-05-10 01:08:38 +00:00
#include "../../Game/Interactable/Widget.hpp"
2017-12-25 23:49:48 +00:00
#include <functional>
#include <cstdint>
#include <vector>
/** @addtogroup Tools
* @{ */
2018-12-27 18:17:09 +00:00
namespace Widgets
2017-12-25 23:49:48 +00:00
{
2018-12-27 18:17:09 +00:00
std::vector<std::vector<Interactable::Widget>> GetAll();
std::vector<Interactable::Widget> GetAll(std::int32_t Parent);
std::vector<Interactable::Widget> GetAll(const std::function<bool (Interactable::Widget&)>& Filter);
2018-03-09 20:10:43 +00:00
2018-12-27 18:17:09 +00:00
Interactable::Widget Get(std::int32_t Parent, std::int32_t Child = -1);
Interactable::Widget Get(std::int32_t Parent, std::int32_t Child, std::int32_t Grandchild);
Interactable::Widget Get(const std::function<bool (Interactable::Widget&)>& Filter);
2018-12-31 21:52:58 +00:00
}
2017-12-25 23:49:48 +00:00
/** @} */
#endif // WIDGETS_HPP_INCLUDED