Skip to main content

ScriptTest

Struct ScriptTest 

Source
pub struct ScriptTest<'a> { /* private fields */ }

Implementations§

Source§

impl ScriptTest<'_>

Source

pub fn set_ref(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_click(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_click_with_button( &mut self, ref: &str, button: MouseButton, ) -> ImGuiResult<()>

Source

pub fn item_double_click(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_open(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_close(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_set_opened(&mut self, ref: &str, opened: bool) -> ImGuiResult<()>

Source

pub fn item_check(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_set_checked(&mut self, ref: &str, checked: bool) -> ImGuiResult<()>

Source

pub fn item_uncheck(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_input_int(&mut self, ref: &str, v: i32) -> ImGuiResult<()>

Source

pub fn item_input_str(&mut self, ref: &str, v: &str) -> ImGuiResult<()>

Source

pub fn mouse_move(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn mouse_move_to_pos(&mut self, x: f32, y: f32) -> ImGuiResult<()>

Source

pub fn mouse_teleport_to_pos(&mut self, x: f32, y: f32) -> ImGuiResult<()>

Source

pub fn mouse_move_to_void(&mut self)

Source

pub fn mouse_click(&mut self, button: MouseButton)

Source

pub fn mouse_click_multi( &mut self, button: MouseButton, count: i32, ) -> ImGuiResult<()>

Source

pub fn mouse_double_click(&mut self, button: MouseButton)

Source

pub fn mouse_down(&mut self, button: MouseButton)

Source

pub fn mouse_up(&mut self, button: MouseButton)

Source

pub fn mouse_lift_drag_threshold(&mut self, button: MouseButton)

Source

pub fn mouse_drag_with_delta( &mut self, dx: f32, dy: f32, button: MouseButton, ) -> ImGuiResult<()>

Source

pub fn mouse_click_on_void( &mut self, button: i32, count: i32, ) -> ImGuiResult<()>

Source

pub fn mouse_wheel(&mut self, dx: f32, dy: f32) -> ImGuiResult<()>

Source

pub fn key_down(&mut self, key_chord: KeyChord)

Source

pub fn key_up(&mut self, key_chord: KeyChord)

Source

pub fn key_press(&mut self, key_chord: KeyChord, count: i32) -> ImGuiResult<()>

Source

pub fn key_hold(&mut self, key_chord: KeyChord, seconds: f32) -> ImGuiResult<()>

Source

pub fn key_chars(&mut self, chars: &str) -> ImGuiResult<()>

Source

pub fn key_chars_append(&mut self, chars: &str) -> ImGuiResult<()>

Source

pub fn key_chars_append_enter(&mut self, chars: &str) -> ImGuiResult<()>

Source

pub fn key_chars_replace(&mut self, chars: &str) -> ImGuiResult<()>

Source

pub fn key_chars_replace_enter(&mut self, chars: &str) -> ImGuiResult<()>

Source

pub fn item_hold(&mut self, ref: &str, seconds: f32) -> ImGuiResult<()>

Source

pub fn item_hold_for_frames( &mut self, ref: &str, frames: i32, ) -> ImGuiResult<()>

Source

pub fn item_drag_over_and_hold( &mut self, src_ref: &str, dst_ref: &str, ) -> ImGuiResult<()>

Source

pub fn item_drag_and_drop( &mut self, src_ref: &str, dst_ref: &str, button: MouseButton, ) -> ImGuiResult<()>

Source

pub fn item_drag_with_delta( &mut self, ref: &str, dx: f32, dy: f32, ) -> ImGuiResult<()>

Source

pub fn scroll_to_x(&mut self, ref: &str, scroll_x: f32) -> ImGuiResult<()>

Source

pub fn scroll_to_y(&mut self, ref: &str, scroll_y: f32) -> ImGuiResult<()>

Source

pub fn scroll_to_pos_x( &mut self, window_ref: &str, pos_x: f32, ) -> ImGuiResult<()>

Source

pub fn scroll_to_pos_y( &mut self, window_ref: &str, pos_y: f32, ) -> ImGuiResult<()>

Source

pub fn scroll_to_item_x(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn scroll_to_item_y(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn scroll_to_top(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn scroll_to_bottom(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn tab_close(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn combo_click(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn combo_click_all(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn item_open_all( &mut self, parent_ref: &str, depth: i32, passes: i32, ) -> ImGuiResult<()>

Source

pub fn item_close_all( &mut self, parent_ref: &str, depth: i32, passes: i32, ) -> ImGuiResult<()>

Source

pub fn table_click_header( &mut self, table_ref: &str, label: &str, key_mods: KeyMods, ) -> ImGuiResult<()>

Source

pub fn table_open_context_menu( &mut self, table_ref: &str, column_n: i32, ) -> ImGuiResult<()>

Source

pub fn table_set_column_enabled( &mut self, table_ref: &str, column_n: i32, enabled: bool, ) -> ImGuiResult<()>

Source

pub fn table_set_column_enabled_by_label( &mut self, table_ref: &str, label: &str, enabled: bool, ) -> ImGuiResult<()>

Source

pub fn table_resize_column( &mut self, table_ref: &str, column_n: i32, width: f32, ) -> ImGuiResult<()>

Source

pub fn menu_click(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn menu_check(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn menu_uncheck(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn menu_check_all(&mut self, parent_ref: &str) -> ImGuiResult<()>

Source

pub fn menu_uncheck_all(&mut self, parent_ref: &str) -> ImGuiResult<()>

Source

pub fn set_input_mode(&mut self, mode: InputMode)

Source

pub fn nav_move_to(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn nav_activate(&mut self)

Source

pub fn nav_input(&mut self)

Source

pub fn window_close(&mut self, window_ref: &str) -> ImGuiResult<()>

Source

pub fn window_collapse( &mut self, window_ref: &str, collapsed: bool, ) -> ImGuiResult<()>

Source

pub fn window_focus(&mut self, window_ref: &str) -> ImGuiResult<()>

Source

pub fn window_bring_to_front(&mut self, window_ref: &str) -> ImGuiResult<()>

Source

pub fn window_move( &mut self, window_ref: &str, x: f32, y: f32, ) -> ImGuiResult<()>

Source

pub fn window_resize( &mut self, window_ref: &str, w: f32, h: f32, ) -> ImGuiResult<()>

Source

pub fn sleep_seconds(&mut self, seconds: f32) -> ImGuiResult<()>

Source

pub fn assert_item_exists(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn assert_item_visible(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn assert_item_read_int_eq( &mut self, ref: &str, expected: i32, ) -> ImGuiResult<()>

Source

pub fn assert_item_read_str_eq( &mut self, ref: &str, expected: &str, ) -> ImGuiResult<()>

Source

pub fn assert_item_read_float_eq( &mut self, ref: &str, expected: f32, epsilon: f32, ) -> ImGuiResult<()>

Source

pub fn assert_item_checked(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn assert_item_opened(&mut self, ref: &str) -> ImGuiResult<()>

Source

pub fn wait_for_item(&mut self, ref: &str, max_frames: i32) -> ImGuiResult<()>

Source

pub fn wait_for_item_visible( &mut self, ref: &str, max_frames: i32, ) -> ImGuiResult<()>

Source

pub fn wait_for_item_checked( &mut self, ref: &str, max_frames: i32, ) -> ImGuiResult<()>

Source

pub fn wait_for_item_opened( &mut self, ref: &str, max_frames: i32, ) -> ImGuiResult<()>

Source

pub fn input_text_replace( &mut self, ref: &str, text: &str, submit_enter: bool, ) -> ImGuiResult<()>

Source

pub fn yield_frames(&mut self, frames: i32)

Auto Trait Implementations§

§

impl<'a> Freeze for ScriptTest<'a>

§

impl<'a> RefUnwindSafe for ScriptTest<'a>

§

impl<'a> !Send for ScriptTest<'a>

§

impl<'a> !Sync for ScriptTest<'a>

§

impl<'a> Unpin for ScriptTest<'a>

§

impl<'a> UnsafeUnpin for ScriptTest<'a>

§

impl<'a> !UnwindSafe for ScriptTest<'a>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more