Class ResizeHandle
An element that can be dragged to resize another element.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class ResizeHandle : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
ResizeHandle()
Default Constructor.
Declaration
public ResizeHandle()
ResizeHandle(VisualElement)
Constructor with a target VisualElement.
Declaration
public ResizeHandle(VisualElement target)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | target | The element that will be resized when the handle is dragged. |
Fields
ussClassName
The ResizeHandle main styling class.
Declaration
public const string ussClassName = "appui-resize-handle"
Field Value
Type | Description |
---|---|
string |
variantUssClassName
The ResizeHandle variant styling class.
Declaration
public const string variantUssClassName = "appui-resize-handle--"
Field Value
Type | Description |
---|---|
string |
Properties
dragDirection
The direction in which the handle can be dragged.
Declaration
public Draggable.DragDirection dragDirection { get; set; }
Property Value
Type | Description |
---|---|
Draggable.DragDirection |
target
The target VisualElement that will be resized when the handle is dragged.
Declaration
public VisualElement target { get; set; }
Property Value
Type | Description |
---|---|
VisualElement |
threshold
The threshold in pixels that the handle must be dragged before it starts to move.
Declaration
public float threshold { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
GetDirectionUssClassName(DragDirection)
Declaration
public static string GetDirectionUssClassName(Draggable.DragDirection enumValue)
Parameters
Type | Name | Description |
---|---|---|
Draggable.DragDirection | enumValue |
Returns
Type | Description |
---|---|
string |
Events
resizeEnded
Event triggered when the resize operation ends.
Declaration
public event Action<ResizeHandle> resizeEnded
Event Type
Type | Description |
---|---|
Action<ResizeHandle> |
resizeStarted
Event triggered when the resize operation starts.
Declaration
public event Action<ResizeHandle> resizeStarted
Event Type
Type | Description |
---|---|
Action<ResizeHandle> |