mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-27 13:28:28 +00:00
passing tests
This commit is contained in:
parent
e650a02ced
commit
4a2d847b3a
@ -63,10 +63,8 @@ fn main() {
|
|||||||
/* pass all events to imgui platfrom */
|
/* pass all events to imgui platfrom */
|
||||||
platform.handle_event(&mut imgui, &event);
|
platform.handle_event(&mut imgui, &event);
|
||||||
|
|
||||||
match event {
|
if let Event::Quit { .. } = event {
|
||||||
Event::Quit { .. } => break 'main,
|
break 'main;
|
||||||
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -545,12 +545,12 @@ impl Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the currently desired mouse cursor type.
|
/// Returns the currently desired mouse cursor type.
|
||||||
///
|
///
|
||||||
/// This was set *last frame* by the [Ui] object, and will be reset when
|
/// This was set *last frame* by the [Ui] object, and will be reset when
|
||||||
/// [new_frame] is called.
|
/// [new_frame] is called.
|
||||||
///
|
///
|
||||||
/// Returns `None` if no cursor should be displayed
|
/// Returns `None` if no cursor should be displayed
|
||||||
///
|
///
|
||||||
/// [new_frame]: Self::new_frame
|
/// [new_frame]: Self::new_frame
|
||||||
#[doc(alias = "GetMouseCursor")]
|
#[doc(alias = "GetMouseCursor")]
|
||||||
pub fn mouse_cursor(&self) -> Option<MouseCursor> {
|
pub fn mouse_cursor(&self) -> Option<MouseCursor> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user