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,
29 struct vout_thread_s *p_video_output);
32 // standard window member
33 virtual bool QuitRequested();
34 virtual void FrameResized(float width, float height);
35 virtual void MessageReceived(BMessage *message);
37 // this is the hook controling direct screen connection
38 virtual void DirectConnected(direct_buffer_info *info);
40 int32 i_bytes_per_pixel;
42 struct vout_thread_s *p_vout;
47 clipping_rect fBounds;
50 clipping_rect *fClipList;
55 bool fConnectionDisabled;
57 thread_id fDrawThreadID;
63 class InterfaceWindow : public BWindow
66 InterfaceWindow( BRect frame, const char *name, intf_thread_t *p_intf );
69 // standard window member
70 virtual bool QuitRequested();
71 virtual void MessageReceived(BMessage *message);
73 intf_thread_t *p_intf;
76 class InterfaceView : public BView
82 virtual void MessageReceived(BMessage *message);