#pragma once #include "node_standard.h" struct TopWindow : UINode { enum Kind { MainWindow, Window, Popup, ModalPopup, Activity }; enum Placement { None, Left, Right, Top, Bottom, Center, Maximize }; direct_val flags = ImGuiWindowFlags_NoCollapse; direct_val kind = Window; bindable title = "title"; bindable size_x = 640.f; bindable size_y = 480.f; bindable minSize_x = 0; bindable minSize_y = 0; bindable style_font; direct_val style_padding; direct_val style_spacing; direct_val style_innerSpacing; direct_val style_borderSize; direct_val style_rounding; direct_val style_scrollbarSize; direct_val style_titlePadding; bindable style_bg; bindable style_menuBg; direct_val placement = None; direct_val closeOnEscape = false; direct_val animate = false; direct_val initialActivity = false; event<> onBackButton; event<> onWindowAppearing; std::string userCodeBefore, userCodeAfter, userCodeMid; TopWindow(UIContext& ctx); void Draw(UIContext& ctx); void DrawTools(UIContext& ctx) {} void TreeUI(UIContext& ctx); bool EventUI(int, UIContext& ctx); auto Properties() ->std::vector; auto Events() ->std::vector; bool PropertyUI(int i, UIContext& ctx); void Export(std::ostream& os, UIContext& ctx); void Import(cpp::stmt_iterator& sit, UIContext& ctx); int Behavior() { return SnapInterior; } int ColumnCount(UIContext& ctx) { return 0; } std::string GetTypeName() { return "Window"; } const TopWindow& Defaults() { static TopWindow node(UIContext::Defaults()); return node; } };