From 6fa29f21147a9ccb8024b2285ae1f7f9b621601c Mon Sep 17 00:00:00 2001 From: PawelBis Date: Sat, 27 Jul 2024 14:09:24 +0200 Subject: [PATCH] Reexport wry::Rect and remove wrappers --- src/communication/ui/mod.rs | 6 ++---- src/lib.rs | 11 ----------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/communication/ui/mod.rs b/src/communication/ui/mod.rs index 42f39d7..8821324 100644 --- a/src/communication/ui/mod.rs +++ b/src/communication/ui/mod.rs @@ -1,10 +1,8 @@ use bevy::prelude::Resource; use serde::{Deserialize, Serialize}; use winit::dpi::Size; -use wry::{ - dpi::{LogicalPosition, LogicalSize, Position}, - Rect, -}; +pub use wry::Rect; +use wry::dpi::{LogicalPosition, LogicalSize, Position}; #[derive(Debug, Clone, Serialize, Deserialize, Copy, PartialEq)] pub enum Anchor { diff --git a/src/lib.rs b/src/lib.rs index a8172b4..0adc705 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,17 +20,6 @@ type Result = std::result::Result; #[derive(Resource, Deref, Clone, Default)] pub struct UrlResource(pub String); -/// Convenience wrapper allowing usage of the same type for both in and out events. -/// -/// See [BevyWryPlugin] -#[allow(unused)] -pub type SymmetricWryPlugin = BevyWryPlugin; - -/// Convenience wrapper for when you don't care about communication with [WebView] -/// -/// See [BevyWryPlugin]. -pub type NakedWryPlugin = BevyWryPlugin<(), ()>; - /// Creates a [WebView] window that can be used for both in game and editor UI rendering. /// /// You can send events to webview via [EventWriter]<[OutEvent]> and read incoming