- [NEW] menu i menu::popup

- [WIP] toolbar
- [WIP] treeview
This commit is contained in:
2025-11-17 22:31:48 +01:00
parent 3ed64a471a
commit 8028d0533b
7 changed files with 186 additions and 35 deletions

26
source/toolbar.cpp Normal file
View File

@@ -0,0 +1,26 @@
#include "toolbar.h"
#include "japi/draw.h"
namespace toolbar
{
const int top = 24;
void start()
{
draw::setColor(0xff3c3c3c);
draw::fillrect(0,top,draw::getWindowSize().x,24);
draw::setColor(0xff565656);
draw::line(0, top, draw::getWindowSize().x, top);
}
bool button(SDL_Texture* surf, const int sx, const int sy)
{
}
bool pushbutton(SDL_Texture* surf, const int sx, const int sy, const bool pushed)
{
}
}