MeshLib Documentation
Loading...
Searching...
No Matches
ImGui::CustomStatePluginWindowParameters Struct Reference

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
 

Detailed Description

Structure that contains parameters for State plugin window with custom style.

Member Data Documentation

◆ allowScrollbar

bool ImGui::CustomStatePluginWindowParameters::allowScrollbar = true

If false, will never show the scrollbar.

◆ changedSize

ImVec2* ImGui::CustomStatePluginWindowParameters::changedSize { nullptr }

outside owned parameter for windows with resize option

◆ closeWithEscape

bool ImGui::CustomStatePluginWindowParameters::closeWithEscape { true }

if true esc button closes the plugin

◆ collapsed

bool* ImGui::CustomStatePluginWindowParameters::collapsed { nullptr }

current collapsed state of window in/out parameter, owned outside of BeginCustomStatePlugin function

◆ flags

ImGuiWindowFlags ImGui::CustomStatePluginWindowParameters::flags = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize

window flags, ImGuiWindowFlags_NoScrollbar and ImGuiWindow_NoScrollingWithMouse are forced inside BeginCustomStatePlugin function

◆ height

float ImGui::CustomStatePluginWindowParameters::height { 0.0f }

window height, usually calculated internally (if value is zero)

◆ helpBtnFn

std::function<void()> ImGui::CustomStatePluginWindowParameters::helpBtnFn

reaction on press "Help" button

◆ menuScaling

float ImGui::CustomStatePluginWindowParameters::menuScaling { 1.0f }

menu scaling, needed to proper scaling of internal window parts

◆ pivot

ImVec2 ImGui::CustomStatePluginWindowParameters::pivot { 0.0f, 0.0f }

the position of the starting point of the window

◆ position

ImVec2* ImGui::CustomStatePluginWindowParameters::position { nullptr }

start Position

◆ width

float ImGui::CustomStatePluginWindowParameters::width { 0.0f }

window width (should be already scaled with menuScaling)


The documentation for this struct was generated from the following file: