Struct ImGui

Source
pub struct ImGui { /* private fields */ }

Implementations§

Source§

impl ImGui

Source

pub fn align_text_to_frame_padding<'a>(&'a self)

Source

pub fn arrow_button<'a, 'b>(&'a self, str_id: &'b CStr, dir: ImGuiDir) -> bool

Source

pub fn begin<'a, 'b, 'c>( &'a self, name: &'b CStr, p_open: impl Into<Option<&'c mut bool>>, flags: impl Into<Option<ImGuiWindowFlags>>, ) -> bool

Source

pub fn begin_child<'a, 'b>( &'a self, str_id: &'b CStr, size: impl Into<Option<ImVec2>>, border: impl Into<Option<bool>>, flags: impl Into<Option<ImGuiWindowFlags>>, ) -> bool

Source

pub fn begin_child_id<'a>( &'a self, id: ImGuiID, size: impl Into<Option<ImVec2>>, border: impl Into<Option<bool>>, flags: impl Into<Option<ImGuiWindowFlags>>, ) -> bool

Source

pub fn begin_child_frame<'a>( &'a self, id: ImGuiID, size: ImVec2, flags: impl Into<Option<ImGuiWindowFlags>>, ) -> bool

Source

pub fn begin_combo<'a, 'b, 'c>( &'a self, label: &'b CStr, preview_value: &'c CStr, flags: impl Into<Option<ImGuiComboFlags>>, ) -> bool

Source

pub fn begin_drag_drop_source<'a>( &'a self, flags: impl Into<Option<ImGuiDragDropFlags>>, ) -> bool

Source

pub fn begin_drag_drop_target<'a>(&'a self) -> bool

Source

pub fn begin_group<'a>(&'a self)

Source

pub fn begin_main_menu_bar<'a>(&'a self) -> bool

Source

pub fn begin_menu<'a, 'b>( &'a self, label: &'b CStr, enabled: impl Into<Option<bool>>, ) -> bool

Source

pub fn begin_menu_bar<'a>(&'a self) -> bool

Source

pub fn begin_popup<'a, 'b>( &'a self, str_id: &'b CStr, flags: impl Into<Option<ImGuiWindowFlags>>, ) -> bool

Source

pub fn begin_popup_context_item<'a, 'b>( &'a self, str_id: impl Into<Option<&'b CStr>>, mouse_button: impl Into<Option<i32>>, ) -> bool

Source

pub fn begin_popup_context_void<'a, 'b>( &'a self, str_id: impl Into<Option<&'b CStr>>, mouse_button: impl Into<Option<i32>>, ) -> bool

Source

pub fn begin_popup_context_window<'a, 'b>( &'a self, str_id: impl Into<Option<&'b CStr>>, mouse_button: impl Into<Option<i32>>, also_over_items: impl Into<Option<bool>>, ) -> bool

Source

pub fn begin_popup_modal<'a, 'b, 'c>( &'a self, name: &'b CStr, p_open: impl Into<Option<&'c mut bool>>, flags: impl Into<Option<ImGuiWindowFlags>>, ) -> bool

Source

pub fn begin_tooltip<'a>(&'a self)

Source

pub fn bullet<'a>(&'a self)

Source

pub fn bullet_text<'a, 'b>(&'a self, fmt: &'b CStr)

Source

pub fn button<'a, 'b>( &'a self, label: &'b CStr, size: impl Into<Option<ImVec2>>, ) -> bool

Source

pub fn calc_item_width<'a>(&'a self) -> f32

Source

pub fn calc_list_clipping<'a, 'b, 'c>( &'a self, items_count: i32, items_height: f32, out_items_display_start: &'b mut i32, out_items_display_end: &'c mut i32, )

Source

pub fn calc_text_size<'a, 'b, 'c>( &'a self, text: &'b CStr, text_end: impl Into<Option<&'c CStr>>, hide_text_after_double_hash: impl Into<Option<bool>>, wrap_width: impl Into<Option<f32>>, ) -> ImVec2

Source

pub fn capture_keyboard_from_app<'a>(&'a self, capture: impl Into<Option<bool>>)

Source

pub fn capture_mouse_from_app<'a>(&'a self, capture: impl Into<Option<bool>>)

Source

pub fn checkbox<'a, 'b, 'c>(&'a self, label: &'b CStr, v: &'c mut bool) -> bool

Source

pub fn checkbox_flags<'a, 'b, 'c>( &'a self, label: &'b CStr, flags: &'c mut u32, flags_value: u32, ) -> bool

Source

pub fn close_current_popup<'a>(&'a self)

Source

pub fn collapsing_header<'a, 'b>( &'a self, label: &'b CStr, flags: impl Into<Option<ImGuiTreeNodeFlags>>, ) -> bool

Source

pub fn collapsing_header_bool_ptr<'a, 'b, 'c>( &'a self, label: &'b CStr, p_open: &'c mut bool, flags: impl Into<Option<ImGuiTreeNodeFlags>>, ) -> bool

Source

pub fn color_button<'a, 'b>( &'a self, desc_id: &'b CStr, col: ImVec4, flags: impl Into<Option<ImGuiColorEditFlags>>, size: impl Into<Option<ImVec2>>, ) -> bool

Source

pub fn color_convert_float4_to_u32<'a>(&'a self, _in: ImVec4) -> u32

Source

pub fn color_convert_hsv_to_rgb<'a, 'b, 'c, 'd>( &'a self, h: f32, s: f32, v: f32, out_r: &'b mut f32, out_g: &'c mut f32, out_b: &'d mut f32, )

Source

pub fn color_convert_rgb_to_hsv<'a, 'b, 'c, 'd>( &'a self, r: f32, g: f32, b: f32, out_h: &'b mut f32, out_s: &'c mut f32, out_v: &'d mut f32, )

Source

pub fn color_convert_u32_to_float4<'a>(&'a self, _in: u32) -> ImVec4

Source

pub fn color_edit3<'a, 'b, 'c>( &'a self, label: &'b CStr, col: &'c mut [f32; 3], flags: impl Into<Option<ImGuiColorEditFlags>>, ) -> bool

Source

pub fn color_edit4<'a, 'b, 'c>( &'a self, label: &'b CStr, col: &'c mut [f32; 4], flags: impl Into<Option<ImGuiColorEditFlags>>, ) -> bool

Source

pub fn color_picker3<'a, 'b, 'c>( &'a self, label: &'b CStr, col: &'c mut [f32; 3], flags: impl Into<Option<ImGuiColorEditFlags>>, ) -> bool

Source

pub fn color_picker4<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, col: &'c mut [f32; 4], flags: impl Into<Option<ImGuiColorEditFlags>>, ref_col: impl Into<Option<&'d f32>>, ) -> bool

Source

pub fn columns<'a, 'b>( &'a self, count: impl Into<Option<i32>>, id: impl Into<Option<&'b CStr>>, border: impl Into<Option<bool>>, )

Source

pub fn combo_str<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, current_item: &'c mut i32, items_separated_by_zeros: &'d CStr, popup_max_height_in_items: impl Into<Option<i32>>, ) -> bool

Source

pub fn debug_check_version_and_data_layout<'a, 'b>( &'a self, version_str: &'b CStr, sz_io: usize, sz_style: usize, sz_vec2: usize, sz_vec4: usize, sz_drawvert: usize, ) -> bool

Source

pub fn drag_float<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut f32, v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<f32>>, v_max: impl Into<Option<f32>>, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn drag_float2<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 2], v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<f32>>, v_max: impl Into<Option<f32>>, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn drag_float3<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 3], v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<f32>>, v_max: impl Into<Option<f32>>, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn drag_float4<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 4], v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<f32>>, v_max: impl Into<Option<f32>>, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn drag_float_range2<'a, 'b, 'c, 'd, 'e, 'f>( &'a self, label: &'b CStr, v_current_min: &'c mut f32, v_current_max: &'d mut f32, v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<f32>>, v_max: impl Into<Option<f32>>, format: impl Into<Option<&'e CStr>>, format_max: impl Into<Option<&'f CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn drag_int<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut i32, v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<i32>>, v_max: impl Into<Option<i32>>, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn drag_int2<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [i32; 2], v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<i32>>, v_max: impl Into<Option<i32>>, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn drag_int3<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [i32; 3], v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<i32>>, v_max: impl Into<Option<i32>>, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn drag_int4<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [i32; 4], v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<i32>>, v_max: impl Into<Option<i32>>, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn drag_int_range2<'a, 'b, 'c, 'd, 'e, 'f>( &'a self, label: &'b CStr, v_current_min: &'c mut i32, v_current_max: &'d mut i32, v_speed: impl Into<Option<f32>>, v_min: impl Into<Option<i32>>, v_max: impl Into<Option<i32>>, format: impl Into<Option<&'e CStr>>, format_max: impl Into<Option<&'f CStr>>, ) -> bool

Source

pub fn dummy<'a>(&'a self, size: ImVec2)

Source

pub fn end<'a>(&'a self)

Source

pub fn end_child<'a>(&'a self)

Source

pub fn end_child_frame<'a>(&'a self)

Source

pub fn end_combo<'a>(&'a self)

Source

pub fn end_drag_drop_source<'a>(&'a self)

Source

pub fn end_drag_drop_target<'a>(&'a self)

Source

pub fn end_frame<'a>(&'a self)

Source

pub fn end_group<'a>(&'a self)

Source

pub fn end_main_menu_bar<'a>(&'a self)

Source

pub fn end_menu<'a>(&'a self)

Source

pub fn end_menu_bar<'a>(&'a self)

Source

pub fn end_popup<'a>(&'a self)

Source

pub fn end_tooltip<'a>(&'a self)

Source

pub fn get_clipboard_text<'a>(&'a self) -> String

Source

pub fn get_color_u32<'a>( &'a self, idx: ImGuiCol, alpha_mul: impl Into<Option<f32>>, ) -> u32

Source

pub fn get_color_u32_vec4<'a>(&'a self, col: ImVec4) -> u32

Source

pub fn get_color_u32_u32<'a>(&'a self, col: u32) -> u32

Source

pub fn get_column_index<'a>(&'a self) -> i32

Source

pub fn get_column_offset<'a>( &'a self, column_index: impl Into<Option<i32>>, ) -> f32

Source

pub fn get_column_width<'a>( &'a self, column_index: impl Into<Option<i32>>, ) -> f32

Source

pub fn get_columns_count<'a>(&'a self) -> i32

Source

pub fn get_content_region_avail<'a>(&'a self) -> ImVec2

Source

pub fn get_content_region_avail_width<'a>(&'a self) -> f32

Source

pub fn get_content_region_max<'a>(&'a self) -> ImVec2

Source

pub fn get_cursor_pos<'a>(&'a self) -> ImVec2

Source

pub fn get_cursor_pos_x<'a>(&'a self) -> f32

Source

pub fn get_cursor_pos_y<'a>(&'a self) -> f32

Source

pub fn get_cursor_screen_pos<'a>(&'a self) -> ImVec2

Source

pub fn get_cursor_start_pos<'a>(&'a self) -> ImVec2

Source

pub fn get_font_size<'a>(&'a self) -> f32

Source

pub fn get_font_tex_uv_white_pixel<'a>(&'a self) -> ImVec2

Source

pub fn get_frame_count<'a>(&'a self) -> i32

Source

pub fn get_frame_height<'a>(&'a self) -> f32

Source

pub fn get_frame_height_with_spacing<'a>(&'a self) -> f32

Source

pub fn get_id_str<'a, 'b>(&'a self, str_id: &'b CStr) -> ImGuiID

Source

pub fn get_id_range<'a, 'b, 'c>( &'a self, str_id_begin: &'b CStr, str_id_end: &'c CStr, ) -> ImGuiID

Source

pub fn get_item_rect_max<'a>(&'a self) -> ImVec2

Source

pub fn get_item_rect_min<'a>(&'a self) -> ImVec2

Source

pub fn get_item_rect_size<'a>(&'a self) -> ImVec2

Source

pub fn get_key_index<'a>(&'a self, imgui_key: ImGuiKey) -> i32

Source

pub fn get_key_pressed_amount<'a>( &'a self, key_index: i32, repeat_delay: f32, rate: f32, ) -> i32

Source

pub fn get_mouse_cursor<'a>(&'a self) -> ImGuiMouseCursor

Source

pub fn get_mouse_drag_delta<'a>( &'a self, button: impl Into<Option<i32>>, lock_threshold: impl Into<Option<f32>>, ) -> ImVec2

Source

pub fn get_mouse_pos<'a>(&'a self) -> ImVec2

Source

pub fn get_mouse_pos_on_opening_current_popup<'a>(&'a self) -> ImVec2

Source

pub fn get_scroll_max_x<'a>(&'a self) -> f32

Source

pub fn get_scroll_max_y<'a>(&'a self) -> f32

Source

pub fn get_scroll_x<'a>(&'a self) -> f32

Source

pub fn get_scroll_y<'a>(&'a self) -> f32

Source

pub fn get_style_color_name<'a>(&'a self, idx: ImGuiCol) -> String

Source

pub fn get_text_line_height<'a>(&'a self) -> f32

Source

pub fn get_text_line_height_with_spacing<'a>(&'a self) -> f32

Source

pub fn get_time<'a>(&'a self) -> f64

Source

pub fn get_tree_node_to_label_spacing<'a>(&'a self) -> f32

Source

pub fn get_version<'a>(&'a self) -> String

Source

pub fn get_window_content_region_max<'a>(&'a self) -> ImVec2

Source

pub fn get_window_content_region_min<'a>(&'a self) -> ImVec2

Source

pub fn get_window_content_region_width<'a>(&'a self) -> f32

Source

pub fn get_window_height<'a>(&'a self) -> f32

Source

pub fn get_window_pos<'a>(&'a self) -> ImVec2

Source

pub fn get_window_size<'a>(&'a self) -> ImVec2

Source

pub fn get_window_width<'a>(&'a self) -> f32

Source

pub fn image<'a>( &'a self, user_texture_id: ImTextureID, size: ImVec2, uv0: impl Into<Option<ImVec2>>, uv1: impl Into<Option<ImVec2>>, tint_col: impl Into<Option<ImVec4>>, border_col: impl Into<Option<ImVec4>>, )

Source

pub fn image_button<'a>( &'a self, user_texture_id: ImTextureID, size: ImVec2, uv0: impl Into<Option<ImVec2>>, uv1: impl Into<Option<ImVec2>>, frame_padding: impl Into<Option<i32>>, bg_col: impl Into<Option<ImVec4>>, tint_col: impl Into<Option<ImVec4>>, ) -> bool

Source

pub fn indent<'a>(&'a self, indent_w: impl Into<Option<f32>>)

Source

pub fn input_double<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut f64, step: impl Into<Option<f64>>, step_fast: impl Into<Option<f64>>, format: impl Into<Option<&'d CStr>>, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_float<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut f32, step: impl Into<Option<f32>>, step_fast: impl Into<Option<f32>>, format: impl Into<Option<&'d CStr>>, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_float2<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 2], format: impl Into<Option<&'d CStr>>, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_float3<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 3], format: impl Into<Option<&'d CStr>>, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_float4<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 4], format: impl Into<Option<&'d CStr>>, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_int<'a, 'b, 'c>( &'a self, label: &'b CStr, v: &'c mut i32, step: impl Into<Option<i32>>, step_fast: impl Into<Option<i32>>, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_int2<'a, 'b, 'c>( &'a self, label: &'b CStr, v: &'c mut [i32; 2], extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_int3<'a, 'b, 'c>( &'a self, label: &'b CStr, v: &'c mut [i32; 3], extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn input_int4<'a, 'b, 'c>( &'a self, label: &'b CStr, v: &'c mut [i32; 4], extra_flags: impl Into<Option<ImGuiInputTextFlags>>, ) -> bool

Source

pub fn invisible_button<'a, 'b>( &'a self, str_id: &'b CStr, size: ImVec2, ) -> bool

Source

pub fn is_any_item_active<'a>(&'a self) -> bool

Source

pub fn is_any_item_focused<'a>(&'a self) -> bool

Source

pub fn is_any_item_hovered<'a>(&'a self) -> bool

Source

pub fn is_any_mouse_down<'a>(&'a self) -> bool

Source

pub fn is_item_active<'a>(&'a self) -> bool

Source

pub fn is_item_clicked<'a>( &'a self, mouse_button: impl Into<Option<i32>>, ) -> bool

Source

pub fn is_item_deactivated<'a>(&'a self) -> bool

Source

pub fn is_item_deactivated_after_edit<'a>(&'a self) -> bool

Source

pub fn is_item_edited<'a>(&'a self) -> bool

Source

pub fn is_item_focused<'a>(&'a self) -> bool

Source

pub fn is_item_hovered<'a>( &'a self, flags: impl Into<Option<ImGuiHoveredFlags>>, ) -> bool

Source

pub fn is_item_visible<'a>(&'a self) -> bool

Source

pub fn is_key_down<'a>(&'a self, user_key_index: i32) -> bool

Source

pub fn is_key_pressed<'a>( &'a self, user_key_index: i32, repeat: impl Into<Option<bool>>, ) -> bool

Source

pub fn is_key_released<'a>(&'a self, user_key_index: i32) -> bool

Source

pub fn is_mouse_clicked<'a>( &'a self, button: i32, repeat: impl Into<Option<bool>>, ) -> bool

Source

pub fn is_mouse_double_clicked<'a>(&'a self, button: i32) -> bool

Source

pub fn is_mouse_down<'a>(&'a self, button: i32) -> bool

Source

pub fn is_mouse_dragging<'a>( &'a self, button: impl Into<Option<i32>>, lock_threshold: impl Into<Option<f32>>, ) -> bool

Source

pub fn is_mouse_hovering_rect<'a>( &'a self, r_min: ImVec2, r_max: ImVec2, clip: impl Into<Option<bool>>, ) -> bool

Source

pub fn is_mouse_pos_valid<'a, 'b>( &'a self, mouse_pos: impl Into<Option<&'b ImVec2>>, ) -> bool

Source

pub fn is_mouse_released<'a>(&'a self, button: i32) -> bool

Source

pub fn is_popup_open<'a, 'b>(&'a self, str_id: &'b CStr) -> bool

Source

pub fn is_rect_visible<'a>(&'a self, size: ImVec2) -> bool

Source

pub fn is_rect_visible_vec2<'a>( &'a self, rect_min: ImVec2, rect_max: ImVec2, ) -> bool

Source

pub fn is_window_appearing<'a>(&'a self) -> bool

Source

pub fn is_window_collapsed<'a>(&'a self) -> bool

Source

pub fn is_window_focused<'a>( &'a self, flags: impl Into<Option<ImGuiFocusedFlags>>, ) -> bool

Source

pub fn is_window_hovered<'a>( &'a self, flags: impl Into<Option<ImGuiHoveredFlags>>, ) -> bool

Source

pub fn label_text<'a, 'b, 'c>(&'a self, label: &'b CStr, fmt: &'c CStr)

Source

pub fn list_box_header_vec2<'a, 'b>( &'a self, label: &'b CStr, size: impl Into<Option<ImVec2>>, ) -> bool

Source

pub fn list_box_header_int<'a, 'b>( &'a self, label: &'b CStr, items_count: i32, height_in_items: impl Into<Option<i32>>, ) -> bool

Source

pub fn load_ini_settings_from_disk<'a, 'b>(&'a self, ini_filename: &'b CStr)

Source

pub fn load_ini_settings_from_memory<'a, 'b>( &'a self, ini_data: &'b CStr, ini_size: impl Into<Option<usize>>, )

Source

pub fn log_buttons<'a>(&'a self)

Source

pub fn log_finish<'a>(&'a self)

Source

pub fn log_text<'a, 'b>(&'a self, fmt: &'b CStr)

Source

pub fn log_to_clipboard<'a>(&'a self, max_depth: impl Into<Option<i32>>)

Source

pub fn log_to_file<'a, 'b>( &'a self, max_depth: impl Into<Option<i32>>, filename: impl Into<Option<&'b CStr>>, )

Source

pub fn log_to_tty<'a>(&'a self, max_depth: impl Into<Option<i32>>)

Source

pub fn menu_item_bool<'a, 'b, 'c>( &'a self, label: &'b CStr, shortcut: impl Into<Option<&'c CStr>>, selected: impl Into<Option<bool>>, enabled: impl Into<Option<bool>>, ) -> bool

Source

pub fn menu_item_bool_ptr<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, shortcut: &'c CStr, p_selected: &'d mut bool, enabled: impl Into<Option<bool>>, ) -> bool

Source

pub fn new_frame<'a>(&'a self)

Source

pub fn new_line<'a>(&'a self)

Source

pub fn next_column<'a>(&'a self)

Source

pub fn open_popup<'a, 'b>(&'a self, str_id: &'b CStr)

Source

pub fn open_popup_on_item_click<'a, 'b>( &'a self, str_id: impl Into<Option<&'b CStr>>, mouse_button: impl Into<Option<i32>>, ) -> bool

Source

pub fn plot_histogram_float_ptr<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, values: &'c f32, values_count: i32, values_offset: impl Into<Option<i32>>, overlay_text: impl Into<Option<&'d CStr>>, scale_min: impl Into<Option<f32>>, scale_max: impl Into<Option<f32>>, graph_size: impl Into<Option<ImVec2>>, stride: impl Into<Option<i32>>, )

Source

pub fn plot_lines<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, values: &'c f32, values_count: i32, values_offset: impl Into<Option<i32>>, overlay_text: impl Into<Option<&'d CStr>>, scale_min: impl Into<Option<f32>>, scale_max: impl Into<Option<f32>>, graph_size: impl Into<Option<ImVec2>>, stride: impl Into<Option<i32>>, )

Source

pub fn pop_allow_keyboard_focus<'a>(&'a self)

Source

pub fn pop_button_repeat<'a>(&'a self)

Source

pub fn pop_clip_rect<'a>(&'a self)

Source

pub fn pop_font<'a>(&'a self)

Source

pub fn pop_id<'a>(&'a self)

Source

pub fn pop_item_width<'a>(&'a self)

Source

pub fn pop_style_color<'a>(&'a self, count: impl Into<Option<i32>>)

Source

pub fn pop_style_var<'a>(&'a self, count: impl Into<Option<i32>>)

Source

pub fn pop_text_wrap_pos<'a>(&'a self)

Source

pub fn progress_bar<'a, 'b>( &'a self, fraction: f32, size_arg: impl Into<Option<ImVec2>>, overlay: impl Into<Option<&'b CStr>>, )

Source

pub fn push_allow_keyboard_focus<'a>(&'a self, allow_keyboard_focus: bool)

Source

pub fn push_button_repeat<'a>(&'a self, repeat: bool)

Source

pub fn push_clip_rect<'a>( &'a self, clip_rect_min: ImVec2, clip_rect_max: ImVec2, intersect_with_current_clip_rect: bool, )

Source

pub fn push_id_str<'a, 'b>(&'a self, str_id: &'b CStr)

Source

pub fn push_id_range<'a, 'b, 'c>( &'a self, str_id_begin: &'b CStr, str_id_end: &'c CStr, )

Source

pub fn push_id_int<'a>(&'a self, int_id: i32)

Source

pub fn push_item_width<'a>(&'a self, item_width: f32)

Source

pub fn push_style_color_u32<'a>(&'a self, idx: ImGuiCol, col: u32)

Source

pub fn push_style_color<'a>(&'a self, idx: ImGuiCol, col: ImVec4)

Source

pub fn push_style_var_float<'a>(&'a self, idx: ImGuiStyleVar, val: f32)

Source

pub fn push_style_var_vec2<'a>(&'a self, idx: ImGuiStyleVar, val: ImVec2)

Source

pub fn push_text_wrap_pos<'a>(&'a self, wrap_pos_x: impl Into<Option<f32>>)

Source

pub fn radio_button_bool<'a, 'b>( &'a self, label: &'b CStr, active: bool, ) -> bool

Source

pub fn radio_button_int_ptr<'a, 'b, 'c>( &'a self, label: &'b CStr, v: &'c mut i32, v_button: i32, ) -> bool

Source

pub fn render<'a>(&'a self)

Source

pub fn reset_mouse_drag_delta<'a>(&'a self, button: impl Into<Option<i32>>)

Source

pub fn same_line<'a>( &'a self, pos_x: impl Into<Option<f32>>, spacing_w: impl Into<Option<f32>>, )

Source

pub fn save_ini_settings_to_disk<'a, 'b>(&'a self, ini_filename: &'b CStr)

Source

pub fn save_ini_settings_to_memory<'a, 'b>( &'a self, out_ini_size: impl Into<Option<&'b mut usize>>, ) -> String

Source

pub fn selectable<'a, 'b>( &'a self, label: &'b CStr, selected: impl Into<Option<bool>>, flags: impl Into<Option<ImGuiSelectableFlags>>, size: impl Into<Option<ImVec2>>, ) -> bool

Source

pub fn selectable_bool_ptr<'a, 'b, 'c>( &'a self, label: &'b CStr, p_selected: &'c mut bool, flags: impl Into<Option<ImGuiSelectableFlags>>, size: impl Into<Option<ImVec2>>, ) -> bool

Source

pub fn separator<'a>(&'a self)

Source

pub fn set_clipboard_text<'a, 'b>(&'a self, text: &'b CStr)

Source

pub fn set_color_edit_options<'a>(&'a self, flags: ImGuiColorEditFlags)

Source

pub fn set_column_offset<'a>(&'a self, column_index: i32, offset_x: f32)

Source

pub fn set_column_width<'a>(&'a self, column_index: i32, width: f32)

Source

pub fn set_cursor_pos<'a>(&'a self, local_pos: ImVec2)

Source

pub fn set_cursor_pos_x<'a>(&'a self, x: f32)

Source

pub fn set_cursor_pos_y<'a>(&'a self, y: f32)

Source

pub fn set_cursor_screen_pos<'a>(&'a self, screen_pos: ImVec2)

Source

pub fn set_item_allow_overlap<'a>(&'a self)

Source

pub fn set_item_default_focus<'a>(&'a self)

Source

pub fn set_keyboard_focus_here<'a>(&'a self, offset: impl Into<Option<i32>>)

Source

pub fn set_mouse_cursor<'a>(&'a self, _type: ImGuiMouseCursor)

Source

pub fn set_next_tree_node_open<'a>( &'a self, is_open: bool, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_next_window_bg_alpha<'a>(&'a self, alpha: f32)

Source

pub fn set_next_window_collapsed<'a>( &'a self, collapsed: bool, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_next_window_content_size<'a>(&'a self, size: ImVec2)

Source

pub fn set_next_window_focus<'a>(&'a self)

Source

pub fn set_next_window_pos<'a>( &'a self, pos: ImVec2, cond: impl Into<Option<ImGuiCond>>, pivot: impl Into<Option<ImVec2>>, )

Source

pub fn set_next_window_size<'a>( &'a self, size: ImVec2, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_scroll_from_pos_y<'a>( &'a self, pos_y: f32, center_y_ratio: impl Into<Option<f32>>, )

Source

pub fn set_scroll_here_y<'a>(&'a self, center_y_ratio: impl Into<Option<f32>>)

Source

pub fn set_scroll_x<'a>(&'a self, scroll_x: f32)

Source

pub fn set_scroll_y<'a>(&'a self, scroll_y: f32)

Source

pub fn set_tooltip<'a, 'b>(&'a self, fmt: &'b CStr)

Source

pub fn set_window_collapsed_bool<'a>( &'a self, collapsed: bool, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_window_collapsed_str<'a, 'b>( &'a self, name: &'b CStr, collapsed: bool, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_window_focus<'a>(&'a self)

Source

pub fn set_window_focus_str<'a, 'b>(&'a self, name: &'b CStr)

Source

pub fn set_window_font_scale<'a>(&'a self, scale: f32)

Source

pub fn set_window_pos_vec2<'a>( &'a self, pos: ImVec2, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_window_pos_str<'a, 'b>( &'a self, name: &'b CStr, pos: ImVec2, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_window_size_vec2<'a>( &'a self, size: ImVec2, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn set_window_size_str<'a, 'b>( &'a self, name: &'b CStr, size: ImVec2, cond: impl Into<Option<ImGuiCond>>, )

Source

pub fn show_about_window<'a, 'b>( &'a self, p_open: impl Into<Option<&'b mut bool>>, )

Source

pub fn show_demo_window<'a, 'b>( &'a self, p_open: impl Into<Option<&'b mut bool>>, )

Source

pub fn show_font_selector<'a, 'b>(&'a self, label: &'b CStr)

Source

pub fn show_metrics_window<'a, 'b>( &'a self, p_open: impl Into<Option<&'b mut bool>>, )

Source

pub fn show_style_selector<'a, 'b>(&'a self, label: &'b CStr) -> bool

Source

pub fn show_user_guide<'a>(&'a self)

Source

pub fn slider_angle<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v_rad: &'c mut f32, v_degrees_min: impl Into<Option<f32>>, v_degrees_max: impl Into<Option<f32>>, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn slider_float<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut f32, v_min: f32, v_max: f32, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn slider_float2<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 2], v_min: f32, v_max: f32, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn slider_float3<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 3], v_min: f32, v_max: f32, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn slider_float4<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [f32; 4], v_min: f32, v_max: f32, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn slider_int<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut i32, v_min: i32, v_max: i32, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn slider_int2<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [i32; 2], v_min: i32, v_max: i32, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn slider_int3<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [i32; 3], v_min: i32, v_max: i32, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn slider_int4<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, v: &'c mut [i32; 4], v_min: i32, v_max: i32, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn small_button<'a, 'b>(&'a self, label: &'b CStr) -> bool

Source

pub fn spacing<'a>(&'a self)

Source

pub fn text<'a, 'b>(&'a self, fmt: &'b CStr)

Source

pub fn text_colored<'a, 'b>(&'a self, col: ImVec4, fmt: &'b CStr)

Source

pub fn text_disabled<'a, 'b>(&'a self, fmt: &'b CStr)

Source

pub fn text_wrapped<'a, 'b>(&'a self, fmt: &'b CStr)

Source

pub fn tree_advance_to_label_pos<'a>(&'a self)

Source

pub fn tree_node_str<'a, 'b>(&'a self, label: &'b CStr) -> bool

Source

pub fn tree_node_str_str<'a, 'b, 'c>( &'a self, str_id: &'b CStr, fmt: &'c CStr, ) -> bool

Source

pub fn tree_node_ex_str<'a, 'b>( &'a self, label: &'b CStr, flags: impl Into<Option<ImGuiTreeNodeFlags>>, ) -> bool

Source

pub fn tree_node_ex_str_str<'a, 'b, 'c>( &'a self, str_id: &'b CStr, flags: ImGuiTreeNodeFlags, fmt: &'c CStr, ) -> bool

Source

pub fn tree_pop<'a>(&'a self)

Source

pub fn tree_push_str<'a, 'b>(&'a self, str_id: &'b CStr)

Source

pub fn unindent<'a>(&'a self, indent_w: impl Into<Option<f32>>)

Source

pub fn v_slider_float<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, size: ImVec2, v: &'c mut f32, v_min: f32, v_max: f32, format: impl Into<Option<&'d CStr>>, power: impl Into<Option<f32>>, ) -> bool

Source

pub fn v_slider_int<'a, 'b, 'c, 'd>( &'a self, label: &'b CStr, size: ImVec2, v: &'c mut i32, v_min: i32, v_max: i32, format: impl Into<Option<&'d CStr>>, ) -> bool

Source

pub fn value_bool<'a, 'b>(&'a self, prefix: &'b CStr, b: bool)

Source

pub fn value_int<'a, 'b>(&'a self, prefix: &'b CStr, v: i32)

Source

pub fn value_uint<'a, 'b>(&'a self, prefix: &'b CStr, v: u32)

Source

pub fn value_float<'a, 'b, 'c>( &'a self, prefix: &'b CStr, v: f32, float_format: impl Into<Option<&'c CStr>>, )

Source§

impl ImGui

Source

pub fn new() -> Result<ImGui, String>

Source

pub fn input_text( &self, label: &CStr, s: &mut String, extra_flags: impl Into<Option<ImGuiInputTextFlags>>, )

Trait Implementations§

Source§

impl Clone for ImGui

Source§

fn clone(&self) -> ImGui

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Freeze for ImGui

§

impl RefUnwindSafe for ImGui

§

impl !Send for ImGui

§

impl !Sync for ImGui

§

impl Unpin for ImGui

§

impl UnwindSafe for ImGui

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.