Added shadow drawing styles.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-10-25 23:11:00 -07:00
parent b5cdcec004
commit b457119925
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -1006,6 +1006,7 @@ var STICKY_TIME_INTERVAL = 500,
{
[self setLevel:CPPopUpMenuWindowLevel];
[self setHasShadow:YES];
[self setShadowStyle:CPMenuWindowShadowStyle];
[self setAcceptsMouseMovedEvents:YES];
_unconstrainedFrame = CGRectMakeZero();
+7
View File
@@ -1004,6 +1004,7 @@ CPTexturedBackgroundWindowMask
- (void)setShadowStyle:(unsigned)aStyle
{
_shadowStyle = aStyle;
[[self platformWindow] setShadowStyle:_shadowStyle];
}
@@ -2380,6 +2381,12 @@ function _CPWindowFullPlatformWindowSessionMake(aWindowView, aContentRect, hasSh
return { windowView:aWindowView, contentRect:aContentRect, hasShadow:hasShadow, level:aLevel };
}
CPStandardWindowShadowStyle = 0;
CPMenuWindowShadowStyle = 1;
CPPanelWindowShadowStyle = 2;
CPCustomWindowShadowStyle = 3;
@import "_CPWindowView.j"
@import "_CPStandardWindowView.j"
@import "_CPDocModalWindowView.j"