Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.h
changeset 691:ad3356543392
prev681:1755a126b109
next725:4d4018e8eeb8
author nkeynes
date Thu Jun 19 04:40:37 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Refactor the gd-rom list management out of the GUI (devices, recent files, etc).
Add gd-rom list to the cocoa UI.
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 NSMenu *cocoa_gdrom_menu_new();
    29 NSView *video_osx_create_drawable();
    31 @interface LxdreamMainWindow : NSWindow 
    32 {
    33     NSView *video;
    34     NSTextField *status;
    35     BOOL isGrabbed;
    36 }
    37 - (id)initWithContentRect:(NSRect)contentRect;
    38 - (void)setStatusText:(const gchar *)text;
    39 - (void)setRunning:(BOOL)isRunning;
    40 - (BOOL)isGrabbed;
    41 - (void)setIsGrabbed:(BOOL)grab;
    42 @end
    45 #endif /* lxdream_cocoaui_H */
.