File: Rhea.m

package info (click to toggle)
gnustep-examples 1%3A1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 3,208 kB
  • ctags: 310
  • sloc: objc: 17,195; makefile: 50
file content (22 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#import "Rhea.h"

#import <AppKit/AppKit.h>

@implementation Rhea

- (void) drawButton: (NSRect) frame 
				 in: (NSCell*) cell 
			   view: (NSView*) view 
			  style: (int) style 
			  state: (GSThemeControlState) state {
	if (state == GSThemeNormalState)
		[[NSColor blackColor] set];
	else if (state == GSThemeHighlightedState)
		[[NSColor whiteColor] set];
	else if (state == GSThemeSelectedState)
		[[NSColor redColor] set];
	[[NSBezierPath bezierPathWithRect: frame] stroke];
}

@end