Trait tfc::InfoContext [−][src]
A context that supports fetching device information.
Implementors of this trait are able to fetch the state of the device.
Platform Differences
This trait isn't implemented for the Wayland (or more accurately: not X11) context. It is simply not possible to obtain this information under Wayland.
Required methods
fn cursor_location(&self) -> Result<(i32, i32), Error>
[src]
Get the location of the cursor in pixels.
The first tuple element is the horizontal coordinate with zero being the left side of the screen. The second tuple element is the vertical coordinate with zero being the top of the screen.
fn screen_size(&self) -> Result<(i32, i32), Error>
[src]
Get the size of the main screen in pixels.
The first tuple element is the width and the second tuple element is the height.