mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 09:40:50 +00:00
Change return of -drawTitle:withFrame:inView to NSRect instead of void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38049 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cb6f3d721e
commit
e8c87f46a2
3 changed files with 17 additions and 6 deletions
|
@ -1068,12 +1068,16 @@ typedef struct _GSButtonCellFlags
|
|||
}
|
||||
}
|
||||
|
||||
- (void) drawTitle: (NSAttributedString*)titleToDisplay
|
||||
withFrame: (NSRect)cellFrame
|
||||
inView: (NSView*)controlView
|
||||
- (NSRect) drawTitle: (NSAttributedString*)titleToDisplay
|
||||
withFrame: (NSRect)cellFrame
|
||||
inView: (NSView*)controlView
|
||||
{
|
||||
[self _drawAttributedText: titleToDisplay
|
||||
inFrame: cellFrame];
|
||||
|
||||
return [titleToDisplay
|
||||
boundingRectWithSize: cellFrame.size
|
||||
options: NSStringDrawingUsesLineFragmentOrigin];
|
||||
}
|
||||
|
||||
// Private helper method overridden in subclasses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue