Comment cleanup
This commit is contained in:
parent
fe03957514
commit
ab673fe534
|
@ -78,12 +78,12 @@ pub enum MouseEvent {
|
||||||
/// May not be available on all platforms.
|
/// May not be available on all platforms.
|
||||||
CursorLeft,
|
CursorLeft,
|
||||||
|
|
||||||
// TODO: Document
|
|
||||||
DragEntered {
|
DragEntered {
|
||||||
/// The logical coordinates of the mouse position
|
/// The logical coordinates of the mouse position
|
||||||
position: Point,
|
position: Point,
|
||||||
/// The modifiers that were held down just before the event.
|
/// The modifiers that were held down just before the event.
|
||||||
modifiers: Modifiers,
|
modifiers: Modifiers,
|
||||||
|
/// Data being dragged
|
||||||
data: DropData,
|
data: DropData,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -92,6 +92,7 @@ pub enum MouseEvent {
|
||||||
position: Point,
|
position: Point,
|
||||||
/// The modifiers that were held down just before the event.
|
/// The modifiers that were held down just before the event.
|
||||||
modifiers: Modifiers,
|
modifiers: Modifiers,
|
||||||
|
/// Data being dragged
|
||||||
data: DropData,
|
data: DropData,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -102,6 +103,7 @@ pub enum MouseEvent {
|
||||||
position: Point,
|
position: Point,
|
||||||
/// The modifiers that were held down just before the event.
|
/// The modifiers that were held down just before the event.
|
||||||
modifiers: Modifiers,
|
modifiers: Modifiers,
|
||||||
|
/// Data being dragged
|
||||||
data: DropData,
|
data: DropData,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -726,13 +726,9 @@ impl Window<'_> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let window_state_ptr = Box::into_raw(window_state);
|
let window_state_ptr = Box::into_raw(window_state);
|
||||||
|
|
||||||
// TODO: Error handling
|
|
||||||
OleInitialize(null_mut());
|
|
||||||
|
|
||||||
let drop_target = Arc::new(DropTarget::new(window_state_ptr));
|
let drop_target = Arc::new(DropTarget::new(window_state_ptr));
|
||||||
|
|
||||||
// TODO: Error handling
|
OleInitialize(null_mut());
|
||||||
RegisterDragDrop(hwnd, Arc::as_ptr(&drop_target) as LPDROPTARGET);
|
RegisterDragDrop(hwnd, Arc::as_ptr(&drop_target) as LPDROPTARGET);
|
||||||
|
|
||||||
(*window_state_ptr)._drop_target = Some(drop_target);
|
(*window_state_ptr)._drop_target = Some(drop_target);
|
||||||
|
|
Loading…
Reference in a new issue