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 menuScaling) | |
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 | |
float | menuScaling { 1.0f } |
menu scaling, needed to proper scaling of internal window parts | |
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()> | helpBtnFn |
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
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 |
reaction on press "Help" button
float ImGui::CustomStatePluginWindowParameters::menuScaling { 1.0f } |
menu scaling, needed to proper scaling of internal window parts
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 menuScaling)