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
Missing (ig)UpdateHoveredWindowAndCaptureFlags
in non-docking bindings
#706
Comments
Hmm, that is expected currently,
That is surprising - the version of cimgui should be up-to-date (using the cimgui tag for the relevant imgui release) I wonder if this is confusion from a combination of the docking feature using imgui-rs/imgui-sys/src/bindings.rs Line 1 in 3cc28c5
That aside, exposing the
|
Thanks for pointing that out, it would have been trivial to see after diffing the cimgui shell scripts between both folders.
Indeed, I messed that up badly! Inline blaming showed most changes from a few weeks ago, leaving me to assume everything was up-to-date given the pace here.
Ack, unfortunately when adding the
I need access to
Agreed, it'd be much better if it's all tied to a single runnable command instead of spread across documentation and various shell scripts. |
The methods with So it should be perfectly safe just to use the "obvious" function with the closest name - e.g a call like It's also quite possible |
Ack, I searched for matching functions but did not immediately see those overloads, but they're definitely there. Indeed, all I had to do was unwrap the Does this all mean you're okay taking a contribution that switches |
Fwiw it might still be interesting to look into this, but WindowEvent::Touch(t) if t.id == 0 => {
io.add_mouse_pos_event([
t.location.x as f32,
t.location.y as f32,
]);
if t.phase == TouchPhase::Started {
io.add_mouse_button_event(imgui::MouseButton::Left, true);
} else if t.phase == TouchPhase::Ended {
io.add_mouse_button_event(imgui::MouseButton::Left, false);
}
// https://github.com/imgui-rs/imgui-rs/issues/706
// https://github.com/ocornut/imgui/blob/0359f6e94fb540501797de1f320082e4ad96ce9c/docs/FAQ.md?plain=1#L130
unsafe { imgui::sys::igUpdateHoveredWindowAndCaptureFlags() };
dbg!(io.want_capture_mouse)
} |
The bindgen header for the
"docking"
feature has it, but themaster
branch does not.I attempted manually rerunning
cimgui
, but besides getting an inordinate amount of API breakage (how old wascimgui
when these were last generated?) the function never shows up incimgui.cpp
,definitions.json
etc...Besides, this function probably has to be mapped in the "safe"
imgui
crate, even though it is internal?The text was updated successfully, but these errors were encountered: