#pragma once
/*
- * Copyright (C) 2005-2012 Team XBMC
- * http://www.xbmc.org
+ * Copyright (C) 2005-2013 Team XBMC
+ * http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "Geometry.h" // for CPoint, CRect
#include "utils/StdString.h"
#include "boost/shared_ptr.hpp"
+#include "interfaces/info/InfoBool.h"
enum ANIMATION_TYPE
{
CAnimEffect(const CAnimEffect &src);
virtual ~CAnimEffect();
- const CAnimEffect &operator=(const CAnimEffect &src);
+ CAnimEffect& operator=(const CAnimEffect &src);
void Calculate(unsigned int time, const CPoint ¢er);
void ApplyState(ANIMATION_STATE state, const CPoint ¢er);
virtual ~CAnimation();
- const CAnimation &operator=(const CAnimation &src);
+ CAnimation& operator=(const CAnimation &src);
static CAnimation CreateFader(float start, float end, unsigned int delay, unsigned int length, ANIMATION_TYPE type = ANIM_TYPE_NONE);
private:
void Calculate(const CPoint &point);
void AddEffect(const CStdString &type, const TiXmlElement *node, const CRect &rect);
- void AddEffect(CAnimEffect *effect);
enum ANIM_REPEAT { ANIM_REPEAT_NONE = 0, ANIM_REPEAT_PULSE, ANIM_REPEAT_LOOP };
// type of animation
ANIMATION_TYPE m_type;
bool m_reversible;
- unsigned int m_condition;
+ INFO::InfoPtr m_condition;
// conditional anims can repeat
ANIM_REPEAT m_repeatAnim;
public:
CScroller(unsigned int duration = 200, boost::shared_ptr<Tweener> tweener = boost::shared_ptr<Tweener>());
CScroller(const CScroller& right);
- const CScroller &operator=(const CScroller &src);
+ CScroller& operator=(const CScroller &src);
~CScroller();
/**