RevGrid - v0.10.0
    Preparing search index...

    Mouse Component

    Defines the RevMouse class, which manages mouse interactions for the grid component. It encapsulates all logic for mouse-based cell interaction, drag operations, and UI feedback within the grid.

    • Hover Tracking: Tracks which cell the mouse is currently hovering over and updates the cursor and tooltip/title text accordingly.
    • Drag Operations: Keeps track of the current drag type (e.g., selection extension, column resizing/moving) for mouse-driven grid actions.
    • Event Handling: Provides event hooks for cell enter/exit and cell render invalidation, allowing integration with other grid behaviors.
    • Cursor and Title Management: Updates cursor and title text when hovered cell changes, mouse actions become possible or dragging commences.
    • Integration: Works closely with the grid's canvas and view layout to map mouse positions to grid cells and update UI feedback.

    Indicates when mouse actions are possible:

    Specifies the type of drag when dragging is active: