You.i Engine
YiPlayerPreviewThumbnailView.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_PLAYER_PREVIEW_THUMBNAIL_VIEW_H_
3 #define _YI_PLAYER_PREVIEW_THUMBNAIL_VIEW_H_
4 
6 
7 class CYIImageView;
8 class CYIBifThumbnails;
9 class CYIAssetBif;
10 
37 {
38 public:
41 
42  virtual bool Init() override;
43 
50  virtual void SetTime(uint64_t timeMs) override;
51 
57  virtual void SetTime(uint64_t timeMs, const CYIString &format) override;
58 
64  void SetThumbnail(const CYIString &rFile);
70  void SetThumbnail(const std::shared_ptr<CYIAssetBif> &pBif);
71 
75  void ClearThumbnail();
76 
77 protected:
79  std::unique_ptr<CYIBifThumbnails> m_pThumbnailHelper;
80 
82 
83 private:
85 };
86 
91 #endif // _YI_PLAYER_PREVIEW_THUMBNAIL_VIEW_H_
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:122
std::unique_ptr< CYIBifThumbnails > m_pThumbnailHelper
Definition: YiPlayerPreviewThumbnailView.h:79
Asset representing BIF files.
Definition: YiAssetBif.h:21
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
A simple view which downloads and renders images.
Definition: YiImageView.h:97
CYIImageView * m_pThumbnailNode
Definition: YiPlayerPreviewThumbnailView.h:78
This view displays current playing time.
Definition: YiPlayerTimePopupView.h:31
virtual void SetTime(uint64_t timeMs) override
This view will display thumbnails.
Definition: YiPlayerPreviewThumbnailView.h:36
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
Implementation of thumbnails using BIF file format.
Definition: YiBifThumbnails.h:26
void SetThumbnail(const CYIString &rFile)
virtual bool Init() override