aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIRenderingControl.h
diff options
context:
space:
mode:
authorelupus <elupus@svn>2010-03-02 02:43:19 +0000
committerelupus <elupus@svn>2010-03-02 02:43:19 +0000
commit074db86a1a04e6ba3748aa6bdf2d14cb101e2a34 (patch)
tree3b461ba3c3a12ffa4eabb59eadf144a6dc113cbe /guilib/GUIRenderingControl.h
parent59e41cd2415b47b43dad0229103d5df886ba4e25 (diff)
merged: addons-fw branch
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28277 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIRenderingControl.h')
-rw-r--r--guilib/GUIRenderingControl.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/guilib/GUIRenderingControl.h b/guilib/GUIRenderingControl.h
new file mode 100644
index 0000000000..639f36182a
--- /dev/null
+++ b/guilib/GUIRenderingControl.h
@@ -0,0 +1,43 @@
+#pragma once
+/*
+ * Copyright (C) 2005-2010 Team XBMC
+ * http://www.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
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This Program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with XBMC; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+#include "GUIControl.h"
+#include "IAddon.h"
+
+class CGUIRenderingControl : public CGUIControl
+{
+public:
+ CGUIRenderingControl(int parentID, int controlID, float posX, float posY, float width, float height);
+ CGUIRenderingControl(const CGUIRenderingControl &from);
+ virtual CGUIRenderingControl *Clone() const { return new CGUIRenderingControl(*this); }; //TODO check for naughties
+
+ virtual void Render();
+ virtual void UpdateVisibility(const CGUIListItem *item = NULL);
+ virtual void FreeResources();
+ virtual bool CanFocus() const { return false; }
+ virtual bool CanFocusFromPoint(const CPoint &point) const;
+ void LoadAddon(const ADDON::AddonPtr &addon);
+
+protected:
+ CCriticalSection m_rendering;
+ ADDON::VizPtr m_addon;
+};