gBar/example/main.cpp
scorpion-26 c27912c8a5 Add Plugin system
Plugins are used to extend the functionality, without needing to poke around in
the original source code.
2023-01-28 15:08:12 +01:00

12 lines
266 B
C++

#include <gBar/Common.h>
#include <gBar/Window.h>
void Create(Window& window, int32_t monitor)
{
auto mainWidget = Widget::Create<Text>();
mainWidget->SetText("Hello, World!");
window = Window(std::move(mainWidget), monitor);
}
DEFINE_PLUGIN(Create);