This class is used to control which FKeys and analog axis should move focus. 更多...
#include <NavigationConfig.h>
类 FNavigationConfig 继承关系图:Public 成员函数 | |
| FNavigationConfig () | |
| ctor | |
| virtual EUINavigationAction | GetNavigationActionFromKey (const FKeyEvent &InKeyEvent) const |
| Returns the navigation action corresponding to a key event. 更多... | |
| virtual EUINavigation | GetNavigationDirectionFromAnalog (const FAnalogInputEvent &InAnalogEvent) |
| Gets the navigation direction from a given analog event. | |
| virtual EUINavigation | GetNavigationDirectionFromKey (const FKeyEvent &InKeyEvent) const |
| Gets the navigation direction from a given key event. | |
| virtual void | OnNavigationChangedFocus (TSharedPtr< SWidget > OldWidget, TSharedPtr< SWidget > NewWidget, FFocusEvent FocusEvent) |
| Notified when navigation has caused a widget change to occur | |
| virtual void | OnRegister () |
| Called when the navigation config is registered with Slate Application | |
| virtual void | OnUnregister () |
| Called when the navigation config is registered with Slate Application | |
| virtual void | OnUserRemoved (int32 UserIndex) |
| Notified when users are removed from the system, good chance to clean up any user specific state. | |
| virtual | ~FNavigationConfig () |
| dtor | |
Public 成员函数 继承自 TSharedFromThis< FNavigationConfig > | |
| TSharedRef< FNavigationConfig, Mode > | AsShared () |
| Provides access to a shared reference to this object. 更多... | |
| TSharedRef< FNavigationConfig const, Mode > | AsShared () const |
| Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多... | |
| FORCEINLINE bool | DoesSharedInstanceExist () const |
| Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
Public 属性 | |
| FKey | AnalogHorizontalKey |
| Which Axis Key controls horizontal navigation | |
| FKey | AnalogVerticalKey |
| Which Axis Key controls vertical navigation | |
| bool | bAnalogNavigation |
| Should we respect the analog stick for navigation. | |
| bool | bKeyNavigation |
| Should we respect keys for navigation. | |
| bool | bTabNavigation |
| Should the Tab key perform next and previous style navigation. | |
| TMap< FKey, EUINavigation > | KeyEventRules |
| Digital key navigation rules. | |
Protected 成员函数 | |
| virtual EUINavigation | GetNavigationDirectionFromAnalogInternal (const FAnalogInputEvent &InAnalogEvent) |
| Gets the navigation direction from the analog internally. | |
| virtual float | GetRepeatRateForPressure (float InPressure, int32 InRepeats) const |
| Gets the repeat rate of the navigation based on the current pressure being applied. 更多... | |
Protected 成员函数 继承自 TSharedFromThis< FNavigationConfig > | |
| FORCEINLINE TSharedFromThis & | operator= (TSharedFromThis const &) |
| Hidden stub assignment operator | |
| TSharedFromThis () | |
| Hidden stub constructor | |
| TSharedFromThis (TSharedFromThis const &) | |
| Hidden stub copy constructor | |
| ~TSharedFromThis () | |
| Hidden destructor | |
Protected 属性 | |
| TMap< int, FUserNavigationState > | UserNavigationState |
| Navigation state that we store per user. | |
额外继承的成员函数 | |
静态 Protected 成员函数 继承自 TSharedFromThis< FNavigationConfig > | |
| static FORCEINLINE TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
| static FORCEINLINE TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
This class is used to control which FKeys and analog axis should move focus.
|
virtual |
Returns the navigation action corresponding to a key event.
This version will handle multiple users correctly
|
protectedvirtual |
Gets the repeat rate of the navigation based on the current pressure being applied.
The idea being that if the user moves the stick a little, we would navigate slowly, if they move it a lot, we would repeat the navigation often.