hollyhock
label.hpp
1 #pragma once
2 #include <stdint.h>
3 #include "util.hpp"
4 
5 class GUILabel : public GUIElement {
6 public:
7  enum Flag : int {
9  FlagBackground = 1 << 0,
10 
16  FlagSelectable = 1 << 15
17  };
18 
19  GUILabel(int x, int y, const char *text);
20  GUILabel(
21  int x, int y,
22  const char *text,
23  int flags,
24  uint16_t *textColor, uint16_t *backgroundColor
25  );
26  GUILabel(
27  int x, int y,
28  const char *text,
29  int flags,
30  uint16_t *textColor, uint16_t *backgroundColor,
31  bool showShadow, uint16_t shadowColor
32  );
33 };
34 
36 extern "C"
37 void *GUILabel_ctor(
38  void *label,
39  int x, int y,
40  const char *text,
41  int unknown0,
42  int flags,
43  void *font,
44  uint16_t *textColor, uint16_t *backgroundColor,
45  bool showShadow, uint16_t shadowColor,
46  int unknown1
47 );
Definition: util.hpp:78
Definition: label.hpp:5
GUILabel(int x, int y, const char *text)
Definition: label.cpp:10
Flag
Definition: label.hpp:7
@ FlagBackground
Enables displaying the background color of the label.
Definition: label.hpp:9
@ FlagSelectable
Definition: label.hpp:16