]> git.sesse.net Git - vlc/blob - include/beos_window.h
2050ea861823b3fcf9bc07efe6c747b361d29a50
[vlc] / include / beos_window.h
1 /*****************************************************************************
2  * beos_window.h: beos window class prototype
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  *
6  * Authors:
7  * Jean-Marc Dressler
8  *
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.
13  * 
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.
18  *
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  *****************************************************************************/
23
24 class VideoWindow : public BDirectWindow
25 {
26 public:
27     // standard constructor and destructor
28     VideoWindow(BRect frame, const char *name, vout_thread_t *p_video_output); 
29     ~VideoWindow();
30
31     // standard window member
32     virtual bool    QuitRequested();
33     virtual void    MessageReceived(BMessage *message);
34
35     // this is the hook controling direct screen connection
36     virtual void    DirectConnected(direct_buffer_info *info);
37
38     int32           i_bytes_per_pixel;
39     int32           i_screen_depth;
40     vout_thread_t   *p_vout;
41      
42     uint8           *fBits;
43     int32           fRowBytes;
44     color_space     fFormat;
45     clipping_rect   fBounds;
46
47     uint32          fNumClipRects;
48     clipping_rect   *fClipList;
49
50     bool            fDirty;
51     bool            fReady;
52     bool            fConnected;
53     bool            fConnectionDisabled;
54     BLocker         *locker;
55     thread_id       fDrawThreadID;
56 };
57
58 class InterfaceWindow : public BWindow
59 {
60 public:
61     InterfaceWindow( BRect frame, const char *name, intf_thread_t  *p_intf );
62     ~InterfaceWindow();
63
64     // standard window member
65     virtual bool    QuitRequested();
66     virtual void    MessageReceived(BMessage *message);
67     
68     intf_thread_t  *p_interface;
69 };
70
71 class InterfaceView : public BView
72 {
73 public:
74     InterfaceView();
75     ~InterfaceView();
76
77     virtual void    MessageReceived(BMessage *message);
78    
79 };