Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CSlideShowPic Class Referenceabstract

#include <SlideShowPicture.h>

Inheritance diagram for CSlideShowPic:
CSlideShowPicDX CSlideShowPicGL CSlideShowPicGLES

Classes

struct  TRANSITION
 

Public Types

enum  DISPLAY_EFFECT {
  EFFECT_NONE = 0 , EFFECT_FLOAT , EFFECT_ZOOM , EFFECT_RANDOM ,
  EFFECT_PANORAMA , EFFECT_NO_TIMEOUT
}
 
enum  TRANSITION_EFFECT {
  TRANSITION_NONE = 0 , FADEIN_FADEOUT , CROSSFADE , TRANSITION_ZOOM ,
  TRANSITION_ROTATE
}
 

Public Member Functions

 CSlideShowPic ()
 
virtual ~CSlideShowPic ()
 
void SetTexture (int iSlideNumber, std::unique_ptr< CTexture > pTexture, DISPLAY_EFFECT dispEffect=EFFECT_RANDOM, TRANSITION_EFFECT transEffect=FADEIN_FADEOUT)
 
void UpdateTexture (std::unique_ptr< CTexture > pTexture)
 
bool IsLoaded () const
 
void UnLoad ()
 
void Process (unsigned int currentTime, CDirtyRegionList &dirtyregions)
 
void Render ()
 
void Close ()
 
void Reset (DISPLAY_EFFECT dispEffect=EFFECT_RANDOM, TRANSITION_EFFECT transEffect=FADEIN_FADEOUT)
 
DISPLAY_EFFECT DisplayEffect () const
 
bool DisplayEffectNeedChange (DISPLAY_EFFECT newDispEffect) const
 
bool IsStarted () const
 
bool IsFinished () const
 
bool IsAnimating () const
 
bool DrawNextImage () const
 
int GetWidth () const
 
int GetHeight () const
 
void Keep ()
 
bool StartTransition ()
 
int GetTransitionTime (int iType) const
 
void SetTransitionTime (int iType, int iTime)
 
int SlideNumber () const
 
void Zoom (float fZoomAmount, bool immediate=false)
 
void Rotate (float fRotateAngle, bool immediate=false)
 
void UpdateAlpha ()
 
void Pause (bool bPause)
 
void SetInSlideshow (bool slideshow)
 
void SetOriginalSize (int iOriginalWidth, int iOriginalHeight, bool bFullSize)
 
bool FullSize () const
 
int GetOriginalWidth ()
 
int GetOriginalHeight ()
 
void Move (float dX, float dY)
 
float GetZoom () const
 

Static Public Member Functions

static std::unique_ptr< CSlideShowPicCreateSlideShowPicture ()
 

Public Attributes

bool m_bIsComic
 
bool m_bCanMoveHorizontally
 
bool m_bCanMoveVertically
 

Protected Member Functions

virtual void Render (float *x, float *y, CTexture *pTexture, KODI::UTILS::COLOR::Color color)=0
 

Member Enumeration Documentation

◆ DISPLAY_EFFECT

Enumerator
EFFECT_NONE 
EFFECT_FLOAT 
EFFECT_ZOOM 
EFFECT_RANDOM 
EFFECT_PANORAMA 
EFFECT_NO_TIMEOUT 

◆ TRANSITION_EFFECT

Enumerator
TRANSITION_NONE 
FADEIN_FADEOUT 
CROSSFADE 
TRANSITION_ZOOM 
TRANSITION_ROTATE 

Constructor & Destructor Documentation

◆ CSlideShowPic()

CSlideShowPic::CSlideShowPic ( )

◆ ~CSlideShowPic()

CSlideShowPic::~CSlideShowPic ( )
virtual

Member Function Documentation

◆ Close()

void CSlideShowPic::Close ( )

◆ CreateSlideShowPicture()

std::unique_ptr< CSlideShowPic > CSlideShowPic::CreateSlideShowPicture ( )
static

◆ DisplayEffect()

DISPLAY_EFFECT CSlideShowPic::DisplayEffect ( ) const
inline

◆ DisplayEffectNeedChange()

bool CSlideShowPic::DisplayEffectNeedChange ( DISPLAY_EFFECT newDispEffect) const

◆ DrawNextImage()

bool CSlideShowPic::DrawNextImage ( ) const
inline

◆ FullSize()

bool CSlideShowPic::FullSize ( ) const
inline

◆ GetHeight()

int CSlideShowPic::GetHeight ( ) const
inline

◆ GetOriginalHeight()

int CSlideShowPic::GetOriginalHeight ( )

◆ GetOriginalWidth()

int CSlideShowPic::GetOriginalWidth ( )

◆ GetTransitionTime()

int CSlideShowPic::GetTransitionTime ( int iType) const

◆ GetWidth()

int CSlideShowPic::GetWidth ( ) const
inline

◆ GetZoom()

float CSlideShowPic::GetZoom ( ) const
inline

◆ IsAnimating()

bool CSlideShowPic::IsAnimating ( ) const

◆ IsFinished()

bool CSlideShowPic::IsFinished ( ) const

◆ IsLoaded()

bool CSlideShowPic::IsLoaded ( ) const
inline

◆ IsStarted()

bool CSlideShowPic::IsStarted ( ) const
inline

◆ Keep()

void CSlideShowPic::Keep ( )

◆ Move()

void CSlideShowPic::Move ( float dX,
float dY )

◆ Pause()

void CSlideShowPic::Pause ( bool bPause)

◆ Process()

void CSlideShowPic::Process ( unsigned int currentTime,
CDirtyRegionList & dirtyregions )
Todo
change m_displayEffect != EFFECT_NO_TIMEOUT to whether we're running the slideshow

◆ Render() [1/2]

void CSlideShowPic::Render ( )

◆ Render() [2/2]

virtual void CSlideShowPic::Render ( float * x,
float * y,
CTexture * pTexture,
KODI::UTILS::COLOR::Color color )
protectedpure virtual

◆ Reset()

void CSlideShowPic::Reset ( DISPLAY_EFFECT dispEffect = EFFECT_RANDOM,
TRANSITION_EFFECT transEffect = FADEIN_FADEOUT )

◆ Rotate()

void CSlideShowPic::Rotate ( float fRotateAngle,
bool immediate = false )

◆ SetInSlideshow()

void CSlideShowPic::SetInSlideshow ( bool slideshow)

◆ SetOriginalSize()

void CSlideShowPic::SetOriginalSize ( int iOriginalWidth,
int iOriginalHeight,
bool bFullSize )

◆ SetTexture()

void CSlideShowPic::SetTexture ( int iSlideNumber,
std::unique_ptr< CTexture > pTexture,
DISPLAY_EFFECT dispEffect = EFFECT_RANDOM,
TRANSITION_EFFECT transEffect = FADEIN_FADEOUT )

◆ SetTransitionTime()

void CSlideShowPic::SetTransitionTime ( int iType,
int iTime )

◆ SlideNumber()

int CSlideShowPic::SlideNumber ( ) const
inline

◆ StartTransition()

bool CSlideShowPic::StartTransition ( )

◆ UnLoad()

void CSlideShowPic::UnLoad ( )
inline

◆ UpdateAlpha()

void CSlideShowPic::UpdateAlpha ( )

◆ UpdateTexture()

void CSlideShowPic::UpdateTexture ( std::unique_ptr< CTexture > pTexture)

◆ Zoom()

void CSlideShowPic::Zoom ( float fZoomAmount,
bool immediate = false )

Member Data Documentation

◆ m_bCanMoveHorizontally

bool CSlideShowPic::m_bCanMoveHorizontally

◆ m_bCanMoveVertically

bool CSlideShowPic::m_bCanMoveVertically

◆ m_bIsComic

bool CSlideShowPic::m_bIsComic

The documentation for this class was generated from the following files: