1 /*****************************************************************************
2 * beos_window.h: beos window class prototype
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 class VideoWindow : public BDirectWindow
27 // standard constructor and destructor
28 VideoWindow(BRect frame, const char *name, vout_thread_t *p_video_output);
31 // standard window member
32 virtual bool QuitRequested();
33 virtual void MessageReceived(BMessage *message);
35 // this is the hook controling direct screen connection
36 virtual void DirectConnected(direct_buffer_info *info);
38 int32 i_bytes_per_pixel;
40 vout_thread_t *p_vout;
45 clipping_rect fBounds;
48 clipping_rect *fClipList;
53 bool fConnectionDisabled;
55 thread_id fDrawThreadID;
58 class InterfaceWindow : public BWindow
61 InterfaceWindow( BRect frame, const char *name, intf_thread_t *p_intf );
64 // standard window member
65 virtual bool QuitRequested();
66 virtual void MessageReceived(BMessage *message);
68 intf_thread_t *p_interface;
71 class InterfaceView : public BView
77 virtual void MessageReceived(BMessage *message);