X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgui%2Fmacosx%2Fvout.h;h=418bf73ac042d3199a01f7d85eaf37fb74e0c1e0;hb=89885149e814b2d287dd7166a92eb69f3221f0af;hp=34e5369bdd677d0dad868c385523ad8edd8df3bc;hpb=94cdda13e8bbf6a3bccbaf2d81b424e61050e2d9;p=vlc diff --git a/modules/gui/macosx/vout.h b/modules/gui/macosx/vout.h index 34e5369bdd..418bf73ac0 100644 --- a/modules/gui/macosx/vout.h +++ b/modules/gui/macosx/vout.h @@ -30,79 +30,27 @@ @interface VLCWindow : NSWindow { vout_thread_t * p_vout; + vout_thread_t * p_real_vout; + + Ptr p_fullscreen_state; + mtime_t i_time_mouse_last_moved; } -- (void)setVout:(vout_thread_t *)_p_vout; -- (vout_thread_t *)getVout; +- (id)initWithVout:(vout_thread_t *)_p_vout + frame:(NSRect *)s_frame; +- (void)close; +- (void)setOnTop:(bool)b_on_top; + +- (void)hideMouse:(bool)b_hide; +- (void)manage; - (void)scaleWindowWithFactor: (float)factor; - (void)toggleFloatOnTop; - (void)toggleFullscreen; - (BOOL)isFullscreen; +- (void)snapshot; - (void)updateTitle; - (BOOL)windowShouldClose:(id)sender; @end - -/***************************************************************************** - * VLCView interface - *****************************************************************************/ -@interface VLCQTView : NSQuickDrawView -{ -} - -@end - -/***************************************************************************** - * VLCView interface - *****************************************************************************/ -@interface VLCGLView : NSOpenGLView -{ - vout_thread_t * p_vout; - int i_effect; - unsigned long pi_textures[2]; - float f_x; - float f_y; - int initDone; -} - -- (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout; -- (void) initTextures; -- (void) reloadTexture: (int) index; -- (void) cleanUp; - -@end - -/***************************************************************************** - * vout_sys_t: MacOS X video output method descriptor - *****************************************************************************/ -struct vout_sys_t -{ - NSAutoreleasePool *o_pool; - NSRect s_rect; - VLCWindow * o_window; - VLCQTView * o_qtview; - - int i_opengl; - int b_pos_saved; - - vlc_bool_t b_mouse_moved; - mtime_t i_time_mouse_last_moved; - -#ifdef __QUICKTIME__ - CodecType i_codec; - CGrafPtr p_qdport; - ImageSequence i_seq; - MatrixRecordPtr p_matrix; - DecompressorComponent img_dc; - ImageDescriptionHandle h_img_descr; - Ptr p_fullscreen_state; -#endif - - /* OpenGL */ - VLCGLView * o_glview; - uint8_t * p_data[2]; - uint8_t * p_data_orig[2]; - int i_cur_pic; -};