mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:40:38 +00:00
Factor out table header cell drawing into a new GSTheme method,
-drawTableHeaderCell:withFrame:inView:state: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29431 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f03ffb9793
commit
253a3dff34
4 changed files with 38 additions and 3 deletions
|
@ -945,6 +945,22 @@ static NSImage *spinningImages[MaxCount];
|
|||
NSRectFill(rect);
|
||||
}
|
||||
|
||||
- (void) drawTableHeaderCell: (NSTableHeaderCell *)cell
|
||||
withFrame: (NSRect)cellFrame
|
||||
inView: (NSView *)controlView
|
||||
state: (GSThemeControlState)state
|
||||
{
|
||||
if (state == GSThemeHighlightedState)
|
||||
{
|
||||
[self drawButton: cellFrame withClip: cellFrame];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self drawDarkButton: cellFrame withClip: cellFrame];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Window decoration drawing methods
|
||||
/* These include the black border. */
|
||||
#define TITLE_HEIGHT 23.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue