Skip to content

Commit

Permalink
Reexport wry::Rect and remove wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelBis committed Jul 27, 2024
1 parent f87e9e1 commit 6fa29f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
6 changes: 2 additions & 4 deletions src/communication/ui/mod.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@ type Result<T> = std::result::Result<T, Error>;
#[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<E> = BevyWryPlugin<E, E>;

/// 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<Out>]> and read incoming
Expand Down

0 comments on commit 6fa29f2

Please sign in to comment.