all: implement output transforms
This commit is contained in:
parent
79df8d69f4
commit
b7d2964e19
20 changed files with 254 additions and 71 deletions
|
|
@ -15,7 +15,7 @@ use {
|
|||
timer::Timer,
|
||||
video::{
|
||||
connector_type::{ConnectorType, CON_UNKNOWN},
|
||||
Connector, DrmDevice, GfxApi, Mode,
|
||||
Connector, DrmDevice, GfxApi, Mode, Transform,
|
||||
},
|
||||
Axis, Direction, ModifiedKeySym, PciId, Workspace,
|
||||
},
|
||||
|
|
@ -473,6 +473,13 @@ impl Client {
|
|||
self.send(&ClientMessage::ConnectorSetEnabled { connector, enabled });
|
||||
}
|
||||
|
||||
pub fn connector_set_transform(&self, connector: Connector, transform: Transform) {
|
||||
self.send(&ClientMessage::ConnectorSetTransform {
|
||||
connector,
|
||||
transform,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn device_connectors(&self, device: DrmDevice) -> Vec<Connector> {
|
||||
let res = self.send_with_response(&ClientMessage::GetDeviceConnectors { device });
|
||||
get_response!(res, vec![], GetDeviceConnectors { connectors });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue