extrawurst / DerelictImgui

Dynamic bindings to the cimgui library (a c-api for IMGUI) for the D programming language
MIT License
54 stars 13 forks source link

enum ImGuiSelectableFlags_ has unnecessary name #3

Closed MrSmith33 closed 8 years ago

MrSmith33 commented 9 years ago

In types.d enum ImGuiSelectableFlags_ should not have a name

extrawurst commented 8 years ago

you are right. i will takle that once a new imgui release is out the door

MrSmith33 commented 8 years ago

I have some things to ask:

Btw, VS2013 solution for cimgui was very helpful!

extrawurst commented 8 years ago

1) IMHO every method in the ImGui namespace is there, if something is missing please create an issue and feel also free to create a PR for it 2) I have to recheck that, I cannot remember from the top of my head. 3) Please feel free to create PRs for both 4) Some day maybe, right now it is not stable enough and backward compatible enough.

MrSmith33 commented 8 years ago

Will do PR soon. 2)

void igGetContentRegionMax(struct ImVec2* out);
void igGetContentRegionAvail(struct ImVec2* out);
void igGetWindowContentRegionMin(struct ImVec2* out);
void igGetWindowContentRegionMax(struct ImVec2* out);
void igGetWindowPos(struct ImVec2* out);
void igGetWindowSize(struct ImVec2* out);
void igGetCursorPos(struct ImVec2* pOut);
void igGetCursorStartPos(struct ImVec2* pOut);
void igGetCursorScreenPos(struct ImVec2* pOut);
void igGetItemRectMin(struct ImVec2* pOut);
void igGetItemRectMax(struct ImVec2* pOut);
void igGetItemRectSize(struct ImVec2* pOut);
void igCalcItemRectClosestPoint(struct ImVec2* pOut, const struct ImVec2 pos, bool on_edge, float outward);
void igCalcTextSize(struct ImVec2* pOut, const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width);
void igGetMousePos(struct ImVec2* pOut);
void igGetMousePosOnOpeningCurrentPopup(ImVec2* pOut);
void igGetMouseDragDelta(struct ImVec2* pOut, int button, float lock_threshold);

Can be found with ImVec2\* p?out in cimgui.h

extrawurst commented 8 years ago

Thanks for the PR - i will have a look after work. regarding the methods: Thanks for listing them but I have to test why I did that, there was a reason. I should have documented this ;)

extrawurst commented 8 years ago

I had problems returning structs on the stack when writing the D-Bindings that was the reason for pOut pointer