Razorbotz RMC 2021-2022 Documentation
Loading...
Searching...
No Matches
InfoItem.hpp
1#include <iostream>
2
3#include <gtkmm.h>
4#include <gdkmm.h>
5
6class InfoItem:public Gtk::Box{
7 private:
8 Gtk::Label* nameLabel;
9 Gtk::Label* valueLabel;
10
11 public:
12 InfoItem(std::string name);
13
14 void setName(std::string name);
15 std::string getName();
16
17 void setValue(bool value);
18 void setValue(int value);
19 void setValue(uint8_t value);
20 void setValue(uint16_t value);
21 void setValue(long value);
22 void setValue(uint32_t value);
23 void setValue(double value);
24 void setValue(uint64_t value);
25 void setValue(float value);
26 void setValue(std::string value);
27
28 bool getValueAsBool();
29 int getValueAsInt();
30 long getValueAsLong();
31 float getValueAsFloat();
32 double getValueAsDouble();
33 std::string getValue();
34 void setBackground(std::string color);
35 void setTextColor(std::string color);
36};