Struct alacritty::event::Mouse[][src]

pub struct Mouse {
Show 14 fields pub left_button_state: ElementState, pub middle_button_state: ElementState, pub right_button_state: ElementState, pub last_click_timestamp: Instant, pub last_click_button: MouseButton, pub click_state: ClickState, pub scroll_px: f64, pub cell_side: Side, pub lines_scrolled: f32, pub block_hint_launcher: bool, pub hint_highlight_dirty: bool, pub inside_text_area: bool, pub x: usize, pub y: usize,
}
Expand description

State of the mouse.

Fields

left_button_state: ElementStatemiddle_button_state: ElementStateright_button_state: ElementStatelast_click_timestamp: Instantlast_click_button: MouseButtonclick_state: ClickStatescroll_px: f64cell_side: Sidelines_scrolled: f32block_hint_launcher: boolhint_highlight_dirty: boolinside_text_area: boolx: usizey: usize

Implementations

Convert mouse pixel coordinates to viewport point.

If the coordinates are outside of the terminal grid, like positions inside the padding, the coordinates will be clamped to the closest grid coordinates.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.