mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-24 12:12:09 +00:00
13 lines
292 B
C++
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);
|