wayland: surface: inline trivial methods
This commit is contained in:
parent
0b985cefdb
commit
317a11d17c
1 changed files with 7 additions and 5 deletions
|
|
@ -87,22 +87,24 @@ impl<T: Dispatch<WlBuffer, u32>
|
|||
})
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn configured(&self) -> bool
|
||||
{
|
||||
self.configured
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn scale(&self) -> u32
|
||||
{
|
||||
self.scale
|
||||
}
|
||||
|
||||
pub fn ack_configure(&mut self, serial: u32)
|
||||
{
|
||||
self.configured = true;
|
||||
self.layer_surf.as_ref().unwrap().ack_configure(serial);
|
||||
}
|
||||
|
||||
pub fn scale(&self) -> u32
|
||||
{
|
||||
self.scale
|
||||
}
|
||||
|
||||
pub fn update_scale(&mut self, scale: u32)
|
||||
{
|
||||
self.scale = scale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue