mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-21 22:19:26 +00:00
Add missing accessor to CPImageView, and fix nib2cib support for image scaling.
Closes #523.
This commit is contained in:
1 parent
c478afee0f
commit
7d1c7b2907
2 files changed
+6
-15
No files matched your search
+5
-14
@@ -31,24 +31,10 @@
|
||||
|
||||
#include "CoreGraphics/CGGeometry.h"
|
||||
|
||||
|
||||
/*
|
||||
@global
|
||||
@group CPImageScaling
|
||||
*/
|
||||
CPScaleProportionally = 0;
|
||||
/*
|
||||
@global
|
||||
@group CPImageScaling
|
||||
*/
|
||||
CPScaleToFit = 1;
|
||||
/*
|
||||
@global
|
||||
@group CPImageScaling
|
||||
*/
|
||||
CPScaleNone = 2;
|
||||
|
||||
|
||||
var CPImageViewShadowBackgroundColor = nil;
|
||||
|
||||
var LEFT_SHADOW_INSET = 3.0,
|
||||
@@ -225,6 +211,11 @@ var LEFT_SHADOW_INSET = 3.0,
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (unsigned)imageScaling
|
||||
{
|
||||
return [self currentValueForThemeAttribute:@"image-scaling"];
|
||||
}
|
||||
|
||||
/*!
|
||||
Toggles the display of the image view.
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
{
|
||||
var cell = [aCoder decodeObjectForKey:@"NSCell"];
|
||||
|
||||
_imageScaling = [cell imageScaling];
|
||||
[self setImageScaling:[cell imageScaling]];
|
||||
_isEditable = [cell isEditable];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user