nkeynes@681: /** nkeynes@681: * $Id$ nkeynes@681: * nkeynes@681: * Core Cocoa-based user interface nkeynes@681: * nkeynes@681: * Copyright (c) 2008 Nathan Keynes. nkeynes@681: * nkeynes@681: * This program is free software; you can redistribute it and/or modify nkeynes@681: * it under the terms of the GNU General Public License as published by nkeynes@681: * the Free Software Foundation; either version 2 of the License, or nkeynes@681: * (at your option) any later version. nkeynes@681: * nkeynes@681: * This program is distributed in the hope that it will be useful, nkeynes@681: * but WITHOUT ANY WARRANTY; without even the implied warranty of nkeynes@681: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nkeynes@681: * GNU General Public License for more details. nkeynes@681: */ nkeynes@681: nkeynes@736: #ifndef lxdream_cocoaui_H nkeynes@736: #define lxdream_cocoaui_H nkeynes@736: nkeynes@681: #import nkeynes@681: #include nkeynes@681: nkeynes@736: #ifdef __cplusplus nkeynes@736: extern "C" { nkeynes@736: #endif nkeynes@736: nkeynes@681: #define NS_(x) [NSString stringWithUTF8String: _(x)] nkeynes@681: nkeynes@681: NSWindow *cocoa_gui_create_main_window(); nkeynes@691: NSMenu *cocoa_gdrom_menu_new(); nkeynes@681: NSView *video_osx_create_drawable(); nkeynes@681: nkeynes@681: @interface LxdreamMainWindow : NSWindow nkeynes@681: { nkeynes@681: NSView *video; nkeynes@681: NSTextField *status; nkeynes@681: BOOL isGrabbed; nkeynes@681: } nkeynes@681: - (id)initWithContentRect:(NSRect)contentRect; nkeynes@681: - (void)setStatusText:(const gchar *)text; nkeynes@681: - (void)setRunning:(BOOL)isRunning; nkeynes@681: - (BOOL)isGrabbed; nkeynes@681: - (void)setIsGrabbed:(BOOL)grab; nkeynes@681: @end nkeynes@681: nkeynes@725: @interface LxdreamPrefsPanel : NSPanel nkeynes@725: { nkeynes@725: } nkeynes@725: - (id)initWithContentRect:(NSRect)contentRect; nkeynes@725: @end nkeynes@681: nkeynes@736: #ifdef __cplusplus nkeynes@736: } nkeynes@736: #endif nkeynes@736: nkeynes@681: #endif /* lxdream_cocoaui_H */