Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Mutable properties for classes in Common #14

Open
nlbuescher opened this issue Jul 11, 2020 · 1 comment
Open

Mutable properties for classes in Common #14

nlbuescher opened this issue Jul 11, 2020 · 1 comment

Comments

@nlbuescher
Copy link
Collaborator

Currently a system exists in codegen to generate setters for a selected whitelist of properties in ImGui classes. One notable property missing is ImGuiIO.configFlags, and modification of ImGuiStyle's properties is probably another good use case, but the question comes to mind: At what point might it be better to tweak the generation to make properties mutable based on whether they're const rather than explicitly following a whitelist?

@Dominaezzz
Copy link
Owner

Not many of them are const and I don't know if some properties are only meant to be mutable internally. So I settled with an on-demand whitelist and moved on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants