Trait x11rb_async::protocol::randr::ConnectionExt
source · pub trait ConnectionExt: RequestConnection {
Show 45 methods
// Provided methods
fn randr_query_version(
&self,
major_version: u32,
minor_version: u32
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_screen_config(
&self,
window: Window,
timestamp: Timestamp,
config_timestamp: Timestamp,
size_id: u16,
rotation: Rotation,
rate: u16
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SetScreenConfigReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_select_input(
&self,
window: Window,
enable: NotifyMask
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_screen_info(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetScreenInfoReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_screen_size_range(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetScreenSizeRangeReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_screen_size(
&self,
window: Window,
width: u16,
height: u16,
mm_width: u32,
mm_height: u32
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_screen_resources(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetScreenResourcesReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_output_info(
&self,
output: Output,
config_timestamp: Timestamp
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetOutputInfoReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_list_output_properties(
&self,
output: Output
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListOutputPropertiesReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_query_output_property(
&self,
output: Output,
property: Atom
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryOutputPropertyReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_configure_output_property<'c, 'input, 'future>(
&'c self,
output: Output,
property: Atom,
pending: bool,
range: bool,
values: &'input [i32]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_change_output_property<'c, 'input, 'future>(
&'c self,
output: Output,
property: Atom,
type_: Atom,
format: u8,
mode: PropMode,
num_units: u32,
data: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_delete_output_property(
&self,
output: Output,
property: Atom
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_output_property<A>(
&self,
output: Output,
property: Atom,
type_: A,
long_offset: u32,
long_length: u32,
delete: bool,
pending: bool
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetOutputPropertyReply>, ConnectionError>> + Send + '_>>
where A: Into<Atom> + Send + 'static { ... }
fn randr_create_mode<'c, 'input, 'future>(
&'c self,
window: Window,
mode_info: ModeInfo,
name: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, CreateModeReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_destroy_mode(
&self,
mode: Mode
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_add_output_mode(
&self,
output: Output,
mode: Mode
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_delete_output_mode(
&self,
output: Output,
mode: Mode
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_crtc_info(
&self,
crtc: Crtc,
config_timestamp: Timestamp
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCrtcInfoReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_crtc_config<'c, 'input, 'future>(
&'c self,
crtc: Crtc,
timestamp: Timestamp,
config_timestamp: Timestamp,
x: i16,
y: i16,
mode: Mode,
rotation: Rotation,
outputs: &'input [Output]
) -> Pin<Box<dyn Future<Output = Result<Cookie<'c, Self, SetCrtcConfigReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_get_crtc_gamma_size(
&self,
crtc: Crtc
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCrtcGammaSizeReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_crtc_gamma(
&self,
crtc: Crtc
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCrtcGammaReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_crtc_gamma<'c, 'input, 'future>(
&'c self,
crtc: Crtc,
red: &'input [u16],
green: &'input [u16],
blue: &'input [u16]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_get_screen_resources_current(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetScreenResourcesCurrentReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_crtc_transform<'c, 'input, 'future>(
&'c self,
crtc: Crtc,
transform: Transform,
filter_name: &'input [u8],
filter_params: &'input [Fixed]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_get_crtc_transform(
&self,
crtc: Crtc
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetCrtcTransformReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_panning(
&self,
crtc: Crtc
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetPanningReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_panning(
&self,
crtc: Crtc,
timestamp: Timestamp,
left: u16,
top: u16,
width: u16,
height: u16,
track_left: u16,
track_top: u16,
track_width: u16,
track_height: u16,
border_left: i16,
border_top: i16,
border_right: i16,
border_bottom: i16
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, SetPanningReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_output_primary(
&self,
window: Window,
output: Output
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_output_primary(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetOutputPrimaryReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_providers(
&self,
window: Window
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetProvidersReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_provider_info(
&self,
provider: Provider,
config_timestamp: Timestamp
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetProviderInfoReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_provider_offload_sink(
&self,
provider: Provider,
sink_provider: Provider,
config_timestamp: Timestamp
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_provider_output_source(
&self,
provider: Provider,
source_provider: Provider,
config_timestamp: Timestamp
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_list_provider_properties(
&self,
provider: Provider
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, ListProviderPropertiesReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_query_provider_property(
&self,
provider: Provider,
property: Atom
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, QueryProviderPropertyReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_configure_provider_property<'c, 'input, 'future>(
&'c self,
provider: Provider,
property: Atom,
pending: bool,
range: bool,
values: &'input [i32]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_change_provider_property<'c, 'input, 'future>(
&'c self,
provider: Provider,
property: Atom,
type_: Atom,
format: u8,
mode: u8,
num_items: u32,
data: &'input [u8]
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'c, Self>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_delete_provider_property(
&self,
provider: Provider,
property: Atom
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_provider_property(
&self,
provider: Provider,
property: Atom,
type_: Atom,
long_offset: u32,
long_length: u32,
delete: bool,
pending: bool
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetProviderPropertyReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_get_monitors(
&self,
window: Window,
get_active: bool
) -> Pin<Box<dyn Future<Output = Result<Cookie<'_, Self, GetMonitorsReply>, ConnectionError>> + Send + '_>> { ... }
fn randr_set_monitor(
&self,
window: Window,
monitorinfo: MonitorInfo
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_delete_monitor(
&self,
window: Window,
name: Atom
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
fn randr_create_lease<'c, 'input, 'future>(
&'c self,
window: Window,
lid: Lease,
crtcs: &'input [Crtc],
outputs: &'input [Output]
) -> Pin<Box<dyn Future<Output = Result<CookieWithFds<'c, Self, CreateLeaseReply>, ConnectionError>> + Send + 'future>>
where 'c: 'future,
'input: 'future { ... }
fn randr_free_lease(
&self,
lid: Lease,
terminate: u8
) -> Pin<Box<dyn Future<Output = Result<VoidCookie<'_, Self>, ConnectionError>> + Send + '_>> { ... }
}Expand description
Extension trait defining the requests of this extension.