#include "Slot.hpp" #include "Toolkit.hpp" #include #include #include #include #include using namespace std; using namespace net::lliurex; using namespace net::lliurex::llxdo; class Test : public Slot { public: Test() { width=235; height=110; type=3; } void Draw(cairo_t * cairo) { long memfree = system::GetFreeSystemMemory(); long memtotal = system::GetSystemMemory(); cairo_text_extents_t te; cairo_font_extents_t fe; stringstream ss; float total = ((float)memfree/(float)memtotal); ss<<"Ram: "< Serialize() { vector conf; return conf; } }; /* visible symbols */ const char * name = "net.lliurex.llxdo.plugins.test"; extern "C" Slot * get_instance() { Test * test = new Test(); return test; }