~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/AbstractIconRenderer.h

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <Nux/Nux.h>
24
24
#include <boost/shared_ptr.hpp>
25
25
 
26
 
#include "AbstractLauncherIcon.h"
 
26
#include "IconTextureSource.h"
27
27
 
28
28
namespace unity
29
29
{
41
41
public:
42
42
  RenderArg()
43
43
    : icon(0)
 
44
    , colorify(nux::color::White)
44
45
    , x_rotation(0)
45
46
    , y_rotation(0)
46
47
    , z_rotation(0)
62
63
    , keyboard_nav_hl(false)
63
64
    , draw_shortcut(false)
64
65
    , system_item(false)
 
66
    , colorify_background(false)
65
67
    , window_indicators(0)
66
68
    , shortcut_label(0)
67
69
  {
68
70
  }
69
71
 
70
 
  launcher::AbstractLauncherIcon* icon;
 
72
  IconTextureSource* icon;
71
73
  nux::Point3   render_center;
72
74
  nux::Point3   logical_center;
 
75
  nux::Color    colorify;
73
76
  float         x_rotation;
74
77
  float         y_rotation;
75
78
  float         z_rotation;
91
94
  bool          keyboard_nav_hl;
92
95
  bool          draw_shortcut;
93
96
  bool          system_item;
 
97
  bool          colorify_background;
94
98
  int           window_indicators;
95
99
  char          shortcut_label;
96
100
};
103
107
  virtual ~AbstractIconRenderer() {}
104
108
 
105
109
  nux::Property<PipRenderStyle> pip_style;
 
110
  nux::Property<int> monitor;
106
111
 
107
112
  // RenderArgs not const in case processor needs to modify positions to do a perspective correct.
108
113
  virtual void PreprocessIcons(std::list<RenderArg>& args, nux::Geometry const& target_window) = 0;