refactor(wayland): update data in user data map for everything

This commit is contained in:
Nova
2024-08-06 20:42:46 -04:00
parent 08135b03a2
commit 14ebe85493
6 changed files with 230 additions and 204 deletions

View File

@@ -22,6 +22,15 @@ use std::sync::{Arc, Weak};
use tracing::{debug, info};
stardust_xr_server_codegen::codegen_item_panel_protocol!();
impl Default for Geometry {
fn default() -> Self {
Geometry {
origin: [0, 0].into(),
size: [0, 0].into(),
}
}
}
lazy_static! {
pub static ref ITEM_TYPE_INFO_PANEL: TypeInfo = TypeInfo {
type_name: "panel",