~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PanelStyle.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:
22
22
#define PANEL_STYLE_H
23
23
 
24
24
#include <Nux/Nux.h>
 
25
#include <NuxCore/Property.h>
25
26
 
26
27
#include <gtk/gtk.h>
27
28
 
34
35
{
35
36
  CLOSE,
36
37
  MINIMIZE,
37
 
  UNMAXIMIZE
 
38
  UNMAXIMIZE,
 
39
  MAXIMIZE
38
40
};
39
41
 
40
42
enum class WindowState
41
43
{
42
44
  NORMAL,
43
45
  PRELIGHT,
44
 
  PRESSED
 
46
  PRESSED,
 
47
  DISABLED
45
48
};
46
49
 
47
50
class Style
57
60
  nux::NBitmapData* GetBackground(int width, int height, float opacity);
58
61
 
59
62
  nux::BaseTexture* GetWindowButton(WindowButtonType type, WindowState state);
 
63
  nux::BaseTexture* GetFallbackWindowButton(WindowButtonType type, WindowState state);
60
64
 
61
65
  GdkPixbuf* GetHomeButton();
62
66
 
64
68
 
65
69
  bool IsAmbianceOrRadiance();
66
70
 
 
71
  nux::Property<int> panel_height;
 
72
 
67
73
private:
68
74
  void Refresh();
69
75
 
70
76
  static void OnGtkThemeChanged(GObject*    gobject,
71
77
                                GParamSpec* pspec,
72
78
                                gpointer    data);
73
 
 
74
 
  nux::BaseTexture* GetWindowButtonForTheme(WindowButtonType type,
75
 
                                            WindowState state);
76
79
private:
77
80
  GtkStyleContext*   _style_context;
78
81
  char*              _theme_name;