pub struct PairButtonResponse {
pub icon_clicked: bool,
pub arrow_clicked: bool,
pub icon_hovered: bool,
pub arrow_hovered: bool,
pub icon_rect: Rect,
pub arrow_rect: Rect,
}Expand description
Response from a pair button interaction
Fields§
§icon_clicked: boolWhether the icon (left) part was clicked
arrow_clicked: boolWhether the arrow (right) part was clicked
icon_hovered: boolWhether icon part is hovered
arrow_hovered: boolWhether arrow part is hovered
icon_rect: RectRect of the icon button (for anchoring submenus)
arrow_rect: RectRect of the arrow button (for anchoring submenus)
Trait Implementations§
Source§impl Clone for PairButtonResponse
impl Clone for PairButtonResponse
Source§fn clone(&self) -> PairButtonResponse
fn clone(&self) -> PairButtonResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PairButtonResponse
impl RefUnwindSafe for PairButtonResponse
impl Send for PairButtonResponse
impl Sync for PairButtonResponse
impl Unpin for PairButtonResponse
impl UnsafeUnpin for PairButtonResponse
impl UnwindSafe for PairButtonResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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