document; refactor focus; highlight scene/track titles

This commit is contained in:
🪞👃🪞 2024-09-30 22:30:34 +03:00
parent d42512fc76
commit 267f9f61d5
6 changed files with 155 additions and 172 deletions

View file

@ -107,6 +107,8 @@ pub trait Area<N: Number>: Copy {
#[inline] fn shrink_y (&self, y: N) -> [N;4] { [self.x(), self.y(), self.w(), self.h() - y] }
#[inline] fn set_w (&self, w: N) -> [N;4] { [self.x(), self.y(), w, self.h()] }
#[inline] fn set_h (&self, h: N) -> [N;4] { [self.x(), self.y(), self.w(), h] }
#[inline] fn clip_h (&self, h: N) -> [N;4] { [self.x(), self.y(), self.w(), self.h().min(h)] }
#[inline] fn clip_w (&self, w: N) -> [N;4] { [self.x(), self.y(), self.w().min(w), self.h()] }
}
impl<N: Number> Area<N> for (N, N, N, N) {