Ardour  9.0-pre0-427-gd2a3450e2f
style.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_STYLE_H
4 #define _GTKMM_STYLE_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /* $Id: style.hg,v 1.11 2006/11/23 14:47:48 murrayc Exp $ */
13 
14 /* Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 // This is for including the config header before any code (such as
32 // the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
33 
34 
35 #include <pangomm/fontdescription.h>
36 #include <pangomm/layout.h>
37 
38 #include <gdkmm/gc.h>
39 #include <gdkmm/pixmap.h>
40 #include <gdkmm/types.h>
41 #include <gdkmm/window.h>
42 
43 #include <gtkmm/object.h>
44 #include <gtkmm/enums.h>
45 #include <gtkmm/iconsource.h>
46 #include <gtkmm/iconset.h>
47 #include <gtkmmconfig.h>
48 
49 
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 typedef struct _GtkStyle GtkStyle;
52 typedef struct _GtkStyleClass GtkStyleClass;
53 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
54 
55 
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 namespace Gtk
58 { class Style_Class; } // namespace Gtk
59 #endif //DOXYGEN_SHOULD_SKIP_THIS
60 
61 namespace Gtk
62 {
63 
64 class Widget;
65 class RcStyle;
66 
67 
68 class Style : public Glib::Object
69 {
70 
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 
73 public:
74  typedef Style CppObjectType;
75  typedef Style_Class CppClassType;
76  typedef GtkStyle BaseObjectType;
77  typedef GtkStyleClass BaseClassType;
78 
79 private: friend class Style_Class;
80  static CppClassType style_class_;
81 
82 private:
83  // noncopyable
84  Style(const Style&);
85  Style& operator=(const Style&);
86 
87 protected:
88  explicit Style(const Glib::ConstructParams& construct_params);
89  explicit Style(GtkStyle* castitem);
90 
91 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
92 
93 public:
94  virtual ~Style();
95 
98  static GType get_type() G_GNUC_CONST;
99 
100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101 
102 
103  static GType get_base_type() G_GNUC_CONST;
104 #endif
105 
107  GtkStyle* gobj() { return reinterpret_cast<GtkStyle*>(gobject_); }
108 
110  const GtkStyle* gobj() const { return reinterpret_cast<GtkStyle*>(gobject_); }
111 
114 
115 private:
116 
117 
118 protected:
119  Style();
120 
121 public:
122 
123  static Glib::RefPtr<Style> create();
124 
125 
126  void set_fg(Gtk::StateType state, const Gdk::Color& color);
128 
129  void set_bg(Gtk::StateType state, const Gdk::Color& color);
131 
134 
137 
138  void set_mid(Gtk::StateType state, const Gdk::Color& color);
140 
143 
146 
149 
150 
151  void set_black(const Gdk::Color& value);
153  void set_white(const Gdk::Color& value);
155 
156  void set_font(const Pango::FontDescription& font_desc);
157 
158  // These are only available after being attached to a window.
159  Pango::FontDescription get_font() const;
160 
161  void set_xthickness(int xthickness);
162  int get_xthickness() const;
163 
164  void set_ythickness(int ythickness);
165  int get_ythickness() const;
166 
167  Glib::RefPtr<Gdk::GC> get_fg_gc(Gtk::StateType state_type);
168  Glib::RefPtr<const Gdk::GC> get_fg_gc(Gtk::StateType state_type) const;
169 
170  Glib::RefPtr<Gdk::GC> get_bg_gc(Gtk::StateType state_type);
171  Glib::RefPtr<const Gdk::GC> get_bg_gc(Gtk::StateType state_type) const;
172 
173  Glib::RefPtr<Gdk::GC> get_light_gc(Gtk::StateType state_type);
174  Glib::RefPtr<const Gdk::GC> get_light_gc(Gtk::StateType state_type) const;
175 
176  Glib::RefPtr<Gdk::GC> get_dark_gc(Gtk::StateType state_type);
177  Glib::RefPtr<const Gdk::GC> get_dark_gc(Gtk::StateType state_type) const;
178 
179  Glib::RefPtr<Gdk::GC> get_mid_gc ( Gtk::StateType state_type);
180  Glib::RefPtr<const Gdk::GC> get_mid_gc ( Gtk::StateType state_type) const;
181 
182  Glib::RefPtr<Gdk::GC> get_text_gc(Gtk::StateType state_type);
183  Glib::RefPtr<const Gdk::GC> get_text_gc(Gtk::StateType state_type) const;
184 
185  Glib::RefPtr<Gdk::GC> get_base_gc(Gtk::StateType state_type);
186  Glib::RefPtr<const Gdk::GC> get_base_gc(Gtk::StateType state_type) const;
187 
188  Glib::RefPtr<Gdk::GC> get_black_gc();
189  Glib::RefPtr<const Gdk::GC> get_black_gc() const;
190  Glib::RefPtr<Gdk::GC> get_white_gc();
191  Glib::RefPtr<const Gdk::GC> get_white_gc() const;
192 
193  #ifndef GTKMM_DISABLE_DEPRECATED
194 
195  /* @deprecated use get_bg() instead.
196  */
198 
199  /*@deprecated use get_bg() instead.
200  */
201  Glib::RefPtr<Gdk::Pixmap> get_background_pixmap(Gtk::StateType state_type);
202 
205  void set_bg_pixmap(Gtk::StateType state_type, const Glib::RefPtr<Gdk::Pixmap>& pixmap);
206  #endif // GTKMM_DISABLE_DEPRECATED
207 
208 
209  void set_bg_pixmap(Gtk::StateType state_type, const Glib::RefPtr<const Gdk::Pixmap>& pixmap);
210 
211  Glib::RefPtr<Gdk::Pixmap> get_bg_pixmap(Gtk::StateType state_type);
212  Glib::RefPtr<const Gdk::Pixmap> get_bg_pixmap(Gtk::StateType state_type) const;
213 
214 
232  void paint_arrow(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, ArrowType arrow_type, bool fill, int x, int y, int width, int height) const;
233 
234 
249  void paint_box(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
250 
251 
270  void paint_box_gap(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const;
271 
272 
288  void paint_check(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
289 
290 
306  void paint_diamond(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
307 
308 
324  void paint_extension(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side) const;
325 
326 
341  void paint_flat_box(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
342 
343 
358  void paint_focus(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
359 
360 
376  void paint_handle(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation) const;
377 
378 
392  void paint_hline(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x1, int x2, int y) const;
393 
394 
410  void paint_option(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
411 
413  const Glib::RefPtr<Gdk::Window>& window,
414  Gtk::StateType state_type,
415  ShadowType shadow_type,
416  const Gdk::Rectangle& area,
417  Widget& widget,
418  const Glib::ustring& detail,
419  const Glib::ArrayHandle<Gdk::Point>& points,
420  bool fill) const;
421 
422 
438  void paint_shadow(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
439 
440 
460  void paint_shadow_gap(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const;
461 
462 
479  void paint_slider(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation) const;
480 
481 
497  void paint_tab(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const;
498 
499 
513  void paint_vline(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int y1, int y2, int x) const;
514 
515 
538  void paint_expander(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, ExpanderStyle expander_style) const;
539 
540 
555  void paint_layout(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, const Glib::RefPtr<Pango::Layout>& layout) const;
556 
557 
573  void paint_resize_grip(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, Gdk::WindowEdge edge, int x, int y, int width, int height) const;
574 
575 
576 #ifndef GTKMM_DISABLE_DEPRECATED
577 
584  Glib::RefPtr<Style> copy();
585 #endif // GTKMM_DISABLE_DEPRECATED
586 
587 
592  Glib::RefPtr<Style> copy() const;
593 
594 
611  Glib::RefPtr<Style> attach(const Glib::RefPtr<Gdk::Window>& window);
612 
616  void detach();
617 
618 
625  void set_background(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type);
626 
627 
630  void apply_default_background(const Glib::RefPtr<Gdk::Window>& window, bool set_bg, Gtk::StateType state_type, const Gdk::Rectangle& area, int x, int y, int width, int height);
631 
632 
642 
643 
654  bool lookup_color(const Glib::ustring& color_name, Gdk::Color& color) const;
655 
656 
672  Glib::RefPtr<Gdk::Pixbuf> render_icon(const IconSource& source, Gtk::TextDirection direction, Gtk::StateType state, Gtk::IconSize size, Gtk::Widget& widget, const Glib::ustring& detail);
673 
674 
683  void get_style_property_value(GType widget_type, const Glib::ustring& property_name, Glib::ValueBase& value);
684 
692  template <class PropertyType>
693  void get_style_property(GType widget_type, const Glib::ustring& property_name, PropertyType& value) const;
694 
695 
696 protected:
697  virtual void realize_vfunc();
698 
699  virtual void unrealize_vfunc();
700 
701 
702  virtual void copy_vfunc(const Glib::RefPtr<Style>& src);
703 
704 
705  virtual Glib::RefPtr<Style> clone_vfunc();
706 
707 
708  virtual void init_from_rc_vfunc(const Glib::RefPtr<RcStyle>& rc_style);
709 
710 
711  virtual void set_background_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type);
712 
713 
714  virtual Glib::RefPtr<Gdk::Pixbuf> render_icon_vfunc(const IconSource& source, TextDirection direction, Gtk::StateType state, IconSize size, Widget* widget, const Glib::ustring& detail);
715 
716  virtual void draw_hline_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x1, int x2, int y);
717 
718  virtual void draw_vline_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int y1, int y2, int x);
719 
720  virtual void draw_shadow_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
721 
722  virtual void draw_polygon_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, GdkPoint* point, int npoints, bool fill);
723 
724  virtual void draw_arrow_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, Gtk::ArrowType arrow_type, bool fill, int x, int y, int width, int height);
725 
726  virtual void draw_diamond_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
727 
728  virtual void draw_string_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, const Glib::ustring& string);
729 
730  virtual void draw_box_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
731 
732  virtual void draw_flat_box_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
733 
734  virtual void draw_check_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
735 
736  virtual void draw_option_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
737 
738  virtual void draw_tab_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
739 
740  virtual void draw_shadow_gap_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width);
741 
742  virtual void draw_box_gap_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width);
743 
744  virtual void draw_extension_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side);
745 
746  virtual void draw_focus_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height);
747 
748  virtual void draw_slider_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation);
749 
750  virtual void draw_handle_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation);
751 
752  virtual void draw_expander_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, ExpanderStyle expander_style);
753 
754 
755  virtual void draw_layout_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, const Glib::RefPtr<Pango::Layout>& layout);
756 
757  virtual void draw_resize_grip_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, Gdk::WindowEdge edge, int x, int y, int width, int height);
758 
759 
766  Glib::SignalProxy0< void > signal_realize();
767 
768 
775  Glib::SignalProxy0< void > signal_unrealize();
776 
777 
778 public:
779 
780 public:
781  //C++ methods used to invoke GTK+ virtual functions:
782 
783 protected:
784  //GTK+ Virtual Functions (override these to change behaviour):
785 
786  //Default Signal Handlers::
788  virtual void on_realize();
790  virtual void on_unrealize();
791 
792 
793 };
794 
795 
796 template <class PropertyType> inline
797 void Style::get_style_property(GType widget_type, const Glib::ustring& property_name, PropertyType& value) const
798 {
799  Glib::Value<PropertyType> property_value;
800  property_value.init(Glib::Value<PropertyType>::value_type());
801 
802  //We cast away the const.
803  //TODO: Either this get_style_property() should be non-const,
804  //or get_style_property_value() should be const.
805  //We can't really have both const and unconst versions of them because output parameters can't be const.
806  //Bug https://bugzilla.gnome.org/show_bug.cgi?id=594171
807  Style* unconst_this = const_cast<Style*>(this);
808  unconst_this->get_style_property_value(widget_type, property_name, property_value);
809 
810  value = property_value.get();
811 }
812 
813 } // namespace Gtk
814 
815 
816 namespace Glib
817 {
826  Glib::RefPtr<Gtk::Style> wrap(GtkStyle* object, bool take_copy = false);
827 }
828 
829 
830 #endif /* _GTKMM_STYLE_H */
831 
Gdk::Color get_white() const
virtual void set_background_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type)
Glib::RefPtr< const Gdk::GC > get_bg_gc(Gtk::StateType state_type) const
Gdk::Color get_mid(Gtk::StateType state) const
void paint_polygon(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, const Glib::ArrayHandle< Gdk::Point > &points, bool fill) const
void paint_option(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
void paint_extension(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side) const
virtual void init_from_rc_vfunc(const Glib::RefPtr< RcStyle > &rc_style)
Gdk::Color get_background(Gtk::StateType state_type) const
Glib::RefPtr< Gdk::Pixmap > get_background_pixmap(Gtk::StateType state_type)
void set_fg(Gtk::StateType state, const Gdk::Color &color)
Gdk::Color get_black() const
virtual void realize_vfunc()
virtual void draw_diamond_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
Gdk::Color get_light(Gtk::StateType state) const
void set_base(Gtk::StateType state, const Gdk::Color &color)
Glib::RefPtr< const Gdk::GC > get_black_gc() const
Glib::RefPtr< const Gdk::GC > get_fg_gc(Gtk::StateType state_type) const
Glib::RefPtr< Style > copy() const
static Glib::RefPtr< Style > create()
Glib::RefPtr< Gdk::GC > get_dark_gc(Gtk::StateType state_type)
virtual void draw_tab_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
Glib::RefPtr< Gdk::GC > get_base_gc(Gtk::StateType state_type)
void set_mid(Gtk::StateType state, const Gdk::Color &color)
void paint_diamond(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
Glib::RefPtr< Gdk::GC > get_bg_gc(Gtk::StateType state_type)
Glib::RefPtr< const Gdk::GC > get_mid_gc(Gtk::StateType state_type) const
void set_text(Gtk::StateType state, const Gdk::Color &color)
Glib::RefPtr< Gdk::GC > get_text_gc(Gtk::StateType state_type)
Glib::RefPtr< Gdk::Pixbuf > render_icon(const IconSource &source, Gtk::TextDirection direction, Gtk::StateType state, Gtk::IconSize size, Gtk::Widget &widget, const Glib::ustring &detail)
Gdk::Color get_dark(Gtk::StateType state) const
virtual void draw_vline_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int y1, int y2, int x)
void paint_arrow(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, ArrowType arrow_type, bool fill, int x, int y, int width, int height) const
virtual void draw_string_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, const Glib::ustring &string)
void paint_shadow(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
void paint_expander(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, ExpanderStyle expander_style) const
void set_dark(Gtk::StateType state, const Gdk::Color &color)
Glib::RefPtr< Gtk::Style > wrap(GtkStyle *object, bool take_copy=false)
virtual void on_unrealize()
This is a default handler for the signal signal_unrealize().
IconSet lookup_icon_set(const Gtk::StockID &stock_id)
void set_light(Gtk::StateType state, const Gdk::Color &color)
void paint_layout(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, const Glib::RefPtr< Pango::Layout > &layout) const
Pango::FontDescription get_font() const
virtual void draw_slider_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation)
void set_ythickness(int ythickness)
Gdk::Color get_fg(Gtk::StateType state) const
virtual ~Style()
virtual void unrealize_vfunc()
Glib::RefPtr< const Gdk::GC > get_text_gc(Gtk::StateType state_type) const
void paint_tab(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
GtkStyle * gobj()
Provides access to the underlying C GObject.
Definition: style.h:107
void set_font(const Pango::FontDescription &font_desc)
virtual void draw_arrow_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, Gtk::ArrowType arrow_type, bool fill, int x, int y, int width, int height)
Glib::RefPtr< const Gdk::GC > get_light_gc(Gtk::StateType state_type) const
Glib::RefPtr< Gdk::GC > get_white_gc()
bool lookup_color(const Glib::ustring &color_name, Gdk::Color &color) const
virtual void draw_check_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
virtual void draw_hline_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x1, int x2, int y)
virtual void draw_extension_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side)
virtual void draw_shadow_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
void set_bg_pixmap(Gtk::StateType state_type, const Glib::RefPtr< Gdk::Pixmap > &pixmap)
Glib::RefPtr< const Gdk::GC > get_dark_gc(Gtk::StateType state_type) const
Gdk::Color get_text_aa(Gtk::StateType state) const
void paint_resize_grip(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, Gdk::WindowEdge edge, int x, int y, int width, int height) const
virtual void draw_polygon_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, GdkPoint *point, int npoints, bool fill)
void set_bg(Gtk::StateType state, const Gdk::Color &color)
virtual void copy_vfunc(const Glib::RefPtr< Style > &src)
virtual void draw_option_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
virtual void draw_shadow_gap_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width)
virtual void draw_resize_grip_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, Gdk::WindowEdge edge, int x, int y, int width, int height)
Glib::RefPtr< Gdk::GC > get_light_gc(Gtk::StateType state_type)
Glib::RefPtr< Gdk::GC > get_mid_gc(Gtk::StateType state_type)
void paint_shadow_gap(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const
int get_xthickness() const
void paint_slider(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation) const
void paint_focus(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
virtual void draw_expander_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, ExpanderStyle expander_style)
virtual void on_realize()
This is a default handler for the signal signal_realize().
virtual void draw_box_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
void paint_box(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
Glib::RefPtr< const Gdk::Pixmap > get_bg_pixmap(Gtk::StateType state_type) const
void paint_hline(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x1, int x2, int y) const
Gdk::Color get_base(Gtk::StateType state) const
void set_xthickness(int xthickness)
virtual Glib::RefPtr< Gdk::Pixbuf > render_icon_vfunc(const IconSource &source, TextDirection direction, Gtk::StateType state, IconSize size, Widget *widget, const Glib::ustring &detail)
Gdk::Color get_bg(Gtk::StateType state) const
Glib::RefPtr< Gdk::GC > get_black_gc()
Glib::RefPtr< const Gdk::GC > get_white_gc() const
void get_style_property(GType widget_type, const Glib::ustring &property_name, PropertyType &value) const
Definition: style.h:797
virtual void draw_flat_box_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
void paint_box_gap(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const
Glib::RefPtr< Style > copy()
virtual void draw_handle_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation)
void get_style_property_value(GType widget_type, const Glib::ustring &property_name, Glib::ValueBase &value)
virtual void draw_focus_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
void detach()
void paint_handle(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation) const
void set_background(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type)
void apply_default_background(const Glib::RefPtr< Gdk::Window > &window, bool set_bg, Gtk::StateType state_type, const Gdk::Rectangle &area, int x, int y, int width, int height)
virtual Glib::RefPtr< Style > clone_vfunc()
Glib::RefPtr< const Gdk::GC > get_base_gc(Gtk::StateType state_type) const
void set_black(const Gdk::Color &value)
void paint_flat_box(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
virtual void draw_box_gap_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width)
Gdk::Color get_text(Gtk::StateType state) const
virtual void draw_layout_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, const Glib::RefPtr< Pango::Layout > &layout)
int get_ythickness() const
const GtkStyle * gobj() const
Provides access to the underlying C GObject.
Definition: style.h:110
void set_bg_pixmap(Gtk::StateType state_type, const Glib::RefPtr< const Gdk::Pixmap > &pixmap)
void paint_check(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
Glib::RefPtr< Style > attach(const Glib::RefPtr< Gdk::Window > &window)
void set_white(const Gdk::Color &value)
Glib::RefPtr< Gdk::GC > get_fg_gc(Gtk::StateType state_type)
Glib::SignalProxy0< void > signal_unrealize()
Glib::RefPtr< Gdk::Pixmap > get_bg_pixmap(Gtk::StateType state_type)
GtkStyle * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void paint_vline(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int y1, int y2, int x) const
static GType get_type() G_GNUC_CONST
void set_text_aa(Gtk::StateType state, const Gdk::Color &color)
Glib::SignalProxy0< void > signal_realize()
typedefG_BEGIN_DECLS struct _GdkPoint GdkPoint
Definition: gdktypes.h:68
GtkImagePixmapData pixmap
Definition: gtkimage.h:0
PBD::PropertyDescriptor< uint32_t > color
Definition: ardour_ui.h:188
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1