Replacing Ref-System with unique_ptr<T>
Adding code Goals to README.md
This commit is contained in:
parent
1bc396c4b2
commit
bdf5b25b28
3 changed files with 198 additions and 187 deletions
40
README.md
40
README.md
|
@ -1,2 +1,40 @@
|
|||
# cigus
|
||||
# cigui
|
||||
|
||||
# Goal
|
||||
|
||||
```cpp
|
||||
#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())
|
||||
)
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue