Skip to content

Experimental IMGUI Wrapper Class for Windows Forms

License

Notifications You must be signed in to change notification settings

HMNBadBoyz/ImForms

Repository files navigation

ImForms

ImForms is an experiment in creating a wrapper class that allows you to create and get input from Windows Forms control, but in an fashion similar to Immediate Mode GUI systems such as Dear ImGui. It is compatible with existing WinForms projects, you need only provide the ImFormsMgr constructor with a Panel in which to place its controls.

https://gyazo.com/c7c63b0968575e34d28b0431af08f92e

ImForms could someday become a minimal-dependency tool that can easily be integrated into an existing Windows Forms (.NET 4.5+) project, and allows developers to create GUIs with minimal work.

The class is in ImForms.cs. It's simple to use. Just follow the example project (ImFormsUser.*.cs). The biggest gotcha is that you get the best performance if you assign every control a unique string identifier. The function CompileTime.ID() makes this easy. The second biggest gotcha is that there just aren't very many features at the moment.

This project is just an experiment. If you want to see it become more fully-featured, let Ozzy know on Twitter.

There's an equivalent project for WPF called ImWPF.

About

Experimental IMGUI Wrapper Class for Windows Forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages