Added SDK

This commit is contained in:
Andrew Zambazos
2026-06-11 14:01:22 +12:00
commit c0395a49bd
2155 changed files with 451005 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#pragma once
#include <AppCore/AppCore.h>
#include <memory>
#ifdef UL_EMBED_FILES
#include "platform/EmbeddedFileSystem.h"
#endif
using namespace ultralight;
class UI;
class Browser {
public:
Browser(bool use_gpu, bool force_repaint, bool show_stats);
~Browser();
void Run();
void SetTitle(const String& title);
RefPtr<App> app() { return app_; }
RefPtr<Window> window() { return window_; }
protected:
RefPtr<App> app_;
RefPtr<Window> window_;
std::unique_ptr<UI> ui_;
#ifdef UL_EMBED_FILES
std::unique_ptr<EmbeddedFileSystem> file_system_;
#endif
};