~3v1n0/unity/scale-window-cast-protection

702.3.1 by Michael Terry
add modelines and fix up some inconsistent tabbings
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
604.4.1 by Mirco Müller
inital commit, doesn't compile atm, still missing much
2
/*
3
 * Copyright (C) 2010 Canonical Ltd
4
 *
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.
8
 *
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.
13
 *
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/>.
16
 *
17
 * Authored by: Mirco Müller <mirco.mueller@canonical.com>
2547.2.1 by Marco Trevisan (Treviño)
QuicklistMenuItem: remove debug bits, factorize duplicated code, remove friendship, use smart pointers
18
 *              Marco Trevisan <marco.trevisan@canonical.com>
604.4.1 by Mirco Müller
inital commit, doesn't compile atm, still missing much
19
 */
20
21
#ifndef QUICKLISTMENUITEMSEPARATOR_H
22
#define QUICKLISTMENUITEMSEPARATOR_H
23
24
#include "QuicklistMenuItem.h"
25
1885.4.35 by Marco Trevisan (Treviño)
Quicklist: adding quicklists to unity namespace
26
namespace unity
27
{
28
604.4.1 by Mirco Müller
inital commit, doesn't compile atm, still missing much
29
class QuicklistMenuItemSeparator : public QuicklistMenuItem
30
{
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
31
public:
2547.2.11 by Marco Trevisan (Treviño)
QuicklistMenuItem: always use glib::Object<DbusmenuMenuitem>
32
  QuicklistMenuItemSeparator(glib::Object<DbusmenuMenuitem> const& item, NUX_FILE_LINE_PROTO);
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
33
2272.2.10 by Marco Trevisan (Treviño)
QuicklistMenuItem: add GetSelectable virtual method
34
  virtual bool GetSelectable();
35
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
36
protected:
37
  void Draw(nux::GraphicsEngine& gfxContext, bool forceDraw);
2547.2.1 by Marco Trevisan (Treviño)
QuicklistMenuItem: remove debug bits, factorize duplicated code, remove friendship, use smart pointers
38
  std::string GetName() const;
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
39
3680.1.37 by Marco Trevisan (Treviño)
QuicklistMenuItem: add support to scale factor when generating items textures
40
  virtual void SetScale(double);
41
  virtual void UpdateTexture(nux::CairoGraphics&, double width, double height);
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
42
43
private:
2547.2.1 by Marco Trevisan (Treviño)
QuicklistMenuItem: remove debug bits, factorize duplicated code, remove friendship, use smart pointers
44
  nux::Color _color;
1307 by Neil Jagdish Patel
Update formatting to match style (as close as possible)
45
  nux::Color _premultiplied_color;
604.4.1 by Mirco Müller
inital commit, doesn't compile atm, still missing much
46
};
47
1885.4.35 by Marco Trevisan (Treviño)
Quicklist: adding quicklists to unity namespace
48
}
604.4.1 by Mirco Müller
inital commit, doesn't compile atm, still missing much
49
#endif // QUICKLISTMENUITEMSEPARATOR_H