egui: add integration
This commit is contained in:
parent
85b9b7222d
commit
008e8a671a
49 changed files with 4110 additions and 149 deletions
|
|
@ -189,7 +189,6 @@ impl UsrJayCompositor {
|
|||
obj
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn get_sync_file_surface(&self, surface: &UsrWlSurface) -> Rc<UsrJaySyncFileSurface> {
|
||||
let obj = Rc::new(UsrJaySyncFileSurface {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ pub struct UsrJaySyncFileSurface {
|
|||
}
|
||||
|
||||
impl UsrJaySyncFileSurface {
|
||||
#[expect(dead_code)]
|
||||
pub fn set_acquire(&self, sf: Option<&FdSync>) {
|
||||
match sf.and_then(|s| s.get_sync_file()) {
|
||||
None => {
|
||||
|
|
@ -33,7 +32,6 @@ impl UsrJaySyncFileSurface {
|
|||
}
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn get_release(&self) -> Rc<UsrJaySyncFileRelease> {
|
||||
let obj = Rc::new(UsrJaySyncFileRelease {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ pub struct UsrWlDataDevice {
|
|||
}
|
||||
|
||||
impl UsrWlDataDevice {
|
||||
#[expect(dead_code)]
|
||||
pub fn set_selection(&self, serial: u32, source: &UsrWlDataSource) {
|
||||
self.con.request(SetSelection {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ pub struct UsrWlDataDeviceManager {
|
|||
}
|
||||
|
||||
impl UsrWlDataDeviceManager {
|
||||
#[expect(dead_code)]
|
||||
pub fn create_data_source(&self) -> Rc<UsrWlDataSource> {
|
||||
let obj = Rc::new(UsrWlDataSource {
|
||||
id: self.con.id(),
|
||||
|
|
@ -37,7 +36,6 @@ impl UsrWlDataDeviceManager {
|
|||
obj
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn get_data_device(&self, seat: &UsrWlSeat) -> Rc<UsrWlDataDevice> {
|
||||
let obj = Rc::new(UsrWlDataDevice {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ pub struct UsrWlDataOffer {
|
|||
}
|
||||
|
||||
impl UsrWlDataOffer {
|
||||
#[expect(dead_code)]
|
||||
pub fn receive(&self, mime_type: &str, fd: &Rc<OwnedFd>) {
|
||||
self.con.request(Receive {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ pub trait UsrWlDataSourceOwner {
|
|||
}
|
||||
|
||||
impl UsrWlDataSource {
|
||||
#[expect(dead_code)]
|
||||
pub fn offer(&self, mime_type: &str) {
|
||||
self.con.request(Offer {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ pub trait UsrWlPointerOwner {
|
|||
}
|
||||
|
||||
impl UsrWlPointer {
|
||||
#[expect(dead_code)]
|
||||
pub fn set_cursor(&self, serial: u32, cursor: Option<&UsrWlSurface>, hot_x: i32, hot_y: i32) {
|
||||
self.con.request(SetCursor {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ impl UsrWlSeat {
|
|||
ptr
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn get_keyboard(&self) -> Rc<UsrWlKeyboard> {
|
||||
let kb = Rc::new(UsrWlKeyboard {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ pub struct UsrWpCursorShapeDeviceV1 {
|
|||
}
|
||||
|
||||
impl UsrWpCursorShapeDeviceV1 {
|
||||
#[expect(dead_code)]
|
||||
pub fn set_shape(&self, serial: u32, cursor: KnownCursor) {
|
||||
self.con.request(SetShape {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ pub struct UsrWpCursorShapeManagerV1 {
|
|||
}
|
||||
|
||||
impl UsrWpCursorShapeManagerV1 {
|
||||
#[expect(dead_code)]
|
||||
pub fn get_pointer(&self, pointer: &UsrWlPointer) -> Rc<UsrWpCursorShapeDeviceV1> {
|
||||
let obj = Rc::new(UsrWpCursorShapeDeviceV1 {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ pub trait UsrXdgSurfaceOwner {
|
|||
}
|
||||
|
||||
impl UsrXdgSurface {
|
||||
#[expect(dead_code)]
|
||||
pub fn get_toplevel(&self) -> Rc<UsrXdgToplevel> {
|
||||
let obj = Rc::new(UsrXdgToplevel {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ pub struct UsrXdgToplevel {
|
|||
}
|
||||
|
||||
impl UsrXdgToplevel {
|
||||
#[expect(dead_code)]
|
||||
pub fn set_title(&self, title: &str) {
|
||||
self.con.request(SetTitle {
|
||||
self_id: self.id,
|
||||
|
|
@ -24,7 +23,6 @@ impl UsrXdgToplevel {
|
|||
});
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn set_fullscreen(&self, fullscreen: bool) {
|
||||
match fullscreen {
|
||||
true => {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ pub struct UsrXdgWmBase {
|
|||
}
|
||||
|
||||
impl UsrXdgWmBase {
|
||||
#[expect(dead_code)]
|
||||
pub fn get_xdg_surface(&self, surface: &UsrWlSurface) -> Rc<UsrXdgSurface> {
|
||||
let obj = Rc::new(UsrXdgSurface {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ pub struct UsrZwpLinuxDmabufV1 {
|
|||
}
|
||||
|
||||
impl UsrZwpLinuxDmabufV1 {
|
||||
#[expect(dead_code)]
|
||||
pub fn create_buffer(&self, buffer: &DmaBuf) -> Rc<UsrWlBuffer> {
|
||||
let params = Rc::new(UsrZwpLinuxBufferParamsV1 {
|
||||
id: self.con.id(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue