Struct imgui::ImGui[][src]

pub struct ImGui { /* fields omitted */ }

Methods

impl ImGui
[src]

Get mouse's position's delta between the current and the last frame.

Get mouse wheel delta

Set to true to have ImGui draw the cursor in software. If false, the OS cursor is used (default to false).

Set currently displayed cursor. Requires support in the windowing back-end if OS cursor is used. OS cursor is used if mouse_draw_cursor is set to false with set_mouse_draw_cursor.

Get currently displayed cursor.

Returns true if mouse is currently dragging with the button provided as argument.

Returns true if the button provided as argument is currently down.

Returns true if the button provided as argument is being clicked.

Returns true if the button provided as argument is being double-clicked.

Returns true if the button provided as argument was released

Map ImGuiKey values into user's key index

Return whether specific key is being held

Example

use imgui::{ImGuiKey, Ui};

fn test(ui: &Ui) {
    let delete_key_index = ui.imgui().get_key_index(ImGuiKey::Delete);
    if ui.imgui().is_key_down(delete_key_index) {
        println!("Delete is being held!");
    }
}

Return whether specific key was pressed

Return whether specific key was released

Trait Implementations

impl Drop for ImGui
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for ImGui

impl Sync for ImGui