This repository has been archived on 2025-06-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ObjGUI.old/gtk/OGBox.m
2011-12-27 23:38:07 +01:00

42 lines
732 B
Objective-C

#import "OGBox.h"
@implementation OGBox
+ box
{
return [[[self alloc] init] autorelease];
}
- init
{
self = [super init];
@try {
if (isa == [OGBox class])
@throw [OFNotImplementedException
exceptionWithClass: isa
selector: _cmd];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)appendChild: (OGWidget*)child
expand: (BOOL)expand
fill: (BOOL)fill
padding: (float)padding
{
gtk_box_pack_start(GTK_BOX(widget), child->widget, expand, fill,
padding);
}
- (void)prependChild: (OGWidget*)child
expand: (BOOL)expand
fill: (BOOL)fill
padding: (float)padding
{
gtk_box_pack_end(GTK_BOX(widget), child->widget, expand, fill, padding);
}
@end