Limen Framework 0.1 Help

SMouseDetector

Overview

SMouseDetector is a compound Slate widget that extends SCompoundWidget. It provides a mechanism for detecting and handling different types of mouse events such as button down, button up, mouse move, double click, drag, hover, and drop. The widget allows users to bind custom event handlers through its constructor arguments.

Properties

Type

Name

Access

Description

FPointerEventHandler

OnMouseButtonDown

Public

Handler for mouse button down events.

FPointerEventHandler

OnMouseButtonUp

Public

Handler for mouse button up events.

FPointerEventHandler

OnMouseMove

Public

Handler for mouse move events.

FPointerEventHandler

OnMouseDoubleClick

Public

Handler for mouse double click events.

FPointerEventHandler

OnMouseDrag

Public

Handler for mouse drag events.

FNoReplyPointerEventHandler

OnMouseHover

Public

Handler for mouse hover events.

FSimpleNoReplyPointerEventHandler

OnMouseUnHover

Public

Handler for mouse unhover events.

FDragDropEventHandler

OnDragOver

Public

Handler for drag over events.

FDragDropEventHandler

OnDrop

Public

Handler for drop events.

Functions

Return Type

Signature

Description

FReply

OnDragDetected(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent)

Handles the detection of a drag event and invokes the bound mouse drag handler if available. Returns FReply::Unhandled() otherwise.

FReply

OnDragOver(const FGeometry& MyGeometry, const FDragDropEvent& DragDropEvent)

Handles the detection of a drag over event and invokes the bound drag over handler if available. Returns FReply::Unhandled() otherwise.

FReply

OnDrop(const FGeometry& MyGeometry, const FDragDropEvent& DragDropEvent)

Handles the detection of a drop event and invokes the bound drop handler if available. Returns FReply::Unhandled() otherwise.

Usage & Implementation Notes

  • The widget is designed to be used within a Slate UI system.

  • It requires binding specific mouse event handlers through its constructor arguments.

  • The widget does not manage memory for the event handlers; they are managed by the user who binds them.

22 May 2026