mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 06:31:27 +00:00
Added shadow drawing styles.
Reviewed by me.
This commit is contained in:
@@ -1006,6 +1006,7 @@ var STICKY_TIME_INTERVAL = 500,
|
||||
{
|
||||
[self setLevel:CPPopUpMenuWindowLevel];
|
||||
[self setHasShadow:YES];
|
||||
[self setShadowStyle:CPMenuWindowShadowStyle];
|
||||
[self setAcceptsMouseMovedEvents:YES];
|
||||
|
||||
_unconstrainedFrame = CGRectMakeZero();
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user