Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.h
changeset 681:1755a126b109
next691:ad3356543392
author nkeynes
date Sat Jun 14 10:19:35 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add an application icon (ie the existing dcemu.gif)
view annotate diff log raw
     1 /**
     2  * $Id$
     3  *
     4  * Core Cocoa-based user interface
     5  *
     6  * Copyright (c) 2008 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 #import <AppKit/AppKit.h>
    20 #include <glib/gi18n.h>
    22 #ifndef lxdream_cocoaui_H
    23 #define lxdream_cocoaui_H
    25 #define NS_(x) [NSString stringWithUTF8String: _(x)]
    27 NSWindow *cocoa_gui_create_main_window();
    28 NSView *video_osx_create_drawable();
    30 @interface LxdreamMainWindow : NSWindow 
    31 {
    32     NSView *video;
    33     NSTextField *status;
    34     BOOL isGrabbed;
    35 }
    36 - (id)initWithContentRect:(NSRect)contentRect;
    37 - (void)setStatusText:(const gchar *)text;
    38 - (void)setRunning:(BOOL)isRunning;
    39 - (BOOL)isGrabbed;
    40 - (void)setIsGrabbed:(BOOL)grab;
    41 @end
    44 #endif /* lxdream_cocoaui_H */
.