portal: add a desktop portal
This commit is contained in:
parent
323a6ed953
commit
a162055f1d
38 changed files with 2389 additions and 27 deletions
|
|
@ -82,6 +82,7 @@ impl UsrJayCompositor {
|
|||
jo
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn watch_workspaces(&self) -> Rc<UsrJayWorkspaceWatcher> {
|
||||
let ww = Rc::new(UsrJayWorkspaceWatcher {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ impl UsrJayScreencast {
|
|||
});
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn allow_workspace(&self, ws: &JayWorkspace) {
|
||||
self.con.request(AllowWorkspace {
|
||||
self_id: self.id,
|
||||
|
|
@ -74,6 +75,7 @@ impl UsrJayScreencast {
|
|||
});
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn touch_allowed_workspaces(&self) {
|
||||
self.con
|
||||
.request(TouchAllowedWorkspaces { self_id: self.id });
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ pub trait UsrWlPointerOwner {
|
|||
}
|
||||
|
||||
impl UsrWlPointer {
|
||||
#[allow(dead_code)]
|
||||
pub fn set_cursor(&self, serial: u32, cursor: &UsrWlSurface, hot_x: i32, hot_y: i32) {
|
||||
self.con.request(SetCursor {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pub struct UsrWlShm {
|
|||
}
|
||||
|
||||
impl UsrWlShm {
|
||||
#[allow(dead_code)]
|
||||
pub fn create_pool(&self, fd: &Rc<OwnedFd>, size: i32) -> Rc<UsrWlShmPool> {
|
||||
let pool = Rc::new(UsrWlShmPool {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ impl UsrWlrLayerSurface {
|
|||
});
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn set_keyboard_interactivity(&self, ki: u32) {
|
||||
self.con.request(SetKeyboardInteractivity {
|
||||
self_id: self.id,
|
||||
|
|
@ -40,6 +41,7 @@ impl UsrWlrLayerSurface {
|
|||
});
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn set_layer(&self, layer: u32) {
|
||||
self.con.request(SetLayer {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ pub struct UsrWpViewport {
|
|||
}
|
||||
|
||||
impl UsrWpViewport {
|
||||
#[allow(dead_code)]
|
||||
pub fn set_source(&self, x: Fixed, y: Fixed, width: Fixed, height: Fixed) {
|
||||
self.con.request(SetSource {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ pub trait UsrZwlrScreencopyFrameOwner {
|
|||
}
|
||||
|
||||
impl UsrZwlrScreencopyFrame {
|
||||
#[allow(dead_code)]
|
||||
pub fn copy(&self, buffer: &UsrWlBuffer) {
|
||||
self.con.request(Copy {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ pub struct UsrZwlrScreencopyManager {
|
|||
}
|
||||
|
||||
impl UsrZwlrScreencopyManager {
|
||||
#[allow(dead_code)]
|
||||
pub fn capture_output(&self, output: &UsrWlOutput) -> Rc<UsrZwlrScreencopyFrame> {
|
||||
let frame = Rc::new(UsrZwlrScreencopyFrame {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue