Class StickyNoteWidget
Inheritance
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
[Widget(typeof(StickyNote))]
public class StickyNoteWidget : GraphElementWidget<ICanvas, StickyNote>, IGraphElementWidget, IWidget, IDisposable
Constructors
StickyNoteWidget(ICanvas, StickyNote)
Declaration
public StickyNoteWidget(ICanvas canvas, StickyNote stickyNote)
Parameters
Type | Name | Description |
---|---|---|
ICanvas | canvas | |
Sticky |
stickyNote |
Properties
bodyPosition
Declaration
public Rect bodyPosition { get; }
Property Value
Type | Description |
---|---|
Rect |
canAlignAndDistribute
Declaration
public override bool canAlignAndDistribute { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
canDelete
Declaration
public override bool canDelete { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
canDrag
Declaration
public override bool canDrag { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
canResizeHorizontal
Declaration
public override bool canResizeHorizontal { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
canResizeVertical
Declaration
public override bool canResizeVertical { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
canSelect
Declaration
public override bool canSelect { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
foregroundRequiresInput
Declaration
public override bool foregroundRequiresInput { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
hotArea
Declaration
public override Rect hotArea { get; }
Property Value
Type | Description |
---|---|
Rect |
Overrides
position
Declaration
public override Rect position { get; set; }
Property Value
Type | Description |
---|---|
Rect |
Overrides
snapToGrid
Declaration
protected override bool snapToGrid { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
titlePosition
Declaration
public Rect titlePosition { get; }
Property Value
Type | Description |
---|---|
Rect |
zIndex
Declaration
public override float zIndex { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
Methods
CacheItem()
Declaration
public override void CacheItem()
Overrides
CachePosition()
Declaration
public override void CachePosition()
Overrides
DrawForeground()
Declaration
public override void DrawForeground()
Overrides
OnDoubleClick()
Declaration
protected override void OnDoubleClick()
Overrides
OnViewportChange()
Declaration
public override void OnViewportChange()