[−][src]Struct amethyst_rendy::rendy::wsi::winit::os::unix::x11::XConnection
A connection to an X server.
Fields
xlib: Xlib
xrandr: Xrandr_2_2_0
Exposes XRandR functions from version < 1.5
xrandr_1_5: Option<Xrandr>
Exposes XRandR functions from version = 1.5
xcursor: Xcursor
xinput2: XInput2
xlib_xcb: Xlib_xcb
display: *mut _XDisplay
x11_fd: i32
latest_error: Mutex<RawMutex, Option<XError>>
Methods
impl XConnection
[src]
pub fn get_monitor_for_window(&self, window_rect: Option<AaRect>) -> MonitorId
[src]
pub fn get_available_monitors(&self) -> Vec<MonitorId>
[src]
pub fn get_primary_monitor(&self) -> MonitorId
[src]
pub fn select_xrandr_input(&self, root: u64) -> Result<i32, XError>
[src]
impl XConnection
[src]
pub fn new(
error_handler: Option<unsafe extern "C" fn(*mut _XDisplay, *mut XErrorEvent) -> i32>
) -> Result<XConnection, XNotSupported>
[src]
error_handler: Option<unsafe extern "C" fn(*mut _XDisplay, *mut XErrorEvent) -> i32>
) -> Result<XConnection, XNotSupported>
pub fn check_errors(&self) -> Result<(), XError>
[src]
Checks whether an error has been triggered by the previous function calls.
pub fn ignore_error(&self)
[src]
Ignores any previous error.
impl XConnection
[src]
pub fn get_atom<T>(&self, name: T) -> u64 where
T: AsRef<CStr> + Debug,
[src]
T: AsRef<CStr> + Debug,
pub unsafe fn get_atom_unchecked(&self, name: &[u8]) -> u64
[src]
pub unsafe fn get_atoms(&self, names: &[*mut i8]) -> Result<Vec<u64>, XError>
[src]
impl XConnection
[src]
pub fn send_event<T>(
&self,
target_window: u64,
event_mask: Option<i64>,
event: T
) -> Flusher where
T: Into<XEvent>,
[src]
&self,
target_window: u64,
event_mask: Option<i64>,
event: T
) -> Flusher where
T: Into<XEvent>,
pub fn send_client_msg(
&self,
window: u64,
target_window: u64,
message_type: u64,
event_mask: Option<i64>,
data: [i64; 5]
) -> Flusher
[src]
&self,
window: u64,
target_window: u64,
message_type: u64,
event_mask: Option<i64>,
data: [i64; 5]
) -> Flusher
pub fn send_client_msg_multi<T>(
&self,
window: u64,
target_window: u64,
message_type: u64,
event_mask: Option<i64>,
data: &[T]
) -> Flusher where
T: Formattable,
[src]
&self,
window: u64,
target_window: u64,
message_type: u64,
event_mask: Option<i64>,
data: &[T]
) -> Flusher where
T: Formattable,
impl XConnection
[src]
pub fn translate_coords(
&self,
window: u64,
root: u64
) -> Result<TranslatedCoords, XError>
[src]
&self,
window: u64,
root: u64
) -> Result<TranslatedCoords, XError>
pub fn get_geometry(&self, window: u64) -> Result<Geometry, XError>
[src]
pub fn is_top_level(&self, window: u64, root: u64) -> Option<bool>
[src]
pub fn get_frame_extents_heuristic(
&self,
window: u64,
root: u64
) -> FrameExtentsHeuristic
[src]
&self,
window: u64,
root: u64
) -> FrameExtentsHeuristic
impl XConnection
[src]
pub fn get_wm_hints(
&self,
window: u64
) -> Result<XSmartPointer<XWMHints>, XError>
[src]
&self,
window: u64
) -> Result<XSmartPointer<XWMHints>, XError>
pub fn set_wm_hints(
&self,
window: u64,
wm_hints: XSmartPointer<XWMHints>
) -> Flusher
[src]
&self,
window: u64,
wm_hints: XSmartPointer<XWMHints>
) -> Flusher
pub fn get_normal_hints(&self, window: u64) -> Result<NormalHints, XError>
[src]
pub fn set_normal_hints(
&self,
window: u64,
normal_hints: NormalHints
) -> Flusher
[src]
&self,
window: u64,
normal_hints: NormalHints
) -> Flusher
impl XConnection
[src]
pub fn select_xinput_events(
&self,
window: u64,
device_id: i32,
mask: i32
) -> Flusher
[src]
&self,
window: u64,
device_id: i32,
mask: i32
) -> Flusher
pub fn select_xkb_events(&self, device_id: u32, mask: u64) -> Option<Flusher>
[src]
pub fn query_pointer(
&self,
window: u64,
device_id: i32
) -> Result<PointerState, XError>
[src]
&self,
window: u64,
device_id: i32
) -> Result<PointerState, XError>
pub fn lookup_utf8(&self, ic: *mut _XIC, key_event: &mut XKeyEvent) -> String
[src]
impl XConnection
[src]
pub fn alloc_class_hint(&self) -> XSmartPointer<XClassHint>
[src]
pub fn alloc_size_hints(&self) -> XSmartPointer<XSizeHints>
[src]
pub fn alloc_wm_hints(&self) -> XSmartPointer<XWMHints>
[src]
impl XConnection
[src]
pub unsafe fn get_xft_dpi(&self) -> Option<f64>
[src]
pub unsafe fn get_output_info(
&self,
resources: *mut XRRScreenResources,
repr: &MonitorRepr
) -> Option<(String, f64)>
[src]
&self,
resources: *mut XRRScreenResources,
repr: &MonitorRepr
) -> Option<(String, f64)>
impl XConnection
[src]
pub fn get_property<T>(
&self,
window: u64,
property: u64,
property_type: u64
) -> Result<Vec<T>, GetPropertyError> where
T: Formattable,
[src]
&self,
window: u64,
property: u64,
property_type: u64
) -> Result<Vec<T>, GetPropertyError> where
T: Formattable,
pub fn change_property<T>(
&'a self,
window: u64,
property: u64,
property_type: u64,
mode: PropMode,
new_value: &[T]
) -> Flusher<'a> where
T: Formattable,
[src]
&'a self,
window: u64,
property: u64,
property_type: u64,
mode: PropMode,
new_value: &[T]
) -> Flusher<'a> where
T: Formattable,
impl XConnection
[src]
pub fn update_cached_wm_info(&self, root: u64)
[src]
impl XConnection
[src]
pub fn flush_requests(&self) -> Result<(), XError>
[src]
pub fn sync_with_server(&self) -> Result<(), XError>
[src]
Trait Implementations
impl Sync for XConnection
[src]
impl Debug for XConnection
[src]
impl Send for XConnection
[src]
impl Drop for XConnection
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,