PageRenderTime 1237ms CodeModel.GetById 1233ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/xbmc/guilib/GUIBorderedImage.h

http://github.com/xbmc/xbmc
C Header | 35 lines | 21 code | 7 blank | 7 comment | 0 complexity | 8dd1e7d7f3d92e11fd718a1f8996ee5f MD5 | raw file
 1/*
 2 *  Copyright (C) 2005-2018 Team Kodi
 3 *  This file is part of Kodi - https://kodi.tv
 4 *
 5 *  SPDX-License-Identifier: GPL-2.0-or-later
 6 *  See LICENSES/README.md for more information.
 7 */
 8
 9#pragma once
10
11#include "GUIControl.h"
12#include "GUIImage.h"
13#include "TextureManager.h"
14
15class CGUIBorderedImage : public CGUIImage
16{
17public:
18  CGUIBorderedImage(int parentID, int controlID, float posX, float posY, float width, float height, const CTextureInfo& texture, const CTextureInfo& borderTexture, const CRect &borderSize);
19  CGUIBorderedImage(const CGUIBorderedImage &right);
20  ~CGUIBorderedImage(void) override;
21  CGUIBorderedImage *Clone() const override { return new CGUIBorderedImage(*this); };
22
23  void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override;
24  void Render() override;
25  void AllocResources() override;
26  void FreeResources(bool immediately = false) override;
27  void DynamicResourceAlloc(bool bOnOff) override;
28
29  CRect CalcRenderRegion() const override;
30
31protected:
32  CGUITexture m_borderImage;
33  CRect m_borderSize;
34};
35