mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-24 12:12:09 +00:00
c27912c8a5
Plugins are used to extend the functionality, without needing to poke around in the original source code.
12 lines
266 B
C++
12 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);
|