Files
kryon/examples/15_containers.kry
T
2026-08-09 19:52:01 -03:00

26 lines
639 B
Plaintext

#import "kryon.h"
app "Kryon Containers" {
size 800 600
fps 60
font examples
theme THEME_SKY light
}
state {
tab: int = 0
split: int = 260
open: int = 1
tabs: [3] const UITab = {{"Files"},{"Search"},{"Output"}}
}
screen ContainersExample(viewport: Rectangle) {
Background(GetThemeBackground())
TabBar((TabBarProps){{40,50,680,0},tabs,3,tab,0,0,0,NULL,1,NULL})
PanedView((PanedViewProps){{40,100,680,280},501,1,&split,120,160})
Collapsible((CollapsibleProps){{60,410,320,120},"Details",&open})
if open {
Text("Collapsible content", 80, 455, UI_TEXT_16, GetThemeText())
}
}