1
0
Fork 0
forked from wry/wry

control-center: add in-process control center

This commit is contained in:
Julian Orth 2026-03-07 19:20:39 +01:00
parent 008e8a671a
commit 186d5b694b
28 changed files with 859 additions and 14 deletions

View file

@ -112,11 +112,8 @@ pub enum EggError {
pub mod icons {
#[expect(dead_code)]
pub const ICON_ADD: &str = "\u{e145}";
#[expect(dead_code)]
pub const ICON_CLOSE: &str = "\u{e5cd}";
#[expect(dead_code)]
pub const ICON_DRAG_INDICATOR: &str = "\u{e945}";
#[expect(dead_code)]
pub const ICON_INFO: &str = "\u{e88e}";
#[expect(dead_code)]
pub const ICON_OPEN_IN_NEW: &str = "\u{e89e}";
@ -361,7 +358,6 @@ impl EggState {
}
impl State {
#[expect(dead_code)]
pub fn get_egg_context(self: &Rc<Self>) -> Result<Rc<EggContext>, EggError> {
if let Some(ctx) = self.egg_state.ctx.get() {
return Ok(ctx);
@ -467,7 +463,6 @@ impl State {
}
impl EggContext {
#[expect(dead_code)]
pub fn create_window(self: &Rc<Self>, title: &str) -> Rc<EggWindow> {
let i = &self.inner;
let wl_surface = i.wl_compositor.create_surface();
@ -628,12 +623,10 @@ impl EggSeatInner {
}
impl EggWindow {
#[expect(dead_code)]
pub fn request_redraw(&self) {
self.inner.want_frame();
}
#[expect(dead_code)]
pub fn set_owner(&self, owner: Option<Rc<dyn EggWindowOwner>>) {
self.inner.owner.set(owner);
}