mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 19:22:50 +00:00
13 lines
266 B
C++
13 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);
|