aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tile.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-02-02 08:41:42 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-02-10 07:29:33 -0800
commita451f75917e427a4b4c7d986ce74e5a3999e563d (patch)
tree0e0f74e81e85485d5ff07f2ceb5567d4059a06d2 /src/layout/tile.rs
parent1515410012842c419e8bc3de717b8a51b1a0b45c (diff)
downloadniri-a451f75917e427a4b4c7d986ce74e5a3999e563d.tar.gz
niri-a451f75917e427a4b4c7d986ce74e5a3999e563d.tar.bz2
niri-a451f75917e427a4b4c7d986ce74e5a3999e563d.zip
Implement tab indicators
Diffstat (limited to 'src/layout/tile.rs')
-rw-r--r--src/layout/tile.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index a08f058f..7a49f5ed 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -563,7 +563,7 @@ impl<W: LayoutElement> Tile<W> {
size
}
- fn animated_window_size(&self) -> Size<f64, Logical> {
+ pub fn animated_window_size(&self) -> Size<f64, Logical> {
let mut size = self.window_size();
if let Some(resize) = &self.resize_animation {
@@ -580,7 +580,7 @@ impl<W: LayoutElement> Tile<W> {
size
}
- fn animated_tile_size(&self) -> Size<f64, Logical> {
+ pub fn animated_tile_size(&self) -> Size<f64, Logical> {
let mut size = self.animated_window_size();
if self.is_fullscreen {
@@ -1031,6 +1031,14 @@ impl<W: LayoutElement> Tile<W> {
self.unmap_snapshot.take()
}
+ pub fn border(&self) -> &FocusRing {
+ &self.border
+ }
+
+ pub fn focus_ring(&self) -> &FocusRing {
+ &self.focus_ring
+ }
+
pub fn options(&self) -> &Rc<Options> {
&self.options
}