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

#include <GUIFont.h>

Public Member Functions

 CScrollInfo (unsigned int wait=50, float pos=0, int speed=defaultSpeed, const std::string &scrollSuffix=" | ")
 
void SetSpeed (int speed)
 
void Reset ()
 
float GetPixelsPerFrame ()
 

Public Attributes

float m_pixelPos
 
float m_pixelSpeed
 
unsigned int m_waitTime
 
unsigned int m_initialWait
 
float m_initialPos
 
vecText m_suffix
 
float m_textWidth
 
float m_totalWidth
 
bool m_widthValid
 
unsigned int m_loopCount
 

Static Public Attributes

static const int defaultSpeed = 60
 

Constructor & Destructor Documentation

◆ CScrollInfo()

CScrollInfo::CScrollInfo ( unsigned int wait = 50,
float pos = 0,
int speed = defaultSpeed,
const std::string & scrollSuffix = " | " )

Member Function Documentation

◆ GetPixelsPerFrame()

float CScrollInfo::GetPixelsPerFrame ( )

◆ Reset()

void CScrollInfo::Reset ( )
inline

◆ SetSpeed()

void CScrollInfo::SetSpeed ( int speed)
inline

Member Data Documentation

◆ defaultSpeed

const int CScrollInfo::defaultSpeed = 60
static

◆ m_initialPos

float CScrollInfo::m_initialPos

◆ m_initialWait

unsigned int CScrollInfo::m_initialWait

◆ m_loopCount

unsigned int CScrollInfo::m_loopCount

◆ m_pixelPos

float CScrollInfo::m_pixelPos

◆ m_pixelSpeed

float CScrollInfo::m_pixelSpeed

◆ m_suffix

vecText CScrollInfo::m_suffix

◆ m_textWidth

float CScrollInfo::m_textWidth
mutable

◆ m_totalWidth

float CScrollInfo::m_totalWidth
mutable

◆ m_waitTime

unsigned int CScrollInfo::m_waitTime

◆ m_widthValid

bool CScrollInfo::m_widthValid
mutable

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