Added draw function to screens

This commit is contained in:
Yousef Khadadeh 2026-04-17 19:32:49 +03:00
parent 5a0086c4ea
commit db6dffb4ee
10 changed files with 46 additions and 13 deletions

View file

@ -1 +1,20 @@
#include "FileSelectScreen.hpp"
#include "../MainProgram.hpp"
#include "../GUIHolder.hpp"
#include "../GUIStuff/ElementHelpers/TextLabelHelpers.hpp"
FileSelectScreen::FileSelectScreen(MainProgram& m): Screen(m) {}
void FileSelectScreen::gui_layout_run() {
using namespace GUIStuff;
using namespace ElementHelpers;
CLAY_AUTO_ID({
.layout = {}
}) {
text_label(main.g.gui, "File select screen");
}
}
void FileSelectScreen::draw(SkCanvas* canvas) {
canvas->clear(SkColor4f{0.0f, 0.0f, 0.0f, 0.0f});
}