2014-07-17 10:24:58 -05:00
|
|
|
// 17 july 2014
|
|
|
|
|
|
|
|
#import "objc_darwin.h"
|
|
|
|
#import "_cgo_export.h"
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#define toNSView(x) ((NSView *) (x))
|
|
|
|
|
|
|
|
void moveControl(id c, intptr_t x, intptr_t y, intptr_t width, intptr_t height)
|
|
|
|
{
|
2014-07-20 13:56:25 -05:00
|
|
|
[toNSView(c) setFrame:NSMakeRect((CGFloat) x, (CGFloat) y, (CGFloat) width, (CGFloat) height)];
|
2014-07-17 10:24:58 -05:00
|
|
|
}
|