BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / add-ons / media / media-add-ons / videowindow / VideoView.h
blob0d046a4d9335ea8656fbc9b448ebd684aba6375e
1 /*
2 * Copyright (C) 2006 Marcus Overhagen <marcus@overhagen.de>. All rights reserved.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef __VIDEO_VIEW_H
7 #define __VIDEO_VIEW_H
10 #include <View.h>
13 class BMediaAddOn;
14 class VideoNode;
17 class VideoView : public BView
19 public:
20 VideoView(BRect frame, const char *name, uint32 resizeMask, uint32 flags, VideoNode *node);
21 ~VideoView();
23 void RemoveVideoDisplay();
24 void RemoveOverlay();
26 VideoNode * Node();
28 bool IsOverlaySupported();
30 void OverlayLockAcquire();
31 void OverlayLockRelease();
33 void OverlayScreenshotPrepare();
34 void OverlayScreenshotCleanup();
36 void DrawFrame();
38 private:
39 void AttachedToWindow();
40 void MessageReceived(BMessage *msg);
41 void Draw(BRect updateRect);
43 private:
44 VideoNode * fVideoNode;
45 bool fOverlayActive;
46 rgb_color fOverlayKeyColor;
49 #endif