Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.h
changeset 681:1755a126b109
next691:ad3356543392
author nkeynes
date Sun Jun 01 00:47:45 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change First cut of the Cocoa GUI implementation
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/cocoaui/cocoaui.h Sun Jun 01 00:47:45 2008 +0000
1.3 @@ -0,0 +1,44 @@
1.4 +/**
1.5 + * $Id$
1.6 + *
1.7 + * Core Cocoa-based user interface
1.8 + *
1.9 + * Copyright (c) 2008 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#import <AppKit/AppKit.h>
1.23 +#include <glib/gi18n.h>
1.24 +
1.25 +#ifndef lxdream_cocoaui_H
1.26 +#define lxdream_cocoaui_H
1.27 +
1.28 +#define NS_(x) [NSString stringWithUTF8String: _(x)]
1.29 +
1.30 +NSWindow *cocoa_gui_create_main_window();
1.31 +NSView *video_osx_create_drawable();
1.32 +
1.33 +@interface LxdreamMainWindow : NSWindow
1.34 +{
1.35 + NSView *video;
1.36 + NSTextField *status;
1.37 + BOOL isGrabbed;
1.38 +}
1.39 +- (id)initWithContentRect:(NSRect)contentRect;
1.40 +- (void)setStatusText:(const gchar *)text;
1.41 +- (void)setRunning:(BOOL)isRunning;
1.42 +- (BOOL)isGrabbed;
1.43 +- (void)setIsGrabbed:(BOOL)grab;
1.44 +@end
1.45 +
1.46 +
1.47 +#endif /* lxdream_cocoaui_H */
1.48 \ No newline at end of file
.