blob: cf93f0d5af4b54969ef8a76d31b8fccd3ff3ed55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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)
{
// TODO appropriate casts
[toNSView(c) setFrame:NSMakeRect(x, y, width, height)];
}
|