pub struct TreeDrawOutput {
pub node_rects: Vec<(TreeCoord, Rect)>,
pub action_button: Option<(TreeButtonAction, Rect, TreeCoord)>,
}Expand description
Tree-modal renderer output. Carries the same per-node click rects the modal has always exposed, plus an optional clickable action button (Buy or Refund) for the focused node — that’s the left-click target for touch / single-button players.
Fields§
§node_rects: Vec<(TreeCoord, Rect)>Auto Trait Implementations§
impl Freeze for TreeDrawOutput
impl RefUnwindSafe for TreeDrawOutput
impl Send for TreeDrawOutput
impl Sync for TreeDrawOutput
impl Unpin for TreeDrawOutput
impl UnsafeUnpin for TreeDrawOutput
impl UnwindSafe for TreeDrawOutput
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