ui/winui/container.h

branch
newapi
changeset 198
f2332d0d3318
parent 195
0f2e69873875
child 199
84e0a24bab4a
--- a/ui/winui/container.h	Mon Oct 02 19:56:18 2023 +0200
+++ b/ui/winui/container.h	Tue Oct 03 12:36:57 2023 +0200
@@ -106,3 +106,34 @@
 
     void Add(FrameworkElement control, UiBool fill);
 };
+
+struct UiTabView {
+    UiObject* current;
+    int close = 0;
+
+    virtual UiObject* AddTab(const char* label) = 0;
+
+    virtual FrameworkElement GetFrameworkElement() = 0;
+};
+
+struct UiTabViewContainer : UiContainer {
+    UiTabView* tabview;
+
+    UiTabViewContainer(UiTabView* tabview);
+
+    void Add(FrameworkElement control, UiBool fill);
+};
+
+struct UiPivotTabView : UiTabView {
+    Pivot pivot;
+    UiSubContainerType subcontainer;
+    int margin;
+    int spacing;
+    int columnspacing;
+    int rowspacing;
+
+    UiPivotTabView(UiObject *obj, Pivot pivot, UiTabViewArgs args);
+
+    UiObject* AddTab(const char* label);
+    FrameworkElement GetFrameworkElement();
+};

mercurial