You.i Engine
YiVideoSurfacePlatform.h
Go to the documentation of this file.
1 // © You i Labs Inc. All rights reserved.
2 #ifndef _YI_VIDEO_SURFACE_PLATFORM_H_
3 #define _YI_VIDEO_SURFACE_PLATFORM_H_
4 
5 #include "graphics/YiRectangle.h"
7 
21 {
22  friend class CYIVideoSurfaceView; //For positioning the platform view
23 
24 public:
25  virtual void Init() override;
26 
36  void SetLayerIndex(ssize_t layerIndex);
37 
43  ssize_t GetLayerIndex() const;
44 
45 protected:
47  virtual ~CYIVideoSurfacePlatform();
48 
52  virtual void BringToFront() = 0;
53 
61  virtual void SetVideoRectangle(const YI_RECT_REL &videoRectangle) = 0;
62 
63  virtual void OnAttached(CYIVideoSurfaceView *pVideoSurfaceView) override;
64  virtual void OnDetached(CYIVideoSurfaceView *pVideoSurfaceView) override;
65 
66 private:
67  static void ReorderPlatformSurfaces();
68  ssize_t m_layerIndex;
69 };
70 
75 #endif
Capabilities
Definition: YiVideoSurface.h:39
Definition: YiRectangle.h:38
long long ssize_t
Definition: YiPredefWindows.h:21
virtual void OnAttached(CYIVideoSurfaceView *pVideoSurfaceView) override
virtual void SetVideoRectangle(const YI_RECT_REL &videoRectangle)=0
CYIVideoSurfacePlatform(Capabilities capabilities)
virtual ~CYIVideoSurfacePlatform()
ssize_t GetLayerIndex() const
virtual void OnDetached(CYIVideoSurfaceView *pVideoSurfaceView) override
void SetLayerIndex(ssize_t layerIndex)
virtual void BringToFront()=0
virtual void Init() override
Representation of a CYIAbstractVideoPlayer's video surface.
Definition: YiVideoSurface.h:34
View representation of a CYIAbstractVideoPlayer's CYIVideoSurface.
Definition: YiVideoSurfaceView.h:32
Representation of a CYIAbstractVideoPlayer's video surface, if the player is rendering to a platform-...
Definition: YiVideoSurfacePlatform.h:20