Rename module input to avoid naming conflict with element of the same name

Not sure if this was supposed to be allowed, but it was causing https://github.com/rust-lang/rust/issues/96934
This commit is contained in:
Reinis Mazeiks 2022-05-11 13:47:58 +03:00
parent 90cb221b82
commit 765baf6e48
6 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
use dioxus::events::WheelEvent;
use dioxus::prelude::*;
use dioxus_html::geometry::ScreenPoint;
use dioxus_html::input::MouseButtonSet;
use dioxus_html::input_data::MouseButtonSet;
use dioxus_html::on::{KeyboardEvent, MouseEvent};
use dioxus_html::KeyCode;

View file

@ -6,7 +6,7 @@ pub mod on {
//! Input events and associated data
use crate::geometry::{ClientPoint, Coordinates, ElementPoint, PagePoint, ScreenPoint};
use crate::input::{
use crate::input_data::{
decode_mouse_button_set, encode_mouse_button_set, MouseButton, MouseButtonSet,
};
use keyboard_types::Modifiers;

View file

@ -17,7 +17,7 @@ mod elements;
mod events;
pub mod geometry;
mod global_attributes;
pub mod input;
pub mod input_data;
#[cfg(feature = "wasm-bind")]
mod web_sys_bind;

View file

@ -1,5 +1,5 @@
use crate::geometry::{ClientPoint, Coordinates, ElementPoint, PagePoint, ScreenPoint};
use crate::input::{decode_mouse_button_set, MouseButton};
use crate::input_data::{decode_mouse_button_set, MouseButton};
use crate::on::{
AnimationData, CompositionData, KeyboardData, MouseData, PointerData, TouchData,
TransitionData, WheelData,

View file

@ -6,9 +6,9 @@ use fxhash::{FxHashMap, FxHashSet};
use dioxus_html::geometry::euclid::{Point2D, Rect, Size2D};
use dioxus_html::geometry::{ClientPoint, Coordinates, ElementPoint, PagePoint, ScreenPoint};
use dioxus_html::input::keyboard_types::Modifiers;
use dioxus_html::input::MouseButtonSet as DioxusMouseButtons;
use dioxus_html::input::{MouseButton as DioxusMouseButton, MouseButtonSet};
use dioxus_html::input_data::keyboard_types::Modifiers;
use dioxus_html::input_data::MouseButtonSet as DioxusMouseButtons;
use dioxus_html::input_data::{MouseButton as DioxusMouseButton, MouseButtonSet};
use dioxus_html::{on::*, KeyCode};
use std::{
any::Any,