Struct leanshot_xlib::Window [−][src]
pub struct Window { /* fields omitted */ }
A wrapper around a window handle.
Methods
impl Window
[src]
impl Window
pub fn create(
display: &Display,
parent: Option<Window>,
location: Rectangle
) -> Result<Window, X11Error>
[src]
pub fn create(
display: &Display,
parent: Option<Window>,
location: Rectangle
) -> Result<Window, X11Error>
Create a new window
pub fn get_attributes(&self) -> Result<WindowAttributes, X11Error>
[src]
pub fn get_attributes(&self) -> Result<WindowAttributes, X11Error>
Get window attributes.
pub fn as_raw(&self) -> Window
[src]
pub fn as_raw(&self) -> Window
Get the raw window handle
pub fn get_image(&self) -> Result<Image, X11Error>
[src]
pub fn get_image(&self) -> Result<Image, X11Error>
Get image
Trait Implementations
impl Copy for Window
[src]
impl Copy for Window
impl Clone for Window
[src]
impl Clone for Window
fn clone(&self) -> Window
[src]
fn clone(&self) -> Window
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Window
[src]
impl PartialEq for Window
fn eq(&self, other: &Window) -> bool
[src]
fn eq(&self, other: &Window) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Window) -> bool
[src]
fn ne(&self, other: &Window) -> bool
This method tests for !=
.
impl Eq for Window
[src]
impl Eq for Window
impl GetDisplay for Window
[src]
impl GetDisplay for Window
fn get_display(&self) -> *mut Display
[src]
fn get_display(&self) -> *mut Display
Get the current display
impl Drawable for Window
[src]
impl Drawable for Window