Download src/node_window.h from dlxjj/imradv3: direct link, hf CLI and curl.
- Browser
- Download file 1.91 kB
-
https://huggingface.co/datasets/dlxjj/imradv3/resolve/main/src/node_window.h
- Command line
-
hf download hf://datasets/dlxjj/imradv3/src/node_window.h
-
curl -L -o node_window.h https://huggingface.co/datasets/dlxjj/imradv3/resolve/main/src/node_window.h
1.91 kB
| struct TopWindow : UINode | |
| { | |
| enum Kind { MainWindow, Window, Popup, ModalPopup, Activity }; | |
| enum Placement { None, Left, Right, Top, Bottom, Center, Maximize }; | |
| direct_val<ImGuiWindowFlags_> flags = ImGuiWindowFlags_NoCollapse; | |
| direct_val<Kind> kind = Window; | |
| bindable<std::string> title = "title"; | |
| bindable<dimension_t> size_x = 640.f; | |
| bindable<dimension_t> size_y = 480.f; | |
| bindable<dimension_t> minSize_x = 0; | |
| bindable<dimension_t> minSize_y = 0; | |
| bindable<font_name_t> style_font; | |
| direct_val<pzdimension2_t> style_padding; | |
| direct_val<pzdimension2_t> style_spacing; | |
| direct_val<pzdimension2_t> style_innerSpacing; | |
| direct_val<pzdimension_t> style_borderSize; | |
| direct_val<pzdimension_t> style_rounding; | |
| direct_val<pzdimension_t> style_scrollbarSize; | |
| direct_val<pzdimension2_t> style_titlePadding; | |
| bindable<color_t> style_bg; | |
| bindable<color_t> style_menuBg; | |
| direct_val<Placement> placement = None; | |
| direct_val<bool> closeOnEscape = false; | |
| direct_val<bool> animate = false; | |
| direct_val<bool> 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<Prop>; | |
| auto Events() ->std::vector<Prop>; | |
| 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; } | |
| }; | |