基本布局

This commit is contained in:
2025-03-17 00:15:36 +08:00
parent f288752e38
commit a3a784038f
35 changed files with 2282 additions and 182 deletions

View File

@@ -4,6 +4,7 @@
#include "mirage.h"
#include "core/window/render_window.h"
#include "widget/compound_widget/mbutton.h"
int main(int argc, char* argv[]) {
mirage_app app;
@@ -12,7 +13,11 @@ int main(int argc, char* argv[]) {
mirage_window window;
window.create_window(800, 600, L"Hello, World!");
window.show();
app.get_render_context()->setup_surface(&window);
mirage_app::get_render_context()->setup_surface(&window);
auto button = std::make_shared<mbutton>();
window.set_content(button);
app.run();
return 0;