1
0
Fork 0

Comment cleanup

This commit is contained in:
Jussi Viiri 2023-06-05 22:20:07 +03:00
parent fe03957514
commit ab673fe534
2 changed files with 4 additions and 6 deletions

View file

@ -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,
},
}

View file

@ -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);