No description
Find a file
2025-04-11 07:13:29 +02:00
cmake Init Project 2025-04-09 14:33:59 +02:00
include Init Project 2025-04-09 14:33:59 +02:00
src Replacing Ref-System with unique_ptr<T> 2025-04-11 07:13:29 +02:00
.gitignore Init Project 2025-04-09 14:33:59 +02:00
cigus.hpp Replacing Ref-System with unique_ptr<T> 2025-04-11 07:13:29 +02:00
CMakeLists.txt Updating Ref system. [segvault] 2025-04-10 15:28:08 +02:00
LICENSE Initial commit 2025-04-08 13:38:24 +02:00
README.md Replacing Ref-System with unique_ptr<T> 2025-04-11 07:13:29 +02:00

cigui

Goal

#include <cigui.hpp>

struct ContentView : public cig::View {
    void body() {
        cig::VStack(
            cig::SystemIcon("globe.fill"),
            cig::Text("Welcome to Cigui")
        )
    }
}

struct SettingsView : public cig::View {
    void body() {
        cig::Tabbed(
            cig::Tab(

            ).tag("Tab 1"),
            cig::Tab(
                cig::VStack(
                    cig::Text("Other Tab")
                )
            )
        );
    }
}

struct MainApp : public cig::App {
    void body() {
        cig::WindowGroup()(
            cig::ViewWindow(new ContentView()),
            cig::SettingsWindow(new SettingsView())
        )
    }
}