-
First of all, thanks for a great library! I am currently porting an application and have a question on how to use set_drag_drop_payload with a payload from Python. calling " imgui.set_drag_drop_payload("hello", "a", 1)" results in a TypeError: TypeError: set_drag_drop_payload(): incompatible function arguments. The following argument types are supported: How can I create a capsule-object from a string or an integer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Thank you!
I need to review the binding for this function, and this will require an adaptation to the code generator. Its C++ signature is: bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) Basically, I will need to wrap |
Beta Was this translation helpful? Give feedback.
Thank you!
I need to review the binding for this function, and this will require an adaptation to the code generator.
Its C++ signature is:
Basically, I will need to wrap
void * data
into apy::object
so that it accepts any python object. I'm looking at this now.