Razorbotz RMC 2021-2022 Documentation
Loading...
Searching...
No Matches
InfoFrame.hpp
1#include <iostream>
2#include <vector>
3#include <string>
4#include <memory>
5
6#include <gtkmm.h>
7#include <gdkmm.h>
8
9#include <InfoItem.hpp>
10
11class InfoFrame:public Gtk::Frame{
12public:
13 Gtk::Frame* frame;
14 Gtk::Box* contentsBox;
15
16 std::vector<std::shared_ptr<InfoItem>> itemList;
17
18 public:
19 InfoFrame(std::string frameName);
20 void addItem(std::string itemName);
21 void setItem(std::string itemName, std::string itemValue);
22 void setItem(std::string itemName, bool itemValue);
23 void setItem(std::string itemName, int itemValue);
24 void setItem(std::string itemName, long itemValue);
25 void setItem(std::string itemName, float itemValue);
26 void setItem(std::string itemName, double itemValue);
27 void setItem(std::string itemName, uint8_t itemValue);
28 void setItem(std::string itemName, uint16_t itemValue);
29 void setItem(std::string itemName, uint32_t itemValue);
30 void setItem(std::string itemName, uint64_t itemValue);
31 void setBackground(std::string itemName, std::string color);
32 void setTextColor(std::string itemName, std::string color);
33};