1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
3
* Copyright (C) 2011 Canonical Ltd
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 3 as
7
* published by the Free Software Foundation.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Authored by: Jason Smith <jason.smith@canonical.com>
21
#ifndef ICONTEXTURESOURCE_H
22
#define ICONTEXTURESOURCE_H
25
#include <NuxCore/Property.h>
26
#include <NuxCore/Math/MathInc.h>
33
class IconTextureSource : public nux::InitiallyUnownedObject
35
NUX_DECLARE_OBJECT_TYPE(IconTextureSource, nux::InitiallyUnownedObject);
37
typedef nux::ObjectPtr<IconTextureSource> Ptr;
50
std::vector<nux::Vector4> & GetTransform(TransformIndex index, int monitor);
52
virtual nux::Color BackgroundColor() = 0;
54
virtual nux::Color GlowColor() = 0;
56
virtual nux::BaseTexture* TextureForSize(int size) = 0;
58
virtual nux::BaseTexture* Emblem() = 0;
61
std::vector<std::map<TransformIndex, std::vector<nux::Vector4> > > transform_map;
67
#endif // LAUNCHERICON_H