Feat: building large apps, revamp macro
This commit is contained in:
1 parent
5791e49700
commit
9f7f43b661
20 files changed
+386
-293
No files matched your search
@@ -160,12 +160,7 @@ pub mod on {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct MouseEvent(pub Box<RawMouseEvent>);
|
||||
impl Deref for MouseEvent {
|
||||
type Target = RawMouseEvent;
|
||||
fn deref(&self) -> &Self::Target {
|
||||
self.0.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct RawMouseEvent {
|
||||
pub alt_key: bool,
|
||||
@@ -183,6 +178,12 @@ pub mod on {
|
||||
pub get_modifier_state: GetModifierKey,
|
||||
// relatedTarget: DOMEventTarget,
|
||||
}
|
||||
impl Deref for MouseEvent {
|
||||
type Target = RawMouseEvent;
|
||||
fn deref(&self) -> &Self::Target {
|
||||
self.0.as_ref()
|
||||
}
|
||||
}
|
||||
event_builder! {
|
||||
MouseEvent;
|
||||
click contextmenu doubleclick drag dragend dragenter dragexit
|
||||
|
||||
Reference in new issue
Block a user