gBar/example/main.cpp
2023-09-01 03:19:07 +02:00

13 lines
292 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(monitor);
window.SetMainWidget(std::move(mainWidget));
}
DEFINE_PLUGIN(Create);