Comments (6)
I'm not quite sure to understand the underlying desire here.
Do you mean you are exposing the style editor pane to the end-user and you want them to be able to load/save settings.
I'd like eventually to add ImGui primitives to persistently store the kind of data that are used by tools. Simple end-user options, equivalent to making e.g. a Checkbox value persistent. So style may end up using that system. For now you could just dump the binary structure to a file using fwrite/fread, or use your own serialisation system.
from imgui.
Yes, this is for the end-user and also I want to provide a default layout in my resources by copying imgui.ini.
If i could have a modified style directly from the ini file, it will avoid me to write some code :)
But that's just a suggestion. The default style is very clean for now.
from imgui.
I agree there is a lack of features to manipulate window size/pos from code, it hasn't occurred to me but I suppose some people may be trying to steer away from the floating-windows size by enforcing certain size/pos. I'll add some primitives for that.
Serialization is less urgent and less likely for now.
from imgui.
I agree for windows manipulation.
from imgui.
Resurrect old topic, the better window manipulation API was added in this commit:
e9e0e36
You have 6 calls, and the condition flag allows to set a value only once per session, or once if the data doesn't exist in .ini file, or always.
void SetWindowPos(const ImVec2& pos, ImGuiSetCondition cond = 0); // set current window position.
void SetWindowSize(const ImVec2& size, ImGuiSetCondition cond = 0); // set current window size. set to ImVec2(0,0) to force an auto-fit
void SetWindowCollapsed(bool collapsed, ImGuiSetCondition cond = 0); // set current window collapsed state.
void SetNextWindowPos(const ImVec2& pos, ImGuiSetCondition cond = 0); // set next window position.
void SetNextWindowSize(const ImVec2& size, ImGuiSetCondition cond = 0); // set next window size. set to ImVec2(0,0) to force an auto-fit
void SetNextWindowCollapsed(bool collapsed, ImGuiSetCondition cond = 0); // set next window collapsed state.
from imgui.
I am closing this issue seeing this one contains the same info
#101
Short answer - I am hesitant about encouraging the programmer to encourage the user to persistently manipulate their style.
from imgui.
Related Issues (20)
- Lag when changing mouse cursor (was: lag hovering over text inputs) HOT 4
- Drag drop does not work with Child HOT 6
- When ImGuiChildFlags_AlwaysUseWindowPadding is enabled, the left and right padding widths of the Child are different, but the Parent window is the same HOT 5
- No scrolling region or selectable items inside Child HOT 3
- Can't write in any field. (1.90.5-docking with SDL3) HOT 1
- `BeginGroup`/`EndGroup` with table inside reports incorrect item size
- Delay in Combo Popup Opening with glfwWaitEventsTimeout HOT 4
- Where's the binaries? HOT 4
- Mouse scrolling not working HOT 6
- Imgui community HOT 1
- Rendering vertices with the D3DPT_LINESTRIP type. HOT 1
- Can't access some stuff from imgui.h HOT 1
- Suggestion: Consider Adding Title Bar Text to Popups HOT 2
- SDL3 Multi-Viewports not creating windows when main window is hidden
- Recommended way to expand / collapse tree nodes with keyboard shortcuts? HOT 3
- VuIkan: invalid Dynamic Rendering functions from the Instance-level loader HOT 3
- Text Bottom Padding Bug HOT 1
- Power savings & hardware usage HOT 3
- Add RGFW backend implementation HOT 2
- Text wrapping: how does it work? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.