I am trying to build a desktop application using ImGui. How do I design a page navigation system to be able to switch between pages. I have an application class and a page class with specific pages derived from it. The application class has a method which registers all pages class into list of pages container or structure. The application class has a pointer to a current page. I want the page class to inform the application class to switch to another page from the current page when a button is clicked or an event of occurs.
How to design page navigation system using ImGui
192 Views Asked by Essuman Godsaves At
1
There are 1 best solutions below
Related Questions in USER-INTERFACE
- Perl Command Line Interpreter crashing on exit
- Android - How to check for button click in a custom alert dialog box?
- Working towards a more advanced graphics game
- Use GUI displayed results of SQL query vs new queries?
- Efficiently design method to construct a Java GUI?
- Implementing callback function for dialog-based application
- Ui-router URL changes, nested view not loading
- Dont see anything inside my jframe
- Sliding Card Design
- Display value of Y axis inside GUI plot
- Sash becomes lost after resize
- Java Swing Drawing Rectangles
- How do I convert point to local coordinates?
- WPF Workaround to add Window control as a child of visual
- Developing multi page app like Viber interface using Qt Quick?
Related Questions in IMGUI
- Getting lots of linker errors on linking cimgui
- How to use labels for ticks indefinitely like when no limits are specified in imgui?
- How to make a flashing image in imgui?
- (DearImGui, OpenGL 3.3): Rendering an imgui user interface on a texture
- Scaling entire imgui (glfw) interface
- ImGui Button doesn't recognize the click when the for loop is greater than 0?
- ImGui, with SDL2 Renderer, what is the point of the three separate NewFrame functions?
- Forgot to call ImGui::NewFrame()?
- How to set to specific scale in OpenGL?
- Make a window appear using Nuklear GUI library?
- Abort() has been called when trying to run ImPlot::BeginPlot in windows 10 visual studio 2022
- How to design page navigation system using ImGui
- IID_PPV_ARGS is not declared when compiling with wineg++
- Unable to find source of linking error in ImGui cpp repository
- ImGui don't recognize FreeGLUT?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I just made such a simple system for in-app help/documentation.
I specify the pages in a very simple format, read from a text file. Each page has an identifier or label, for example "Page0", and some content(title, sections, images, buttons, etc). All these pages are put into a map [label, shared_pointer_to_contents]. Then I have a current_page pointer, initially the first entry, if "MainPage" or similar does not exist. Navigation is done simply by using buttons, so the content for that is in the lines of:
It was pretty easy to get up and running.