* Source/NSMenuItemCell.m

* Headers/AppKit/NSMenuItemCell.h
          float -> CGFloat transitions



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36238 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
buzzdee 2013-03-02 18:06:25 +00:00
parent f982703dc6
commit f5f233857e
3 changed files with 22 additions and 17 deletions

View file

@ -1,8 +1,13 @@
2012-03-01 Richard Frith-Macdonald <rfm@gnu.org> 2013-03-02 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Source/NSMenuItemCell.m
* Headers/AppKit/NSMenuItemCell.h
float -> CGFloat transitions
2013-03-01 Richard Frith-Macdonald <rfm@gnu.org>
* Version ... bump subminor number in preparation for next release. * Version ... bump subminor number in preparation for next release.
2012-03-01 Richard Frith-Macdonald <rfm@gnu.org> 2013-03-01 Richard Frith-Macdonald <rfm@gnu.org>
Make release Make release
* Version 0.23.0 * Version 0.23.0

View file

@ -50,11 +50,11 @@ typedef void (*DrawingIMP)(id, SEL, NSRect, NSView*);
BOOL _needs_display; BOOL _needs_display;
char _pad[1]; char _pad[1];
float _imageWidth; CGFloat _imageWidth;
float _titleWidth; CGFloat _titleWidth;
float _keyEquivalentWidth; CGFloat _keyEquivalentWidth;
float _stateImageWidth; CGFloat _stateImageWidth;
float _menuItemHeight; CGFloat _menuItemHeight;
NSImage *_imageToDisplay; NSImage *_imageToDisplay;
NSString *_titleToDisplay; NSString *_titleToDisplay;
@ -76,10 +76,10 @@ typedef void (*DrawingIMP)(id, SEL, NSRect, NSView*);
- (void)setNeedsDisplay:(BOOL)flag; - (void)setNeedsDisplay:(BOOL)flag;
- (BOOL)needsDisplay; - (BOOL)needsDisplay;
- (float)imageWidth; - (CGFloat)imageWidth;
- (float)titleWidth; - (CGFloat)titleWidth;
- (float)keyEquivalentWidth; - (CGFloat)keyEquivalentWidth;
- (float)stateImageWidth; - (CGFloat)stateImageWidth;
- (NSRect)imageRectForBounds:(NSRect)cellFrame; - (NSRect)imageRectForBounds:(NSRect)cellFrame;
- (NSRect)keyEquivalentRectForBounds:(NSRect)cellFrame; - (NSRect)keyEquivalentRectForBounds:(NSRect)cellFrame;

View file

@ -268,7 +268,7 @@ static NSString *commandKeyString = @"#";
{ {
NSSize componentSize; NSSize componentSize;
NSImage *anImage = nil; NSImage *anImage = nil;
float neededMenuItemHeight = 20; CGFloat neededMenuItemHeight = 20;
// Check if _mcell_belongs_to_popupbutton = NO while cell owned by // Check if _mcell_belongs_to_popupbutton = NO while cell owned by
// popup button. FIXME // popup button. FIXME
@ -385,7 +385,7 @@ static NSString *commandKeyString = @"#";
return _needs_display; return _needs_display;
} }
- (float) imageWidth - (CGFloat) imageWidth
{ {
if (_needs_sizing) if (_needs_sizing)
[self calcSize]; [self calcSize];
@ -393,7 +393,7 @@ static NSString *commandKeyString = @"#";
return _imageWidth; return _imageWidth;
} }
- (float) titleWidth - (CGFloat) titleWidth
{ {
if (_needs_sizing) if (_needs_sizing)
[self calcSize]; [self calcSize];
@ -401,7 +401,7 @@ static NSString *commandKeyString = @"#";
return _titleWidth; return _titleWidth;
} }
- (float) keyEquivalentWidth - (CGFloat) keyEquivalentWidth
{ {
if (_needs_sizing) if (_needs_sizing)
[self calcSize]; [self calcSize];
@ -409,7 +409,7 @@ static NSString *commandKeyString = @"#";
return _keyEquivalentWidth; return _keyEquivalentWidth;
} }
- (float) stateImageWidth - (CGFloat) stateImageWidth
{ {
if (_needs_sizing) if (_needs_sizing)
[self calcSize]; [self calcSize];
@ -625,7 +625,7 @@ static NSString *commandKeyString = @"#";
{ {
if (_cell.is_bordered) if (_cell.is_bordered)
{ {
float yDelta = [_control_view isFlipped] ? 1. : 2.; CGFloat yDelta = [_control_view isFlipped] ? 1. : 2.;
unsigned mask; unsigned mask;
NSRect interiorFrame; NSRect interiorFrame;