API  1.0.0
CPWindow.j File Reference

Go to the source code of this file.

Classes

protocol  <CPWindowDelegate >
 

Variables

var CPWindowActionMessageKeys
 
var CPWindowDelegate_windowShouldClose_ = 1 << 1
 
var CPWindowDelegate_windowWillClose_ = 1 << 3
 
var CPWindowDelegate_windowWillResize_toSize_ = 1 << 4
 
var CPWindowDelegate_windowWillReturnUndoManager_ = 1 << 2
 
var CPWindowMinVisibleHorizontalMargin = 40
 
var CPWindowMinVisibleVerticalMargin = 2
 
var CPWindowResizeStyleGlobalChangeNotification = @"@"CPWindowResizeStyleGlobalChangeNotification"
 
var CPWindowResizeTime = 0.2
 
var CPWindowSaveImage = nil
 
var interpolate
 
var keyViewComparator
 

Variable Documentation

◆ CPWindowActionMessageKeys

var CPWindowActionMessageKeys

◆ CPWindowDelegate_windowShouldClose_

var CPWindowDelegate_windowShouldClose_ = 1 << 1

Definition at line 55 of file CPWindow.j.

◆ CPWindowDelegate_windowWillClose_

var CPWindowDelegate_windowWillClose_ = 1 << 3

Definition at line 57 of file CPWindow.j.

◆ CPWindowDelegate_windowWillResize_toSize_

var CPWindowDelegate_windowWillResize_toSize_ = 1 << 4

Definition at line 58 of file CPWindow.j.

◆ CPWindowDelegate_windowWillReturnUndoManager_

var CPWindowDelegate_windowWillReturnUndoManager_ = 1 << 2

Definition at line 56 of file CPWindow.j.

◆ CPWindowMinVisibleHorizontalMargin

var CPWindowMinVisibleHorizontalMargin = 40

Definition at line 66 of file CPWindow.j.

◆ CPWindowMinVisibleVerticalMargin

var CPWindowMinVisibleVerticalMargin = 2

Definition at line 67 of file CPWindow.j.

◆ CPWindowResizeStyleGlobalChangeNotification

var CPWindowResizeStyleGlobalChangeNotification = @"@"CPWindowResizeStyleGlobalChangeNotification"

Definition at line 64 of file CPWindow.j.

◆ CPWindowResizeTime

var CPWindowResizeTime = 0.2

Definition at line 63 of file CPWindow.j.

◆ CPWindowSaveImage

var CPWindowSaveImage = nil

Definition at line 61 of file CPWindow.j.

◆ interpolate

var interpolate
Initial value:
= function(fromValue, toValue, progress)
{
return fromValue + (toValue - fromValue) * progress;
}

Definition at line 3785 of file CPWindow.j.

◆ keyViewComparator

var keyViewComparator
Initial value:
= function(lhs, rhs, context)
{
var lhsBounds = [lhs convertRect:[lhs bounds] toView:nil],
rhsBounds = [rhs convertRect:[rhs bounds] toView:nil],
lhsY = CGRectGetMinY(lhsBounds),
rhsY = CGRectGetMinY(rhsBounds),
lhsX = CGRectGetMinX(lhsBounds),
rhsX = CGRectGetMinX(rhsBounds),
intersectsVertically = MIN(CGRectGetMaxY(lhsBounds), CGRectGetMaxY(rhsBounds)) - MAX(lhsY, rhsY);
if (intersectsVertically > 0)
{
if (lhsX < rhsX)
if (lhsX === rhsX)
return CPOrderedSame;
}
if (lhsY < rhsY)
if (lhsY === rhsY)
return CPOrderedSame;
}
CPOrderedAscending
Definition: CPObjJRuntime.j:48
CPOrderedSame
Definition: CPObjJRuntime.j:54
CGRect bounds()
Definition: CALayer.j:203
CPOrderedDescending
Definition: CPObjJRuntime.j:60

Definition at line 3445 of file CPWindow.j.