pub struct DrmOutput { /* private fields */ }
Expand description
DrmOutput
is representation of physical output device.
Implementations§
Trait Implementations§
Source§impl Output for DrmOutput
impl Output for DrmOutput
Source§fn draw(
&mut self,
layunder: &Vec<SurfaceContext>,
surfaces: &Vec<SurfaceContext>,
layover: &Vec<SurfaceContext>,
viewer: &dyn SurfaceViewer,
) -> Result<(), Illusion>
fn draw( &mut self, layunder: &Vec<SurfaceContext>, surfaces: &Vec<SurfaceContext>, layover: &Vec<SurfaceContext>, viewer: &dyn SurfaceViewer, ) -> Result<(), Illusion>
Draws passed scene using renderer.
Source§fn take_screenshot(&self) -> Result<Buffer, Illusion>
fn take_screenshot(&self) -> Result<Buffer, Illusion>
Takes screenshot. Returns Buffer
containing image data.
Source§fn get_info(&self) -> OutputInfo
fn get_info(&self) -> OutputInfo
Returns info about output.
Source§fn set_position(&mut self, position: Position)
fn set_position(&mut self, position: Position)
Sets global position.
Auto Trait Implementations§
impl Freeze for DrmOutput
impl RefUnwindSafe for DrmOutput
impl !Send for DrmOutput
impl !Sync for DrmOutput
impl Unpin for DrmOutput
impl UnwindSafe for DrmOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more