Ardour  9.0-pre0-384-ga76afae0e9
cellrenderer.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_CELLRENDERER_H
4 #define _GTKMM_CELLRENDERER_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 
30 #include <gtkmm/object.h>
31 #include <gtkmm/widget.h>
32 #include <gtkmm/celleditable.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkCellRenderer GtkCellRenderer;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class CellRenderer_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
61 {
66  CELL_RENDERER_FOCUSED = 1 << 4
67 };
68 
71  { return static_cast<CellRendererState>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
72 
75  { return static_cast<CellRendererState>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
76 
79  { return static_cast<CellRendererState>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
80 
83  { return static_cast<CellRendererState>(~static_cast<unsigned>(flags)); }
84 
87  { return (lhs = static_cast<CellRendererState>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
88 
91  { return (lhs = static_cast<CellRendererState>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
92 
95  { return (lhs = static_cast<CellRendererState>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
96 
97 } // namespace Gtk
98 
99 
100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101 namespace Glib
102 {
103 
104 template <>
105 class Value<Gtk::CellRendererState> : public Glib::Value_Flags<Gtk::CellRendererState>
106 {
107 public:
108  static GType value_type() G_GNUC_CONST;
109 };
110 
111 } // namespace Glib
112 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
113 
114 
115 namespace Gtk
116 {
117 
123 {
127 };
128 
129 } // namespace Gtk
130 
131 
132 #ifndef DOXYGEN_SHOULD_SKIP_THIS
133 namespace Glib
134 {
135 
136 template <>
137 class Value<Gtk::CellRendererMode> : public Glib::Value_Enum<Gtk::CellRendererMode>
138 {
139 public:
140  static GType value_type() G_GNUC_CONST;
141 };
142 
143 } // namespace Glib
144 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
145 
146 
147 namespace Gtk
148 {
149 
150 
159 class CellRenderer : public Gtk::Object
160 {
161  public:
162 #ifndef DOXYGEN_SHOULD_SKIP_THIS
163  typedef CellRenderer CppObjectType;
164  typedef CellRenderer_Class CppClassType;
165  typedef GtkCellRenderer BaseObjectType;
166  typedef GtkCellRendererClass BaseClassType;
167 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
168 
169  virtual ~CellRenderer();
170 
171 #ifndef DOXYGEN_SHOULD_SKIP_THIS
172 
173 private:
174  friend class CellRenderer_Class;
175  static CppClassType cellrenderer_class_;
176 
177  // noncopyable
178  CellRenderer(const CellRenderer&);
179  CellRenderer& operator=(const CellRenderer&);
180 
181 protected:
182  explicit CellRenderer(const Glib::ConstructParams& construct_params);
183  explicit CellRenderer(GtkCellRenderer* castitem);
184 
185 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
186 
187 public:
188 #ifndef DOXYGEN_SHOULD_SKIP_THIS
189  static GType get_type() G_GNUC_CONST;
190 
191 
192  static GType get_base_type() G_GNUC_CONST;
193 #endif
194 
196  GtkCellRenderer* gobj() { return reinterpret_cast<GtkCellRenderer*>(gobject_); }
197 
199  const GtkCellRenderer* gobj() const { return reinterpret_cast<GtkCellRenderer*>(gobject_); }
200 
201 
202 public:
203  //C++ methods used to invoke GTK+ virtual functions:
204 
205 protected:
206  //GTK+ Virtual Functions (override these to change behaviour):
207 
208  //Default Signal Handlers::
210  virtual void on_editing_canceled();
211 
212 
213 private:
214 
215 public:
216 
217 
232  void get_size(Widget& widget, const Gdk::Rectangle& cell_area, int& x_offset, int& y_offset, int& width, int& height) const;
233 
246  void get_size(Widget& widget, int& x_offset, int& y_offset, int& width, int& height) const;
247 
248 
265  void render(const Glib::RefPtr<Gdk::Window>& window, Widget& widget, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& expose_area, CellRendererState flags);
266 
267 
281  bool activate(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags);
282 
283 
295  CellEditable* start_editing(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags = CellRendererState(0));
296 
297 
303  void set_fixed_size(int width, int height);
304 
310  void get_fixed_size(int& width, int& height) const;
311 
312 
318  void set_alignment(float xalign, float yalign);
319 
325  void get_alignment(float& xalign, float& yalign) const;
326 
327 
333  void set_padding(int xpad, int ypad);
334 
340  void get_padding(int& xpad, int& ypad) const;
341 
342 
347  void set_visible(bool visible = true);
348 
353  bool get_visible() const;
354 
359  void set_sensitive(bool sensitive = true);
360 
365  bool get_sensitive() const;
366 
367 
368 #ifndef GTKMM_DISABLE_DEPRECATED
369 
381 #endif // GTKMM_DISABLE_DEPRECATED
382 
383 
394  void stop_editing(bool canceled = false);
395 
400  virtual Glib::PropertyProxy_Base _property_renderable();
401 
402 
414  Glib::SignalProxy0< void > signal_editing_canceled();
415 
416 
417  //We use no_default_handler for this, because we can not add a new vfunc to 2.5 without breaking ABI.
418  //TODO: Remove no_default_handler when we do an ABI-break-with-parallel-install.
419  //TODO: Remove the warning in the documentation when we have fixed the inheritance of CellRendererCombo.
420 
442  Glib::SignalProxy2< void,CellEditable*,const Glib::ustring& > signal_editing_started();
443 
444 
450  Glib::PropertyProxy< CellRendererMode > property_mode() ;
451 
457  Glib::PropertyProxy_ReadOnly< CellRendererMode > property_mode() const;
458 
464  Glib::PropertyProxy< bool > property_visible() ;
465 
471  Glib::PropertyProxy_ReadOnly< bool > property_visible() const;
472 
478  Glib::PropertyProxy< bool > property_sensitive() ;
479 
485  Glib::PropertyProxy_ReadOnly< bool > property_sensitive() const;
486 
492  Glib::PropertyProxy< float > property_xalign() ;
493 
499  Glib::PropertyProxy_ReadOnly< float > property_xalign() const;
500 
506  Glib::PropertyProxy< float > property_yalign() ;
507 
513  Glib::PropertyProxy_ReadOnly< float > property_yalign() const;
514 
520  Glib::PropertyProxy< unsigned int > property_xpad() ;
521 
527  Glib::PropertyProxy_ReadOnly< unsigned int > property_xpad() const;
528 
534  Glib::PropertyProxy< unsigned int > property_ypad() ;
535 
541  Glib::PropertyProxy_ReadOnly< unsigned int > property_ypad() const;
542 
548  Glib::PropertyProxy< int > property_width() ;
549 
555  Glib::PropertyProxy_ReadOnly< int > property_width() const;
556 
562  Glib::PropertyProxy< int > property_height() ;
563 
569  Glib::PropertyProxy_ReadOnly< int > property_height() const;
570 
576  Glib::PropertyProxy< bool > property_is_expander() ;
577 
583  Glib::PropertyProxy_ReadOnly< bool > property_is_expander() const;
584 
590  Glib::PropertyProxy< bool > property_is_expanded() ;
591 
597  Glib::PropertyProxy_ReadOnly< bool > property_is_expanded() const;
598 
604  Glib::PropertyProxy_WriteOnly< Glib::ustring > property_cell_background() ;
605 
606 
612  Glib::PropertyProxy< Gdk::Color > property_cell_background_gdk() ;
613 
619  Glib::PropertyProxy_ReadOnly< Gdk::Color > property_cell_background_gdk() const;
620 
626  Glib::PropertyProxy< bool > property_cell_background_set() ;
627 
633  Glib::PropertyProxy_ReadOnly< bool > property_cell_background_set() const;
634 
640  Glib::PropertyProxy_ReadOnly< bool > property_editing() const;
641 
642 
643 protected:
645 
662  virtual void get_size_vfunc(Widget& widget, const Gdk::Rectangle* cell_area, int* x_offset, int* y_offset, int* width, int* height) const;
663 
664 
665  virtual void render_vfunc(const Glib::RefPtr<Gdk::Drawable>& window, Widget& widget, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& expose_area, CellRendererState flags);
666 
667 
668  virtual bool activate_vfunc(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags);
669 
670 
671  virtual CellEditable* start_editing_vfunc(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags);
672 
673 
674 };
675 
676 } // namespace Gtk
677 
678 
679 namespace Glib
680 {
689  Gtk::CellRenderer* wrap(GtkCellRenderer* object, bool take_copy = false);
690 } //namespace Glib
691 
692 
693 #endif /* _GTKMM_CELLRENDERER_H */
694 
Glib::PropertyProxy< bool > property_sensitive()
const GtkCellRenderer * gobj() const
Provides access to the underlying C GtkObject.
Definition: cellrenderer.h:199
Glib::PropertyProxy< Gdk::Color > property_cell_background_gdk()
virtual void on_editing_canceled()
This is a default handler for the signal signal_editing_canceled().
void get_alignment(float &xalign, float &yalign) const
virtual bool activate_vfunc(GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
Glib::PropertyProxy_ReadOnly< bool > property_cell_background_set() const
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_cell_background()
Glib::PropertyProxy< bool > property_cell_background_set()
Glib::PropertyProxy< bool > property_is_expander()
Glib::PropertyProxy< unsigned int > property_ypad()
Glib::PropertyProxy< unsigned int > property_xpad()
void set_fixed_size(int width, int height)
void get_size(Widget &widget, const Gdk::Rectangle &cell_area, int &x_offset, int &y_offset, int &width, int &height) const
Glib::PropertyProxy< int > property_height()
Glib::PropertyProxy< CellRendererMode > property_mode()
Glib::PropertyProxy_ReadOnly< Gdk::Color > property_cell_background_gdk() const
Glib::PropertyProxy_ReadOnly< CellRendererMode > property_mode() const
void get_size(Widget &widget, int &x_offset, int &y_offset, int &width, int &height) const
void set_sensitive(bool sensitive=true)
Glib::SignalProxy0< void > signal_editing_canceled()
Glib::PropertyProxy< float > property_xalign()
void set_alignment(float xalign, float yalign)
Glib::PropertyProxy_ReadOnly< bool > property_is_expander() const
bool get_visible() const
void get_padding(int &xpad, int &ypad) const
Glib::SignalProxy2< void, CellEditable *, const Glib::ustring & > signal_editing_started()
Glib::PropertyProxy_ReadOnly< bool > property_sensitive() const
Gtk::CellRenderer * wrap(GtkCellRenderer *object, bool take_copy=false)
virtual void get_size_vfunc(Widget &widget, const Gdk::Rectangle *cell_area, int *x_offset, int *y_offset, int *width, int *height) const
void set_visible(bool visible=true)
Glib::PropertyProxy_ReadOnly< bool > property_visible() const
Glib::PropertyProxy< int > property_width()
Glib::PropertyProxy_ReadOnly< float > property_yalign() const
CellEditable * start_editing(GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags=CellRendererState(0))
bool activate(GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
virtual ~CellRenderer()
Glib::PropertyProxy_ReadOnly< unsigned int > property_ypad() const
Glib::PropertyProxy< bool > property_is_expanded()
void set_padding(int xpad, int ypad)
void stop_editing(bool canceled=false)
Glib::PropertyProxy_ReadOnly< int > property_height() const
Glib::PropertyProxy_ReadOnly< bool > property_editing() const
Glib::PropertyProxy< float > property_yalign()
virtual void render_vfunc(const Glib::RefPtr< Gdk::Drawable > &window, Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, CellRendererState flags)
virtual CellEditable * start_editing_vfunc(GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
GtkCellRenderer * gobj()
Provides access to the underlying C GtkObject.
Definition: cellrenderer.h:196
Glib::PropertyProxy_ReadOnly< bool > property_is_expanded() const
virtual Glib::PropertyProxy_Base _property_renderable()
Glib::PropertyProxy_ReadOnly< int > property_width() const
void render(const Glib::RefPtr< Gdk::Window > &window, Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, CellRendererState flags)
void get_fixed_size(int &width, int &height) const
Glib::PropertyProxy_ReadOnly< unsigned int > property_xpad() const
Glib::PropertyProxy< bool > property_visible()
bool get_sensitive() const
Glib::PropertyProxy_ReadOnly< float > property_xalign() const
CellRendererState & operator|=(CellRendererState &lhs, CellRendererState rhs)
Definition: cellrenderer.h:86
CellRendererState operator&(CellRendererState lhs, CellRendererState rhs)
Definition: cellrenderer.h:74
CellRendererState operator^(CellRendererState lhs, CellRendererState rhs)
Definition: cellrenderer.h:78
CellRendererState operator~(CellRendererState flags)
Definition: cellrenderer.h:82
CellRendererState
Definition: cellrenderer.h:61
CellRendererState & operator&=(CellRendererState &lhs, CellRendererState rhs)
Definition: cellrenderer.h:90
CellRendererState operator|(CellRendererState lhs, CellRendererState rhs)
Definition: cellrenderer.h:70
CellRendererState & operator^=(CellRendererState &lhs, CellRendererState rhs)
Definition: cellrenderer.h:94
CellRendererMode
Definition: cellrenderer.h:123
@ CELL_RENDERER_INSENSITIVE
Definition: cellrenderer.h:64
@ CELL_RENDERER_PRELIT
Definition: cellrenderer.h:63
@ CELL_RENDERER_SELECTED
Definition: cellrenderer.h:62
@ CELL_RENDERER_FOCUSED
Definition: cellrenderer.h:66
@ CELL_RENDERER_SORTED
Definition: cellrenderer.h:65
@ CELL_RENDERER_MODE_ACTIVATABLE
Definition: cellrenderer.h:125
@ CELL_RENDERER_MODE_INERT
Definition: cellrenderer.h:124
@ CELL_RENDERER_MODE_EDITABLE
Definition: cellrenderer.h:126
Definition: ardour_ui.h:187
Definition: lobject.h:100
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1