mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
Added font methods so that nib2cib can do font substitution
This commit is contained in:
1 parent
7d62b6e1eb
commit
044a605e47
1 file changed
+21
@@ -268,6 +268,27 @@ var CPTabViewDidSelectTabViewItemSelector = 1,
|
||||
return [_items objectAtIndex:_selectedIndex];
|
||||
}
|
||||
|
||||
// Modifying the font
|
||||
/*!
|
||||
Returns the font for tab label text.
|
||||
*/
|
||||
- (CPFont)font
|
||||
{
|
||||
return _font;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the font for tab label text to font.
|
||||
*/
|
||||
- (void)setFont:(CPFont)font
|
||||
{
|
||||
if ([_font isEqual:font])
|
||||
return;
|
||||
|
||||
_font = font;
|
||||
[_tabs setFont:_font];
|
||||
}
|
||||
|
||||
//
|
||||
/*!
|
||||
Sets the tab view type.
|
||||
|
||||
Reference in new issue
Block a user