Struct leanshot_xlib::Display[][src]

pub struct Display { /* fields omitted */ }

A connection to an X server.

Methods

impl Display
[src]

Opens a new connection to an X server.

On POSIX-conformant systems, the display name or DISPLAY environment variable can be a string in the format: hostname:number.screen_number

Create a Display for an existing connection

Grab

Wrapper around XCreateFontCursor

Get the next event, blocks until an event is reached.

Returns the number of events that are still pending

Gets the raw X Display handle

Gets the default visual

Returns the root window for the given screen.

Returns the root window for the default screen.

Translate coordinates relative to w1 to coordinates relative to w2. If the coordinates are contained in a mapped child of the destination window, the third return value will hold that child window.

Sync

eturns the focus window and the current focus state.

Trait Implementations

impl Drop for Display
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Display

impl !Sync for Display