gwenhywfar  4.7.0beta
CocoaGroupBox.m
Go to the documentation of this file.
1 //
2 // CocoaGroupBox.m
3 //
4 //
5 // Created by Samuel Strupp on 10.08.10.
6 //
7 #ifdef HAVE_CONFIG_H
8 # include <config.h>
9 #endif
10 
11 
12 #import "CocoaGroupBox.h"
13 
14 
15 @implementation CocoaGroupBox
16 
17 @synthesize fillX;
18 @synthesize fillY;
19 
20 - (id)initWithFrame:(NSRect)frame {
21  self = [super initWithFrame:frame];
22  if (self) {
23  fillX = NO;
24  fillY = NO;
25  }
26  return self;
27 }
28 
29 -(void) dealloc {
30  [super dealloc];
31 }
32 
33 #pragma mark Protocoll Methods
34 
35 - (NSSize) minSize {
36  if ([[self contentView] conformsToProtocol:@protocol(CocoaGwenGUIProtocol)]) {
37  NSSize size = [(<CocoaGwenGUIProtocol>)[self contentView] minSize];
38  size.height += 24.0;
39  size.width += 14.0;
40  return size;
41  }
42  return NSMakeSize(22.0, 40.0);
43 }
44 
45 - (BOOL) fillX {
46  return fillX;
47 }
48 
49 - (BOOL) fillY {
50  return fillY;
51 }
52 
53 @end