pub struct ComponentPosition {
pub comp_id: ComponentID,
pub min_x: usize,
pub max_x: usize,
pub min_y: usize,
pub max_y: usize,
}Expand description
Exact position of a component on the screen.
This must be used in the PositionChange event which notifies components about their position
on the screen.
Fields§
§comp_id: ComponentID§min_x: usize§max_x: usize§min_y: usize§max_y: usizeTrait Implementations§
Source§impl Clone for ComponentPosition
impl Clone for ComponentPosition
Source§fn clone(&self) -> ComponentPosition
fn clone(&self) -> ComponentPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentPosition
impl Debug for ComponentPosition
Source§impl Hash for ComponentPosition
impl Hash for ComponentPosition
Source§impl Ord for ComponentPosition
impl Ord for ComponentPosition
Source§fn cmp(&self, other: &ComponentPosition) -> Ordering
fn cmp(&self, other: &ComponentPosition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComponentPosition
impl PartialEq for ComponentPosition
Source§impl PartialOrd for ComponentPosition
impl PartialOrd for ComponentPosition
impl Copy for ComponentPosition
impl Eq for ComponentPosition
impl StructuralPartialEq for ComponentPosition
Auto Trait Implementations§
impl Freeze for ComponentPosition
impl RefUnwindSafe for ComponentPosition
impl Send for ComponentPosition
impl Sync for ComponentPosition
impl Unpin for ComponentPosition
impl UnwindSafe for ComponentPosition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.