engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
ISlateEditableTextWidget类 参考abstract

Interface to allow FSlateEditableTextLayout to notify its parent SEditableText/SMultiLineEditableText of changes, as well as query some widget specific state 更多...

#include <ISlateEditableTextWidget.h>

+ 类 ISlateEditableTextWidget 继承关系图:

Public 成员函数

virtual TSharedPtr< SWidget > BuildContextMenuContent () const =0
 Build the context menu content to use for this widget (if any)
 
virtual bool CanInsertCarriageReturn () const =0
 Are we currently able to insert a carriage return? (some widgets have modifier keys that need to be pressed)
 
virtual bool CanTypeCharacter (const TCHAR InChar) const =0
 Are we able to insert the given character into our text?
 
virtual void EnsureActiveTick ()=0
 Ensure that we will get a Tick() soon (either due to having active focus, or something having changed progmatically and requiring an update) Does nothing if the active tick timer is already enabled
 
virtual TSharedRef< SWidget > GetSlateWidget ()=0
 Get the Slate widget this interface is representing (may not be called during destruction)
 
virtual TSharedPtr< SWidget > GetSlateWidgetPtr ()=0
 Get the Slate widget this interface is representing (may be null during destruction)
 
virtual EVirtualKeyboardDismissAction GetVirtualKeyboardDismissAction () const =0
 Get the message action to take when the virtual keyboard is dismissed by the user
 
virtual FVirtualKeyboardOptions GetVirtualKeyboardOptions () const =0
 Get the options for the virtual keyboard used for this widget
 
virtual EVirtualKeyboardTrigger GetVirtualKeyboardTrigger () const =0
 Get the type of event that will trigger the display of the virtual keyboard
 
virtual EKeyboardType GetVirtualKeyboardType () const =0
 Get the type of virtual keyboard to use for this widget
 
virtual bool IsMultiLineTextEdit () const =0
 Is the text edit multi-line aware?
 
virtual bool IsTextPassword () const =0
 Is the text displaying a password and should be obscured?
 
virtual bool IsTextReadOnly () const =0
 Is the text currently read-only?
 
virtual void OnCursorMoved (const FTextLocation &InLocation)=0
 Called when the cursor is moved within the text area
 
virtual void OnTextChanged (const FText &InText)=0
 Called when the text has been changed by an edit operation
 
virtual void OnTextCommitted (const FText &InText, const ETextCommit::Type InTextAction)=0
 Called when the text control has committed its current edit changes
 
virtual bool ShouldClearKeyboardFocusOnCommit () const =0
 Should we clear the keyboard focus when the user commits text to this widget?
 
virtual bool ShouldClearTextSelectionOnFocusLoss () const =0
 Should the text clear its selection the widget loses focus?
 
virtual bool ShouldJumpCursorToEndWhenFocused () const =0
 Should the cursor be jumped to the end of the document when the widget gains focus?
 
virtual bool ShouldRevertTextOnEscape () const =0
 Should we revert the text back to its original state when the user presses escape?
 
virtual bool ShouldSelectAllTextOnCommit () const =0
 Should we select all text when the user commits text to this widget?
 
virtual bool ShouldSelectAllTextWhenFocused () const =0
 Should the text be selected when the widget gains focus?
 
virtual bool ShouldSelectWordOnMouseDoubleClick () const =0
 Should we select word on mouse double click?
 
virtual float UpdateAndClampHorizontalScrollBar (const float InViewOffset, const float InViewFraction, const EVisibility InVisiblityOverride)=0
 Called when the fraction and offset of the horizontal scroll area has been recalculated. 更多...
 
virtual float UpdateAndClampVerticalScrollBar (const float InViewOffset, const float InViewFraction, const EVisibility InVisiblityOverride)=0
 Called when the fraction and offset of the vertical scroll area has been recalculated. 更多...
 

详细描述

Interface to allow FSlateEditableTextLayout to notify its parent SEditableText/SMultiLineEditableText of changes, as well as query some widget specific state

成员函数说明

◆ UpdateAndClampHorizontalScrollBar()

virtual float ISlateEditableTextWidget::UpdateAndClampHorizontalScrollBar ( const float  InViewOffset,
const float  InViewFraction,
const EVisibility  InVisiblityOverride 
)
pure virtual

Called when the fraction and offset of the horizontal scroll area has been recalculated.

This function should apply the new values to any scrollbars, and return a clamped horizontal scroll value

在 SEditableText 内被实现.

◆ UpdateAndClampVerticalScrollBar()

virtual float ISlateEditableTextWidget::UpdateAndClampVerticalScrollBar ( const float  InViewOffset,
const float  InViewFraction,
const EVisibility  InVisiblityOverride 
)
pure virtual

Called when the fraction and offset of the vertical scroll area has been recalculated.

This function should apply the new values to any scrollbars, and return a clamped vertical scroll value

在 SEditableText 内被实现.


该类的文档由以下文件生成: