mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
This commit is contained in:
parent
375b959e33
commit
446ec7a714
1 changed files with 7 additions and 0 deletions
|
|
@ -208,6 +208,13 @@ pub struct Measure<E: Output> {
|
|||
pub y: Arc<AtomicUsize>,
|
||||
}
|
||||
|
||||
impl<E: Output> PartialEq for Measure<E> {
|
||||
fn eq (&self, other: &Self) -> bool {
|
||||
self.x.load(Relaxed) == other.x.load(Relaxed) &&
|
||||
self.y.load(Relaxed) == other.y.load(Relaxed)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: 🡘 🡙 ←🡙→ indicator to expand window when too small
|
||||
impl<E: Output> Content<E> for Measure<E> {
|
||||
fn render (&self, to: &mut E) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue