~eliasnaur/gio

e256d52409a05c6c649be1bea4fe6015adf77617 — Elias Naur 3 months ago 0e592f8
app/internal/wm: reformat os_macos.m

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 14 insertions(+), 14 deletions(-)

M app/internal/wm/os_macos.m
M app/internal/wm/os_macos.m => app/internal/wm/os_macos.m +14 -14
@@ 191,8 191,8 @@ void gio_setCursor(NSUInteger curID) {
				[NSCursor.resizeUpDownCursor set];
				break;
			case 7:
                [NSCursor.openHandCursor set];
                break;
				[NSCursor.openHandCursor set];
				break;
			default:
				[NSCursor.arrowCursor set];
				break;


@@ 263,7 263,7 @@ CFTypeRef gio_createWindow(CFTypeRef viewRef, const char *title, CGFloat width, 
		}
		[window setAcceptsMouseMovedEvents:YES];
		if (title != nil) {
		    window.title = [NSString stringWithUTF8String: title];
			window.title = [NSString stringWithUTF8String: title];
		}
		NSView *view = (__bridge NSView *)viewRef;
		[window setContentView:view];


@@ 275,29 275,29 @@ CFTypeRef gio_createWindow(CFTypeRef viewRef, const char *title, CGFloat width, 
}

void gio_close(CFTypeRef windowRef) {
  NSWindow* window = (__bridge NSWindow *)windowRef;
  [window performClose:nil];
	NSWindow* window = (__bridge NSWindow *)windowRef;
	[window performClose:nil];
}

void gio_setSize(CFTypeRef windowRef, CGFloat width, CGFloat height) {
  NSWindow* window = (__bridge NSWindow *)windowRef;
  NSSize size = NSMakeSize(width, height);
  [window setContentSize:size];
	NSWindow* window = (__bridge NSWindow *)windowRef;
	NSSize size = NSMakeSize(width, height);
	[window setContentSize:size];
}

void gio_setMinSize(CFTypeRef windowRef, CGFloat width, CGFloat height) {
  NSWindow* window = (__bridge NSWindow *)windowRef;
  window.contentMinSize = NSMakeSize(width, height);
	NSWindow* window = (__bridge NSWindow *)windowRef;
	window.contentMinSize = NSMakeSize(width, height);
}

void gio_setMaxSize(CFTypeRef windowRef, CGFloat width, CGFloat height) {
  NSWindow* window = (__bridge NSWindow *)windowRef;
  window.contentMaxSize = NSMakeSize(width, height);
	NSWindow* window = (__bridge NSWindow *)windowRef;
	window.contentMaxSize = NSMakeSize(width, height);
}

void gio_setTitle(CFTypeRef windowRef, const char *title) {
  NSWindow* window = (__bridge NSWindow *)windowRef;
  window.title = [NSString stringWithUTF8String: title];
	NSWindow* window = (__bridge NSWindow *)windowRef;
	window.title = [NSString stringWithUTF8String: title];
}

CFTypeRef gio_layerForView(CFTypeRef viewRef) {