Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Framework/Layout/ScrollyZoomy.h |
Include |
#include "Framework/Layout/ScrollyZoomy.h" |
class FScrollyZoomy
Utility class that adds scrolling and zooming functionality to a widget.
Derived your widget class from IScrollableZoomable, then embed an instance of FScrollyZoomy as a widget member variable, and call this class's event handlers from your own widget's event handler callbacks.
Name | Description | |
---|---|---|
|
FScrollyZoomy ( |
Create and initialize a new instance. |
Name | Description | ||
---|---|---|---|
|
const FVecto... |
GetSoftwareCursorPosition() |
Get the position of the software cursor (when NeedsSoftwareCursor is true). |
|
IsRightClickScrolling() |
Whether the user is actively scrolling. |
|
|
NeedsSoftwareCursor() |
Whether a software cursor should be rendered. |
|
|
OnCursorQuery() |
Call this from your widget's OnCursorQuery function. |
|
|
OnMouseButtonDown ( |
Should be called when a mouse button is pressed. |
|
|
OnMouseButtonUp ( |
Should be called when a mouse button is released. |
|
|
OnMouseLeave ( |
Should be called from your widget's OnMouseLeave override. |
|
|
OnMouseMove ( |
Should be called when a mouse move event occurs. |
|
|
OnMouseWheel ( |
Should be called by your widget when the mouse wheel is used |
|
|
PaintSoftwareCursorIfNeeded ( |
Call this from your widget's OnPaint to paint a software cursor, if needed |
|
|
Tick ( |
Should be called every frame to update simulation state. |