~sethj/ubuntu/wily/unity/fix-for-1445595

« back to all changes in this revision

Viewing changes to shutdown/SessionView.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-02-11 22:41:12 UTC
  • mto: This revision was merged to the branch mainline in revision 3200.
  • Revision ID: mail@3v1n0.net-20130211224112-k1nxtougs7xgdjj5
ShutdownView: first draft implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
/*
 
3
* Copyright (C) 2013 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: Marco Trevisan (Treviño) <marco@ubuntu.com>
 
18
*/
 
19
 
 
20
#ifndef UNITYSHELL_SESSION_VIEW_H
 
21
#define UNITYSHELL_SESSION_VIEW_H
 
22
 
 
23
#include <Nux/Nux.h>
 
24
#include <Nux/View.h>
 
25
 
 
26
#include "unity-shared/UnityWindowView.h"
 
27
 
 
28
namespace unity
 
29
{
 
30
namespace session
 
31
{
 
32
 
 
33
class View : public ui::UnityWindowView
 
34
{
 
35
  NUX_DECLARE_OBJECT_TYPE(View, ui::UnityWindowView);
 
36
public:
 
37
  typedef nux::ObjectPtr<View> Ptr;
 
38
 
 
39
  View(Manager::Ptr const& manager);
 
40
 
 
41
protected:
 
42
  void DrawOverlay(nux::GraphicsEngine& GfxContext, bool force_draw, nux::Geometry clip);
 
43
  nux::Geometry GetBackgroundGeometry();
 
44
 
 
45
  // Introspectable methods
 
46
  std::string GetName() const;
 
47
 
 
48
private:
 
49
  Manager::Ptr manager_;
 
50
};
 
51
 
 
52
} // namespace session
 
53
 
 
54
} // namespace unity
 
55
 
 
56
#endif // UNITYSHELL_SESSION_VIEW_H
 
57