Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/SWindow
Description
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. This event is bubbled.
Virtual Inheritance
- SWidget::OnMouseButtonDown → SWindow::OnMouseButtonDown
| Name | OnMouseButtonDown |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h |
| Include Path | #include "Widgets/SWindow.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Widgets/SWindow.cpp |
virtual FReply OnMouseButtonDown
(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
)
Whether the event was handled along with possible requests for the system to take action.
Parameters
| Name | Remarks |
|---|---|
| MyGeometry | The Geometry of the widget receiving the event |
| MouseEvent | Information about the input event |