ice1000 / jimgui

:sparkling_heart: Pure Java binding for dear-imgui
Apache License 2.0
185 stars 13 forks source link

Flag Feature / Enhancement #41

Closed Mr00Anderson closed 5 years ago

Mr00Anderson commented 5 years ago

Closes #37.

This feature / enhancement was to add some object oriented style programming / human readable with what is normally bit-wise permissions using a integer to hold all the bits that represent some flag based on its bit-place which in turn is a value that is "|" ORed with the single integer containing all the flags.

Added

Notes: All classes that have flags must have matching Type to pass, all flags must be mappable to a class containing the flag constant. Test case performance/design was to provide simplicity in copy - pasta. A Nothing field was added to all classes that did not have a int Nothing = 0; to ensure uniformity between flags that did not have a None. Default or Nothing already.