AlpacaLibrary/Include/Game/Tools/Widgets.hpp

27 lines
831 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
* @{ */
class Widgets
{
public:
2018-03-09 20:10:43 +00:00
2018-05-10 01:08:38 +00:00
static std::vector<std::vector<Interactable::Widget>> GetAll();
static std::vector<Interactable::Widget> GetAll(std::int32_t Parent);
static std::vector<Interactable::Widget> GetAll(const std::function<bool (Interactable::Widget&)>& Filter);
2017-12-25 23:49:48 +00:00
2018-05-10 01:08:38 +00:00
static Interactable::Widget Get(std::int32_t Parent, std::int32_t Child = -1);
static Interactable::Widget Get(std::int32_t Parent, std::int32_t Child, std::int32_t Grandchild);
static Interactable::Widget Get(const std::function<bool (Interactable::Widget&)>& Filter);
2017-12-25 23:49:48 +00:00
};
/** @} */
#endif // WIDGETS_HPP_INCLUDED