Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable way to select which parameters can be included in non-Ex() function #24

Open
ocornut opened this issue Sep 12, 2022 · 0 comments

Comments

@ocornut
Copy link
Member

ocornut commented Sep 12, 2022

I guess this is a followup to #10 and code in e2f03ea#diff-bfeeec74b4af24dba625d3a2772df9610c7d430c2ba12919dde04bf652619138R46

From reviewing cimgui.h it feels like in many occurrence, some parameters would better be moved from the Ex() function into the non-Ex() function. Namely, the generally idea behind removing the number of Ex() functions what that parameters that are trivial to fill (e.g. with 0).

An example would be that this:

CIMGUI_API void ImGui_TableSetupColumnEx(const char* label, ImGuiTableColumnFlags flags /* = 0 */, float init_width_or_weight /* = 0.0f */, ImGuiID user_id /* = 0 */);
CIMGUI_API void ImGui_TableSetupColumn(const char* label);         // Implied flags = 0, init_width_or_weight = 0.0f, user_id = 0

IHMO should be output as:

CIMGUI_API void ImGui_TableSetupColumnEx(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight /* = 0.0f */, ImGuiID user_id /* = 0 */);
CIMGUI_API void ImGui_TableSetupColumn(const char* label, ImGuiTableColumnFlags flags /* = 0 */);         // Implied init_width_or_weight = 0.0f, user_id = 0

Maybe not best example because this one might be automated, but it seems it would make some sense if we could specify in the script that in this case flags should always be in the simplified function.

ShironekoBen added a commit that referenced this issue Sep 19, 2022
… will not get default helpers generated (#24)

Changed order of Ex functions relative to the original (#23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant