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
d9081087ec
2 changed files with 7 additions and 1 deletions
|
|
@ -405,7 +405,6 @@ impl<'t, T: Debug + 't> DslNsMap<'t, T> {
|
|||
)? ]);
|
||||
});
|
||||
|
||||
|
||||
#[macro_export] macro_rules!dsl_exprs((|$state:ident|->$Type:ty$({
|
||||
$($name:literal ($($arg:ident:$ty:ty),* $(,)?) => $body:expr),* $(,)?
|
||||
})?)=>{
|
||||
|
|
|
|||
|
|
@ -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