aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tile.rs
diff options
context:
space:
mode:
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
}