AlpacaLibary  1.63
A closed source C++ bot for OSRS
Widgets.hpp
Go to the documentation of this file.
1 #ifndef WIDGETS_HPP_INCLUDED
2 #define WIDGETS_HPP_INCLUDED
3 
4 #include "../../Game/Interactable/Widget.hpp"
5 #include <functional>
6 #include <cstdint>
7 #include <vector>
8 
9 namespace Widgets
10 {
11  std::vector<std::vector<Interactable::Widget>> GetAll();
12  std::vector<Interactable::Widget> GetAll(std::int32_t Parent);
13  std::vector<Interactable::Widget> GetAll(const std::function<bool (Interactable::Widget&)>& Filter);
14 
15  Interactable::Widget Get(std::int32_t Parent, std::int32_t Child = -1);
16  Interactable::Widget Get(std::int32_t Parent, std::int32_t Child, std::int32_t Grandchild);
17  Interactable::Widget Get(const std::function<bool (Interactable::Widget&)>& Filter);
18 }
19 
20 #endif // WIDGETS_HPP_INCLUDED
Interactable::Widget Get(std::int32_t Parent, std::int32_t Child=-1)
std::vector< std::vector< Interactable::Widget > > GetAll()