X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fvout.h;h=314fba02de4bcdeafc22c5d3529c96cbf7000226;hb=6b90843041ecdf3ae0bde9ce27a1d8327de56f48;hp=33432d75d0e94b8314e63cb3abeddc24d6ea439c;hpb=a272d13abbd82702679dfcee134df3e826ff652a;p=vlc diff --git a/modules/gui/macosx/vout.h b/modules/gui/macosx/vout.h index 33432d75d0..314fba02de 100644 --- a/modules/gui/macosx/vout.h +++ b/modules/gui/macosx/vout.h @@ -1,19 +1,20 @@ /***************************************************************************** * vout.h: MacOS X interface module ***************************************************************************** - * Copyright (C) 2001-2003 VideoLAN + * Copyright (C) 2001-2007 the VideoLAN team * $Id$ * * Authors: Colin Delacroix * Florian G. Pflug * Jon Lech Johansen * Eric Petit + * Benjamin Pracht * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -21,35 +22,110 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ +#import "misc.h" /***************************************************************************** - * VLCWindow interface + * VLCEmbeddedList interface *****************************************************************************/ -@interface VLCWindow : NSWindow +@interface VLCEmbeddedList : NSObject { - vout_thread_t * p_vout; - vout_thread_t * p_real_vout; - - Ptr p_fullscreen_state; - mtime_t i_time_mouse_last_moved; + NSMutableArray * o_embedded_array; } -- (id)initWithVout:(vout_thread_t *)_p_vout - frame:(NSRect *)s_frame; -- (void)close; -- (void)setOnTop:(bool)b_on_top; +- (id)getEmbeddedVout; +- (void)releaseEmbeddedVout: (id)o_vout_view; +- (void)addEmbeddedVout: (id)o_vout_view; +- (BOOL)windowContainsEmbedded: (id)o_window; +- (id)getViewForWindow: (id)o_window; -- (void)hideMouse:(bool)b_hide; -- (void)manage; +@end -- (void)scaleWindowWithFactor: (float)factor; +/***************************************************************************** + * VLCVoutView interface + *****************************************************************************/ +@protocol VLCVoutViewResetting ++ (void)resetVout: (vout_thread_t *)p_vout; +@end + +@interface VLCVoutView : NSView +{ + vout_thread_t * p_vout; + NSRect * s_frame; + + NSView * o_view; + + vout_thread_t * p_real_vout; + id o_window; +} +- (BOOL)setVout: (vout_thread_t *) p_arg_vout subView: (NSView *) view + frame: (NSRect *) s_arg_frame; +- (void)closeVout; +- (void)updateTitle; +- (void)manage; +- (void)scaleWindowWithFactor: (float)factor animate: (BOOL)animate; +- (void)setOnTop:(BOOL)b_on_top; - (void)toggleFloatOnTop; - (void)toggleFullscreen; - (BOOL)isFullscreen; -- (void)updateTitle; +- (void)snapshot; +- (id)getWindow; + ++ (id)getVoutView: (vout_thread_t *)p_vout subView: (NSView *) view + frame: (NSRect *) s_frame; ++ (vout_thread_t *)getRealVout: (vout_thread_t *)p_vout; + +- (void)enterFullscreen; +- (void)leaveFullscreen; +@end + +/***************************************************************************** + * VLCVoutDetachedView interface + *****************************************************************************/ + +@interface VLCDetachedVoutView : VLCVoutView +{ + mtime_t i_time_mouse_last_moved; +} + +- (void)hideMouse: (BOOL)b_hide; -- (BOOL)windowShouldClose:(id)sender; +@end + +/***************************************************************************** + * VLCEmbeddedView interface + *****************************************************************************/ + +@interface VLCEmbeddedVoutView : VLCVoutView +{ + BOOL b_used; + id o_embeddedwindow; +} + +- (void)setUsed: (BOOL)b_new_used; +- (BOOL)isUsed; + +@end + +/***************************************************************************** + * VLCVoutWindow interface + *****************************************************************************/ +@interface VLCVoutWindow : VLCWindow +{ + vout_thread_t * p_vout; + VLCVoutView * o_view; + NSRect * s_frame; + + bool b_init_ok; + BOOL fullscreen; + NSRect initialFrame; +} +- (id) initWithVout: (vout_thread_t *) p_vout view: (VLCVoutView *) view + frame: (NSRect *) s_frame; +- (id)initMainThread: (id) sender; +- (void)leaveFullscreen; +- (void)enterFullscreen; +- (id)getVoutView; @end