Struct screenruster_saver::Display
[−]
[src]
pub struct Display { // some fields omitted }
Methods
impl Display
[src]
fn open<N: AsRef<str>>(name: N, screen: i32, id: u64) -> Result<Display>
Open the matching Display.
fn context(&self) -> Rc<Context>
Get the OpenGL context.
fn draw(&mut self) -> Frame
Get a drawable OpenGL surface.
fn resize(&mut self, width: u32, height: u32)
Resize the Display.
fn screenshot(&self) -> DynamicImage
Take a screenshot.