基本布局
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user