00001 /***************************************************************************** 00002 * vout.h: MacOS X interface module 00003 ***************************************************************************** 00004 * Copyright (C) 2001-2005 the VideoLAN team 00005 * $Id: vout.h 11664 2005-07-09 06:17:09Z courmisch $ 00006 * 00007 * Authors: Colin Delacroix <[email protected]> 00008 * Florian G. Pflug <[email protected]> 00009 * Jon Lech Johansen <[email protected]> 00010 * Eric Petit <[email protected]> 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * VLCWindow interface 00029 *****************************************************************************/ 00030 @interface VLCWindow : NSWindow 00031 { 00032 vout_thread_t * p_vout; 00033 NSView * o_view; 00034 NSRect * s_frame; 00035 00036 vout_thread_t * p_real_vout; 00037 Ptr p_fullscreen_state; 00038 mtime_t i_time_mouse_last_moved; 00039 vlc_bool_t b_init_ok; 00040 } 00041 00042 - (id) initWithVout: (vout_thread_t *) p_vout view: (NSView *) view 00043 frame: (NSRect *) s_frame; 00044 - (id) initReal: (id) sender; 00045 - (void) close; 00046 - (id) closeReal: (id) sender; 00047 - (void)setOnTop:(BOOL)b_on_top; 00048 00049 - (void)hideMouse:(BOOL)b_hide; 00050 - (void)manage; 00051 00052 - (void)scaleWindowWithFactor: (float)factor; 00053 - (void)toggleFloatOnTop; 00054 - (void)toggleFullscreen; 00055 - (BOOL)isFullscreen; 00056 - (void)snapshot; 00057 - (void)updateTitle; 00058 00059 - (BOOL)windowShouldClose:(id)sender; 00060 00061 @end