]> git.sesse.net Git - vlc/blob - include/beos_window.h
* Ported Glide and MGA plugins to the new module API. MGA never worked,
[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,
29                  struct vout_thread_s *p_video_output); 
30     ~VideoWindow();
31
32     // standard window member
33     virtual bool    QuitRequested();
34     virtual void    FrameResized(float width, float height);
35     virtual void    MessageReceived(BMessage *message);
36
37     // this is the hook controling direct screen connection
38     virtual void    DirectConnected(direct_buffer_info *info);
39
40     int32                   i_bytes_per_pixel;
41     int32                   i_screen_depth;
42     struct vout_thread_s   *p_vout;
43      
44     uint8           *fBits;
45     int32           fRowBytes;
46     color_space     fFormat;
47     clipping_rect   fBounds;
48
49     uint32          fNumClipRects;
50     clipping_rect   *fClipList;
51
52     bool            fDirty;
53     bool            fReady;
54     bool            fConnected;
55     bool            fConnectionDisabled;
56     BLocker         *locker;
57     thread_id       fDrawThreadID;
58
59     // additional events
60     bool            b_resized;
61 };
62
63 class InterfaceWindow : public BWindow
64 {
65 public:
66     InterfaceWindow( BRect frame, const char *name, intf_thread_t  *p_intf );
67     ~InterfaceWindow();
68
69     // standard window member
70     virtual bool    QuitRequested();
71     virtual void    MessageReceived(BMessage *message);
72     
73     intf_thread_t  *p_intf;
74 };
75
76 class InterfaceView : public BView
77 {
78 public:
79     InterfaceView();
80     ~InterfaceView();
81
82     virtual void    MessageReceived(BMessage *message);
83    
84 };