hollyhock
longLabel.hpp
1 #pragma once
2 #include "util.hpp"
3 
5 struct GUILongLabel_Wrapped_VTable {
6  VTABLE_FAKE_ENTRY(9, 0);
7 
8  VTableFunction<void> Refresh;
9 
10  VTABLE_FAKE_ENTRY(33, 1);
11 
12  // Args: text
13  VTableFunction<void, const char *> SetText;
14 };
15 
17 struct GUILongLabel_Wrapped {
18  uint8_t unknown0[0x4C];
19 
20  struct GUILongLabel_Wrapped_VTable *vtable;
21 
22  uint8_t unknown1[0x5C];
23 };
24 static_assert(sizeof(struct GUILongLabel_Wrapped) == 0xAC);
25 
26 class GUILongLabel : public GUIElement {
27 public:
29  uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY,
30  const char *text
31  );
32 
33  void SetText(const char *text);
34  void Refresh();
35 };
36 
38 extern "C"
39 void *GUILongLabel_ctor(void *longLabel, uint16_t bounds[4], int unk0, int unk1, const char *text, int unk2);
Definition: util.hpp:78
Definition: longLabel.hpp:26
void SetText(const char *text)
Definition: longLabel.cpp:23
GUILongLabel(uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY, const char *text)
Definition: longLabel.cpp:10
void Refresh()
Definition: longLabel.cpp:33