Ask questionsProper way to implement a custom widget?
This is not an issue but rather a question to ask.
What's the proper way to implement a custom widget? Says I want to create a rotating progress indicator, using drawing methods like AddArcTo etc...
After the widget is drawn, invoke SetCursorPos to move the drawing cursor to next line.
Everything works fine but when I tried to use the progress indicator with ImGui::SameLine, the X value of position of the indicator will become 0.
After read the imgui_widgets.cpp, I noticed there is a method called ImGui::ItemSize will do the trick by setting the CursorPosPrevLine, but it is not exposed to outside.
Should I not use it but to set the window->DC.CursorPosPrevLine manually ?
Answer questions codecat
ImGui::Dummy is exactly what I needed, thank you!