24 lines
499 B
C++
24 lines
499 B
C++
//
|
|
// Created by Administrator on 25-2-26.
|
|
//
|
|
|
|
#include "mirage.h"
|
|
#include "window/mwindow.h"
|
|
#include "widget/compound_widget/mbutton.h"
|
|
#include "widget/panel_widget/mbox.h"
|
|
#include "pixel.h"
|
|
#include "misc/mapped_file/mapped_file.h"
|
|
#include "stb_image_loader.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
mirage_app::get().init();
|
|
|
|
const auto& window = mwindow::create({ 800, 600 }, L"Hello, World!");
|
|
window->set_content(
|
|
std::make_shared<mbutton>()
|
|
);
|
|
|
|
mirage_app::get().run();
|
|
return 0;
|
|
}
|