Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.h
changeset 736:a02d1475ccfd
prev725:4d4018e8eeb8
next755:ab873907b00e
author nkeynes
date Mon Jul 14 07:44:42 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Re-indent everything consistently
Fix include guards for consistency as well
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 #ifndef lxdream_cocoaui_H
    20 #define lxdream_cocoaui_H
    22 #import <AppKit/AppKit.h>
    23 #include <glib/gi18n.h>
    25 #ifdef __cplusplus
    26 extern "C" {
    27 #endif
    29 #define NS_(x) [NSString stringWithUTF8String: _(x)]
    31 NSWindow *cocoa_gui_create_main_window();
    32 NSMenu *cocoa_gdrom_menu_new();
    33 NSView *video_osx_create_drawable();
    35 @interface LxdreamMainWindow : NSWindow 
    36 {
    37     NSView *video;
    38     NSTextField *status;
    39     BOOL isGrabbed;
    40 }
    41 - (id)initWithContentRect:(NSRect)contentRect;
    42 - (void)setStatusText:(const gchar *)text;
    43 - (void)setRunning:(BOOL)isRunning;
    44 - (BOOL)isGrabbed;
    45 - (void)setIsGrabbed:(BOOL)grab;
    46 @end
    48 @interface LxdreamPrefsPanel : NSPanel
    49 {
    50 }
    51 - (id)initWithContentRect:(NSRect)contentRect;
    52 @end
    54 #ifdef __cplusplus
    55 }
    56 #endif
    58 #endif /* lxdream_cocoaui_H */
.