AlpacaLibary  1.63
A closed source C++ bot for OSRS
Widget.hpp
Go to the documentation of this file.
1 #ifndef INTERACTABLEWIDGET_HPP_INCLUDED
2 #define INTERACTABLEWIDGET_HPP_INCLUDED
3 
4 #include "../../Core/Classes/Widget.hpp"
5 #include "../../Core/Classes/ItemInfo.hpp"
6 #include "../../Core/Types/Tile.hpp"
7 #include "../../Core/Types/Point.hpp"
8 #include "../../Core/Types/Box.hpp"
9 #include "../../Core/Types/Convex.hpp"
10 #include "../../Core/Input.hpp"
11 #include <cstdint>
12 #include <functional>
13 
14 namespace Interactable
15 {
16  class Widget : public Internal::Widget
17  {
18  public:
20 
21  Widget() = default;
22  Widget(Widget&& Obj) = default;
23  Widget(const Widget& Obj) = default;
24  Widget& operator=(Widget&& Obj) = default;
25  Widget& operator=(const Widget& Obj) = default;
26 
27  bool IsHidden() const;
28  bool IsVisible() const;
29  std::vector<Interactable::Widget> GetInteractableChildren() const;
30  std::vector<Interactable::Widget> GetDynamicInteractableChildren() const;
31  std::vector<Interactable::Widget> GetStaticInteractableChildren() const;
32  std::vector<Interactable::Widget> GetNestedInteractableChildren() const;
33  std::vector<std::int32_t> GetNormalizedItemIDs() const;
34 
35  Box GetBox() const;
36  Point GetPoint() const;
37  Point GetPoint(double PointGenAccuracy) const;
38 
39  bool Hover() const;
40  bool Interact(const Button& B = BUTTON_LEFT) const;
41  bool Interact(const std::string& Option) const;
42  bool Interact(const std::vector<std::string>& Options) const;
43  bool Interact(const std::function<bool (const Box&)>& InteractMethod) const;
44  };
45 }
46 
47 #endif // INTERACTABLEWIDGET_HPP_INCLUDED
Button
Definition: Input.hpp:16
@ BUTTON_LEFT
Definition: Input.hpp:18
Definition: Box.hpp:11
bool Interact(const std::function< bool(const Box &)> &InteractMethod) const
Widget(const Widget &Obj)=default
Point GetPoint() const
bool IsHidden() const
bool IsVisible() const
Widget(const Internal::Widget &W)
std::vector< Interactable::Widget > GetInteractableChildren() const
bool Interact(const std::string &Option) const
std::vector< Interactable::Widget > GetDynamicInteractableChildren() const
bool Interact(const std::vector< std::string > &Options) const
bool Interact(const Button &B=BUTTON_LEFT) const
std::vector< Interactable::Widget > GetNestedInteractableChildren() const
Widget & operator=(const Widget &Obj)=default
Widget(Widget &&Obj)=default
Point GetPoint(double PointGenAccuracy) const
Widget & operator=(Widget &&Obj)=default
bool Hover() const
std::vector< std::int32_t > GetNormalizedItemIDs() const
std::vector< Interactable::Widget > GetStaticInteractableChildren() const
Definition: Point.hpp:10