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.
|
||||
CursorLeft,
|
||||
|
||||
// TODO: Document
|
||||
DragEntered {
|
||||
/// The logical coordinates of the mouse position
|
||||
position: Point,
|
||||
/// The modifiers that were held down just before the event.
|
||||
modifiers: Modifiers,
|
||||
/// Data being dragged
|
||||
data: DropData,
|
||||
},
|
||||
|
||||
|
@ -92,6 +92,7 @@ pub enum MouseEvent {
|
|||
position: Point,
|
||||
/// The modifiers that were held down just before the event.
|
||||
modifiers: Modifiers,
|
||||
/// Data being dragged
|
||||
data: DropData,
|
||||
},
|
||||
|
||||
|
@ -102,6 +103,7 @@ pub enum MouseEvent {
|
|||
position: Point,
|
||||
/// The modifiers that were held down just before the event.
|
||||
modifiers: Modifiers,
|
||||
/// Data being dragged
|
||||
data: DropData,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -726,13 +726,9 @@ impl Window<'_> {
|
|||
};
|
||||
|
||||
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));
|
||||
|
||||
// TODO: Error handling
|
||||
OleInitialize(null_mut());
|
||||
RegisterDragDrop(hwnd, Arc::as_ptr(&drop_target) as LPDROPTARGET);
|
||||
|
||||
(*window_state_ptr)._drop_target = Some(drop_target);
|
||||
|
|
Loading…
Reference in a new issue