|
| | ImmediateUI (Layout &layout) |
| |
| void | BeginFrame () |
| |
| bool | BeginMenu (const std::string &key, const std::string &text, const UIStyle &style={}) |
| |
| bool | Button (const std::string &key, const std::string &text, const UIStyle &style={}) |
| |
| bool | BeginPanel (const std::string &key, const std::string &title, const UIStyle &style={}) |
| |
| bool | BeginToolBar (const std::string &key, const UIStyle &style={}) |
| |
| BaseNode * | Terminal (const std::string &key, const std::string &title="Output Log", const UIStyle &style={}) |
| |
| void | EndMenu () |
| |
| void | EndPanel () |
| |
| void | EndToolBar () |
| |
| BaseNode * | Image (const std::string &key, const std::string &source, const UIStyle &style={}) |
| |
| bool | MenuItem (const std::string &key, const std::string &text, const UIStyle &style={}) |
| |
| BaseNode * | Rect (const std::string &key, const UIStyle &style={}) |
| |
| bool | Slider (const std::string &key, float &value, float minimum=0.0f, float maximum=1.0f, const UIStyle &style={}) |
| |
| BaseNode * | Scene (const std::string &key, const UIStyle &style={}) |
| |
| bool | TextInput (const std::string &key, std::string &value, const std::string &placeholder="", const UIStyle &style={}) |
| |
| bool | Toggle (const std::string &key, const std::string &text, bool &value, const UIStyle &style={}) |
| |
| bool | EndFrame () |
| |
| const std::string & | LastError () const |
| |
ImGui 风格声明入口,但内部保留并复用控件。 同级 key 和调用顺序稳定时不会重新分配布局节点或 UIObject。