17 #include "GUITexture.h"    55   CGUIImage(
int parentID, 
int controlID, 
float posX, 
float posY, 
float width, 
float height, 
const CTextureInfo& texture);
    60   void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions) 
override;
    61   void Render() 
override;
    62   void UpdateVisibility(
const CGUIListItem *item = NULL) 
override;
    63   bool OnAction(
const CAction &action) 
override ;
    65   void AllocResources() 
override;
    66   void FreeResources(
bool immediately = 
false) 
override;
    67   void DynamicResourceAlloc(
bool bOnOff) 
override;
    68   bool IsDynamicallyAllocated()
 override { 
return m_bDynamicResourceAlloc; }
    69   void SetInvalid() 
override;
    70   bool CanFocus() 
const override;
    71   void UpdateInfo(
const CGUIListItem *item = NULL) 
override;
    74   virtual void SetFileName(
const std::string& strFileName, 
bool setConstant = 
false, 
const bool useCache = 
true);
    76   void SetWidth(
float width) 
override;
    77   void SetHeight(
float height) 
override;
    78   void SetPosition(
float posX, 
float posY) 
override;
    79   std::string GetDescription() 
const override;
    80   void SetCrossFade(
unsigned int time);
    82   const std::string& GetFileName() 
const;
    83   float GetTextureWidth() 
const;
    84   float GetTextureHeight() 
const;
    89   void DumpTextureUse() 
override;
    92   virtual void AllocateOnDemand();
    93   virtual void FreeTextures(
bool immediately = 
false);
    94   void FreeResourcesButNotAnims();
    95   unsigned char GetFadeLevel(
unsigned int time) 
const;
    96   bool ProcessFading(
CFadingTexture *texture, 
unsigned int frameTime, 
unsigned int currentTime);
   104   bool m_bDynamicResourceAlloc;
   111   std::vector<CFadingTexture *> m_fadingTextures;
   112   std::string m_currentTexture;
   113   std::string m_currentFallback;
   115   unsigned int m_crossFadeTime;
   116   unsigned int m_currentFadeTime;
   117   unsigned int m_lastRenderTime;
 
Definition: GUIListItem.h:29
Definition: GUIInfoLabel.h:31
Base class for controls. 
Definition: GUIControl.h:83
std::unique_ptr< CGUITexture > m_texture
texture to fade out 
Definition: GUIImage.h:44
CRect CalcRenderRegion() const override
calculate the render region in parentcontrol coordinates of this control Called during process to upd...
Definition: GUIImage.cpp:303
bool m_fading
whether we're fading out 
Definition: GUIImage.h:48
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
unsigned int m_fadeTime
time to fade out (ms) 
Definition: GUIImage.h:47
void UpdateDiffuseColor(const CGUIListItem *item)
Update the diffuse color based on the current item infos. 
Definition: GUIImage.cpp:63
Definition: GUITexture.h:28
Definition: GUITexture.h:51
Definition: GUITexture.h:73
Definition: GUIMessage.h:365
Definition: GUIImage.h:27
Definition: GUIImage.h:30