pub struct InputContext<'a> {
pub fingerer_rows: &'a [(usize, Rect)],
pub upgrade_rows: &'a [(usize, Rect)],
pub help_hits: &'a [(HelpAction, Rect)],
pub biscuit_rect: Rect,
pub golden_rect: Rect,
pub play_area: Rect,
pub prestige_reset_rect: Rect,
pub debug: bool,
pub current: &'a GameState,
}Expand description
Per-frame geometry the click router hit-tests against. All Rects come
from the latest ui::draw output; current is the latest published
snapshot. Borrowed for the duration of one event dispatch.
Fields§
§fingerer_rows: &'a [(usize, Rect)]§upgrade_rows: &'a [(usize, Rect)]§help_hits: &'a [(HelpAction, Rect)]§biscuit_rect: Rect§golden_rect: Rect§play_area: Rect§prestige_reset_rect: Rect§debug: bool§current: &'a GameStateAuto Trait Implementations§
impl<'a> Freeze for InputContext<'a>
impl<'a> RefUnwindSafe for InputContext<'a>
impl<'a> Send for InputContext<'a>
impl<'a> Sync for InputContext<'a>
impl<'a> Unpin for InputContext<'a>
impl<'a> UnsafeUnpin for InputContext<'a>
impl<'a> UnwindSafe for InputContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more