Code cleaning, update roadmap and manifest

This commit is contained in:
Corentin 2022-10-06 22:29:56 +09:00
commit 73934d0e34
20 changed files with 56 additions and 76 deletions

View file

@ -31,45 +31,37 @@ int main()
window.create_label(0.75f, 0.75f, "Hello World!", {1.0f, 1.0f, 1.0f, 0.1f}, {});
window.create_flex(200, 0.6f, uui::Direction::HORIZONTAL, [](uui::Flex& flex) {
flex.create_component(100, 50, [](uui::Component& component) {
component.set_background_color(0.2f, 0.75f, 0.25f);
});
flex.create_component(
100, 50, [](uui::Component& component) { component.set_background_color(0.2f, 0.75f, 0.25f); });
flex.create_label("test", {0.8f, 0.2f, 0.2f, 1.0f}, {});
flex.create_component(100, 20, [](uui::Component& component) {
component.set_background_color(0.2f, 0.25f, 0.75f);
});
flex.create_component(
100, 20, [](uui::Component& component) { component.set_background_color(0.2f, 0.25f, 0.75f); });
});
window.create_flex(50, 400, uui::Direction::VERTICAL, [](uui::Flex& flex) {
flex.create_component(50, 100, [](uui::Component& component) {
component.set_background_color(0.2f, 0.75f, 0.25f);
});
flex.create_component(
50, 100, [](uui::Component& component) { component.set_background_color(0.2f, 0.75f, 0.25f); });
flex.create_label("test", {0.8f, 0.2f, 0.2f, 1.0f}, {});
flex.create_component(100, 20, [](uui::Component& component) {
component.set_background_color(0.2f, 0.25f, 0.75f);
});
flex.create_component(
100, 20, [](uui::Component& component) { component.set_background_color(0.2f, 0.25f, 0.75f); });
});
});
app->create_window(800, 600, "OpenGl 2", [](uui::Window& window) {
window.create_stack(200, 0.6f, uui::Direction::HORIZONTAL, [](uui::Stack& stack) {
stack.create_component(100, 50, [](uui::Component& component) {
component.set_background_color(0.2f, 0.75f, 0.25f);
});
stack.create_component(
100, 50, [](uui::Component& component) { component.set_background_color(0.2f, 0.75f, 0.25f); });
stack.create_label("test", {0.8f, 0.2f, 0.2f, 1.0f}, {});
stack.create_component(100, 20, [](uui::Component& component) {
component.set_background_color(0.2f, 0.25f, 0.75f);
});
stack.create_component(
100, 20, [](uui::Component& component) { component.set_background_color(0.2f, 0.25f, 0.75f); });
});
window.create_stack(50, 400, uui::Direction::VERTICAL, [](uui::Stack& stack) {
stack.create_component(100, 50, [](uui::Component& component) {
component.set_background_color(0.2f, 0.75f, 0.25f);
});
stack.create_component(
100, 50, [](uui::Component& component) { component.set_background_color(0.2f, 0.75f, 0.25f); });
stack.create_label("test", {0.8f, 0.2f, 0.2f, 1.0f}, {});
stack.create_component(100, 20, [](uui::Component& component) {
component.set_background_color(0.2f, 0.25f, 0.75f);
});
stack.create_component(
100, 20, [](uui::Component& component) { component.set_background_color(0.2f, 0.25f, 0.75f); });
});
});