wayland: surface: inline trivial methods

This commit is contained in:
Richard Acayan 2024-09-30 22:11:18 -04:00
parent 0b985cefdb
commit 317a11d17c

View file

@ -87,22 +87,24 @@ impl<T: Dispatch<WlBuffer, u32>
}) })
} }
#[inline(always)]
pub fn configured(&self) -> bool pub fn configured(&self) -> bool
{ {
self.configured self.configured
} }
#[inline(always)]
pub fn scale(&self) -> u32
{
self.scale
}
pub fn ack_configure(&mut self, serial: u32) pub fn ack_configure(&mut self, serial: u32)
{ {
self.configured = true; self.configured = true;
self.layer_surf.as_ref().unwrap().ack_configure(serial); self.layer_surf.as_ref().unwrap().ack_configure(serial);
} }
pub fn scale(&self) -> u32
{
self.scale
}
pub fn update_scale(&mut self, scale: u32) pub fn update_scale(&mut self, scale: u32)
{ {
self.scale = scale; self.scale = scale;