You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm kind of a novice when it comes to programming and only managed to figure this out because I'm stubborn and tired of language hopping only to be disappointed.
But I'll get to the point.
Would it be possible to add another Imgui Example or expand upon it?
I saw in multiple C/Cpp/C# videos of folks using the bitwise 'or' operator to lock their imgui windows in place and disable resizing etc. in order to make a more traditional looking UI for an editor or general app.
When I realised I couldn't do the same with either | or or in Nim, I stubbornly started looking into the "why"
After looking up what the bitwise 'or' did to numbers in example cases. I took a gander at the imgui nim file; saw the enums for ImGuiWindowFlags, then checked the nim manual/tutorial for the umteenth time and figured it out (stumbled across the solution since I just learned the jargon for what I needed to look into). https://nim-lang.org/docs/tut1.html#sets-bit-fields
etc.
Maybe at some point, to help new folk coming to Nim that might not be that experienced it'd help to make a note of this on the README.md file and show possible other suggestions.
I've tried most if not all the other (non web tech) UI libraries Nim has to offer on the linux, none of them seem to work or have all their features in order. the Nimgl-ImGui bindings have been the only package that worked for me, so I just wanted to share my discovery in hopes it'll help others in future if they wanted to get into making apps or tools with a more traditional aesthetic rather than dealing with floating windows within windows.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. I'm kind of a novice when it comes to programming and only managed to figure this out because I'm stubborn and tired of language hopping only to be disappointed.
But I'll get to the point.
Would it be possible to add another Imgui Example or expand upon it?
I saw in multiple C/Cpp/C# videos of folks using the bitwise 'or' operator to lock their imgui windows in place and disable resizing etc. in order to make a more traditional looking UI for an editor or general app.
When I realised I couldn't do the same with either
|
oror
in Nim, I stubbornly started looking into the "why"After looking up what the bitwise 'or' did to numbers in example cases. I took a gander at the imgui nim file; saw the enums for
ImGuiWindowFlags
, then checked the nim manual/tutorial for the umteenth time and figured it out (stumbled across the solution since I just learned the jargon for what I needed to look into).https://nim-lang.org/docs/tut1.html#sets-bit-fields
etc.
Maybe at some point, to help new folk coming to Nim that might not be that experienced it'd help to make a note of this on the README.md file and show possible other suggestions.
I've tried most if not all the other (non web tech) UI libraries Nim has to offer on the linux, none of them seem to work or have all their features in order. the Nimgl-ImGui bindings have been the only package that worked for me, so I just wanted to share my discovery in hopes it'll help others in future if they wanted to get into making apps or tools with a more traditional aesthetic rather than dealing with floating windows within windows.
Beta Was this translation helpful? Give feedback.
All reactions