use crate::input::core::coordinator::LayerId;
use crate::input::{InputCoordinator, Sense, WidgetKind};
use crate::types::{Rect, WidgetId};
use super::state::DragHandleState;
pub fn register_drag_handle(
coord: &mut InputCoordinator,
id: impl Into<WidgetId>,
rect: Rect,
layer: &LayerId,
) {
coord.register_atomic(id, WidgetKind::DragHandle, rect, Sense::DRAG, layer);
}
pub fn register_input_coordinator_drag_handle(
coord: &mut InputCoordinator,
id: impl Into<WidgetId>,
rect: Rect,
layer: &LayerId,
_state: &mut DragHandleState,
) {
coord.register_atomic(id, WidgetKind::DragHandle, rect, Sense::DRAG, layer);
}