17 #include "threads/CriticalSection.h" 18 #include "utils/Job.h" 19 #include "utils/Stopwatch.h" 30 CGUIMultiImage(
int parentID,
int controlID,
float posX,
float posY,
float width,
float height,
const CTextureInfo& texture,
unsigned int timePerImage,
unsigned int fadeTime,
bool randomized,
bool loop,
unsigned int timeToPauseAtEnd);
35 void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions)
override;
36 void Render()
override;
37 void UpdateVisibility(
const CGUIListItem *item = NULL)
override;
38 void UpdateInfo(
const CGUIListItem *item = NULL)
override;
39 bool OnAction(
const CAction &action)
override;
41 void AllocResources()
override;
42 void FreeResources(
bool immediately =
false)
override;
43 void DynamicResourceAlloc(
bool bOnOff)
override;
44 bool IsDynamicallyAllocated()
override {
return m_bDynamicResourceAlloc; }
45 void SetInvalid()
override;
46 bool CanFocus()
const override;
47 std::string GetDescription()
const override;
54 void OnDirectoryLoaded();
57 enum DIRECTORY_STATUS { UNLOADED = 0, LOADING, LOADED, READY };
65 const char*
GetType()
const override {
return "multiimage"; }
67 std::vector<std::string> m_files;
72 std::string m_currentPath;
73 unsigned int m_currentImage;
75 unsigned int m_timePerImage;
76 unsigned int m_timeToPauseAtEnd;
80 bool m_bDynamicResourceAlloc;
81 std::vector<std::string> m_files;
85 CCriticalSection m_section;
86 DIRECTORY_STATUS m_directoryStatus;
Definition: Stopwatch.h:14
Definition: GUIMultiImage.h:60
Definition: GUIListItem.h:30
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Definition: GUIInfoLabel.h:31
Base class for controls.
Definition: GUIControl.h:75
const char * GetType() const override
Function that returns the type of job.
Definition: GUIMultiImage.h:65
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
bool DoWork() override
Main workhorse function of CJob instances.
Definition: GUIMultiImage.cpp:295
Definition: GUITexture.h:28
Definition: GUITexture.h:51
Definition: GUIMultiImage.h:27
void OnJobComplete(unsigned int jobID, bool success, CJob *job) override
The callback used when a job completes.
Definition: GUIMultiImage.cpp:268
Definition: GUIMessage.h:365
Definition: GUIImage.h:27
Callback interface for asynchronous jobs.
Definition: Job.h:31