gBar/example/main.cpp

13 lines
273 B
C++
Raw Permalink Normal View History

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