Trait leanshot_xlib::Drawable [−][src]
pub trait Drawable: GetDisplay { fn as_drawable(&self) -> Drawable; fn get_image(&self, rect: Rectangle) -> Result<Image, X11Error> { ... } }
Anything that's drawable
Required Methods
fn as_drawable(&self) -> Drawable
Get drawable handle
Provided Methods
fn get_image(&self, rect: Rectangle) -> Result<Image, X11Error>
Capture a snapshot of this drawable, clipped by rect.
Implementors
impl Drawable for Window