]> git.sesse.net Git - vlc/blob - plugins/macosx/vout_qdview.m
03c373c010cc7133add984bcfb893fb51971ed42
[vlc] / plugins / macosx / vout_qdview.m
1 /*****************************************************************************
2  * vout_qdview.m: MacOS X plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: vout_qdview.m,v 1.4 2002/06/08 19:32:19 sam Exp $
6  *
7  * Authors: Florian G. Pflug <fgp@phlo.org>
8  *          Jon Lech Johansen <jon-vl@nanocrew.net>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 /*****************************************************************************
26  * Preamble
27  *****************************************************************************/
28 #import <Cocoa/Cocoa.h>
29
30 #import "vout_qdview.h"
31
32 /*****************************************************************************
33  * VLCView implementation 
34  *****************************************************************************/
35 @implementation VLCView
36
37 - (id)initWithWrapper:(Vout_VLCWrapper *)_o_wrapper forVout:(void *)_p_vout
38 {
39     if( [super init] == nil )
40         return nil;
41
42     p_vout = _p_vout;
43     o_wrapper = _o_wrapper;
44
45     return( self );
46 }
47
48 - (void)drawRect:(NSRect)rect
49 {
50     [[NSColor blackColor] set];
51     NSRectFill(rect);
52     [super drawRect: rect];
53     [o_wrapper voutDidResize: p_vout ];
54 }
55
56 @end