Structure that contains parameters for State plugin window with custom style. More...
#include <ImGuiHelpers.h>
Public Attributes | |
| bool * | collapsed { nullptr } |
| float | width { 0.0f } |
window width (should be already scaled with UI::scale()) | |
| float | height { 0.0f } |
| window height, usually calculated internally (if value is zero) | |
| bool | allowScrollbar = true |
| If false, will never show the scrollbar. | |
| ImVec2 * | position { nullptr } |
| start Position | |
| ImVec2 | pivot { 0.0f, 0.0f } |
| the position of the starting point of the window | |
| ImGuiWindowFlags | flags = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize |
window flags, ImGuiWindowFlags_NoScrollbar and ImGuiWindow_NoScrollingWithMouse are forced inside BeginCustomStatePlugin function | |
| ImVec2 * | changedSize { nullptr } |
| outside owned parameter for windows with resize option | |
| std::function< void()> | customHeaderFn = nullptr |
| draw custom header items immediately after the caption | |
| std::function< void()> | helpBtnFn = nullptr |
| reaction on press "Help" button | |
| bool | closeWithEscape { true } |
| if true esc button closes the plugin | |
Structure that contains parameters for State plugin window with custom style.
| bool ImGui::CustomStatePluginWindowParameters::allowScrollbar = true |
If false, will never show the scrollbar.
| ImVec2* ImGui::CustomStatePluginWindowParameters::changedSize { nullptr } |
outside owned parameter for windows with resize option
| bool ImGui::CustomStatePluginWindowParameters::closeWithEscape { true } |
if true esc button closes the plugin
| bool* ImGui::CustomStatePluginWindowParameters::collapsed { nullptr } |
current collapsed state of window in/out parameter, owned outside of BeginCustomStatePlugin function
| std::function<void()> ImGui::CustomStatePluginWindowParameters::customHeaderFn = nullptr |
draw custom header items immediately after the caption
| ImGuiWindowFlags ImGui::CustomStatePluginWindowParameters::flags = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize |
window flags, ImGuiWindowFlags_NoScrollbar and ImGuiWindow_NoScrollingWithMouse are forced inside BeginCustomStatePlugin function
| float ImGui::CustomStatePluginWindowParameters::height { 0.0f } |
window height, usually calculated internally (if value is zero)
| std::function<void()> ImGui::CustomStatePluginWindowParameters::helpBtnFn = nullptr |
reaction on press "Help" button
| ImVec2 ImGui::CustomStatePluginWindowParameters::pivot { 0.0f, 0.0f } |
the position of the starting point of the window
| ImVec2* ImGui::CustomStatePluginWindowParameters::position { nullptr } |
start Position
| float ImGui::CustomStatePluginWindowParameters::width { 0.0f } |
window width (should be already scaled with UI::scale())