hollyhock
button.hpp
1 #pragma once
2 #include <stdint.h>
3 #include "util.hpp"
4 
5 class GUIButton : public GUIElement {
6 public:
7  enum Flag : int {
9  FlagEnabled = 1 << 15
10  };
11 
12  GUIButton(
13  uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY,
14  const char *text,
15  uint16_t eventID
16  );
17  GUIButton(
18  uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY,
19  const char *text,
20  uint16_t eventID, int flags
21  );
22 };
23 
25 extern "C"
26 void *GUIButton_ctor(
27  void *button,
28  uint16_t bounds[4],
29  const char *text,
30  uint16_t eventID, int unk0, int unk1
31 );
Definition: button.hpp:5
Flag
Definition: button.hpp:7
@ FlagEnabled
Allows the button to be pressed.
Definition: button.hpp:9
GUIButton(uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY, const char *text, uint16_t eventID)
Definition: button.cpp:17
Definition: util.hpp:78