gBar/example/main.cpp

14 lines
292 B
C++
Raw Permalink Normal View History

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