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
193 Views Asked by Essuman Godsaves At
1
There are 1 best solutions below
Related Questions in USER-INTERFACE
- OS-wide text autocomplete service with popup
- Bootstrap 5 tooltips not working in Laravel 9.x application
- GUI window is not appearing
- Responsive gui customtkinter
- Unwanted text on created icon
- Custom styled "Add to cart" button in WooCommerce product archive pages
- Page behavior in flet works when used directly in `main`, but not in a UserControl?
- How could I reuse the CTk tabviews in python GUI app?
- mouse coordinates in image go below 0 and above width
- Use the same button in different interfaces (JAVA)
- Distributing a GTK4 Windows application
- How to design the file operation interface involving status and transactions?
- Creating a GUI application for creating graphs
- How point to other link after login
- How to align widget to another widget in Flutter
Related Questions in IMGUI
- Inject imgui in non OpenGL android application
- ImGui rendering wrong characters (characters received from tcp sockets)
- Basic ImGui program doesn't render, leaks memory and crashes
- Can Dear ImGui tables be sorted from somewhere else?
- Proper image layout transitions between two Render Passes in Vulkan
- Imgui openGl Unreal engine game
- Dear ImGui without window in the window
- How to correctly handle Window resizing when using ImGui?
- How to render image in SpaiR / imgui-java with Vulkan?
- Visual Studio 2022 File not found in current source file's directory or in build system paths
- When exactly is the WinAPI drawing content to the screen?
- OpenGL texture is black when being rendered inside imgui
- ImGui-SFML cmake error when using git submodules
- ImGUI - Menu bar not showing up
- How to make imgui menu bar stick to the top of SDL window?
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 # Hahtags
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.