set
{
m_StayWithinParentBounds = value;
}
bool m_MaintainApsectRatio;
public bool maintainAspectRatio
get { return m_MaintainApsectRatio; }
m_MaintainApsectRatio = value;
foreach (ResizeSideHandle resizeHandle in m_ResizeSideHandles)
resizeHandle.maintainAspectRatio = value;
set { m_StayWithinParentBounds = value; }
bool m_MaintainAspectRatio;
get { return m_MaintainAspectRatio; }
set { m_MaintainAspectRatio = value; }
public Action OnResizeFinished;
public ResizeSideHandle(VisualElement resizeTarget, ResizeHandleAnchor anchor)
ResizeBorderFrame masterPreviewResizeBorderFrame = new ResizeBorderFrame(m_MasterPreviewView) { name = "resizeBorderFrame" };
masterPreviewResizeBorderFrame.stayWithinParentBounds = true;
masterPreviewResizeBorderFrame.maintainAspectRatio = true;
masterPreviewResizeBorderFrame.OnResizeFinished += UpdateSerializedWindowLayout;
m_MasterPreviewView.Add(masterPreviewResizeBorderFrame);