Ardour  9.0-pre0-582-g084a23a80d
toolpalette.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TOOLPALETTE_H
4 #define _GTKMM_TOOLPALETTE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* Copyright (C) 2009 The gtkmm Development Team
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free
24  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25  */
26 
27 #include <gtkmm/container.h>
28 #include <gtkmm/toolitem.h>
29 #include <gtkmm/orientable.h>
30 #include <gtkmm/adjustment.h>
31 #include <gtkmm/toolitemgroup.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkToolPalette GtkToolPalette;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class ToolPalette_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
60 {
63 };
64 
67  { return static_cast<ToolPaletteDragTargets>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
68 
71  { return static_cast<ToolPaletteDragTargets>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
72 
75  { return static_cast<ToolPaletteDragTargets>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
76 
79  { return static_cast<ToolPaletteDragTargets>(~static_cast<unsigned>(flags)); }
80 
83  { return (lhs = static_cast<ToolPaletteDragTargets>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
84 
87  { return (lhs = static_cast<ToolPaletteDragTargets>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
88 
91  { return (lhs = static_cast<ToolPaletteDragTargets>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
92 
93 } // namespace Gtk
94 
95 
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS
97 namespace Glib
98 {
99 
100 template <>
101 class Value<Gtk::ToolPaletteDragTargets> : public Glib::Value_Flags<Gtk::ToolPaletteDragTargets>
102 {
103 public:
104  static GType value_type() G_GNUC_CONST;
105 };
106 
107 } // namespace Glib
108 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
109 
110 
111 namespace Gtk
112 {
113 
114 
132 : public Container,
133  public Orientable
134 {
135  public:
136 #ifndef DOXYGEN_SHOULD_SKIP_THIS
137  typedef ToolPalette CppObjectType;
138  typedef ToolPalette_Class CppClassType;
139  typedef GtkToolPalette BaseObjectType;
140  typedef GtkToolPaletteClass BaseClassType;
141 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
142 
143  virtual ~ToolPalette();
144 
145 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146 
147 private:
148  friend class ToolPalette_Class;
149  static CppClassType toolpalette_class_;
150 
151  // noncopyable
152  ToolPalette(const ToolPalette&);
153  ToolPalette& operator=(const ToolPalette&);
154 
155 protected:
156  explicit ToolPalette(const Glib::ConstructParams& construct_params);
157  explicit ToolPalette(GtkToolPalette* castitem);
158 
159 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
160 
161 public:
162 #ifndef DOXYGEN_SHOULD_SKIP_THIS
163  static GType get_type() G_GNUC_CONST;
164 
165 
166  static GType get_base_type() G_GNUC_CONST;
167 #endif
168 
170  GtkToolPalette* gobj() { return reinterpret_cast<GtkToolPalette*>(gobject_); }
171 
173  const GtkToolPalette* gobj() const { return reinterpret_cast<GtkToolPalette*>(gobject_); }
174 
175 
176 public:
177  //C++ methods used to invoke GTK+ virtual functions:
178 
179 protected:
180  //GTK+ Virtual Functions (override these to change behaviour):
181 
182  //Default Signal Handlers::
183 
184 
185 private:
186 
187 
188 public:
190 
191 
200 
207  void set_exclusive(ToolItemGroup& group, bool exclusive);
208 
214  void set_expand(ToolItemGroup& group, bool expand = true);
215 
216 
224 
231  bool get_exclusive(ToolItemGroup& group) const;
232 
239  bool get_expand(ToolItemGroup& group) const;
240 
241 
247  void set_icon_size(IconSize icon_size);
248 
253 
258  void set_style(ToolbarStyle style);
259 
263  void unset_style();
264 
265 
272 
278 
279 
287  ToolItem* get_drop_item(int x, int y);
288 
296  const ToolItem* get_drop_item(int x, int y) const;
297 
298 //This conversion is needed because of https://bugzilla.gnome.org/show_bug.cgi?id=567729#c37
299 
300 
309 
317  const ToolItemGroup* get_drop_group(int x, int y) const;
318 
319 
327 
335 
336 
346 
359 
360 
366 
371  const Adjustment* get_hadjustment() const;
372 
378 
383  const Adjustment* get_vadjustment() const;
384 
385 
391 
397 
398  //Ignore the set_scroll_adjustment signal. It's in many widgets and seems internal.
399  //_WRAP_SIGNAL(void set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment), "set-scroll-adjustments")
400 
401 
407  Glib::PropertyProxy< IconSize > property_icon_size() ;
408 
414  Glib::PropertyProxy_ReadOnly< IconSize > property_icon_size() const;
415 
421  Glib::PropertyProxy< bool > property_icon_size_set() ;
422 
428  Glib::PropertyProxy_ReadOnly< bool > property_icon_size_set() const;
429 
435  Glib::PropertyProxy< ToolbarStyle > property_toolbar_style() ;
436 
442  Glib::PropertyProxy_ReadOnly< ToolbarStyle > property_toolbar_style() const;
443 
444 
445 };
446 
447 } // namespace Gtk
448 
449 
450 namespace Glib
451 {
460  Gtk::ToolPalette* wrap(GtkToolPalette* object, bool take_copy = false);
461 } //namespace Glib
462 
463 
464 #endif /* _GTKMM_TOOLPALETTE_H */
465 
IconSize get_icon_size() const
static TargetEntry get_drag_target_group()
bool get_expand(ToolItemGroup &group) const
void set_exclusive(ToolItemGroup &group, bool exclusive)
Glib::PropertyProxy< IconSize > property_icon_size()
Glib::PropertyProxy< bool > property_icon_size_set()
const ToolItemGroup * get_drop_group(int x, int y) const
void set_drag_source(ToolPaletteDragTargets targets=TOOL_PALETTE_DRAG_ITEMS)
ToolItemGroup * get_drop_group(int x, int y)
Glib::PropertyProxy_ReadOnly< IconSize > property_icon_size() const
void set_style(ToolbarStyle style)
Adjustment * get_vadjustment()
const GtkToolPalette * gobj() const
Provides access to the underlying C GtkObject.
Definition: toolpalette.h:173
virtual ~ToolPalette()
void set_group_position(ToolItemGroup &group, int position)
const ToolItem * get_drop_item(int x, int y) const
const Adjustment * get_vadjustment() const
ToolItem * get_drag_item(const SelectionData &selection)
void unset_icon_size()
GtkToolPalette * gobj()
Provides access to the underlying C GtkObject.
Definition: toolpalette.h:170
void add_drag_dest(Gtk::Widget &widget, DestDefaults flags=DEST_DEFAULT_ALL, ToolPaletteDragTargets targets=TOOL_PALETTE_DRAG_ITEMS, Gdk::DragAction actions=Gdk::ACTION_COPY)
Gtk::ToolPalette * wrap(GtkToolPalette *object, bool take_copy=false)
bool get_exclusive(ToolItemGroup &group) const
void set_icon_size(IconSize icon_size)
Glib::PropertyProxy< ToolbarStyle > property_toolbar_style()
Glib::PropertyProxy_ReadOnly< ToolbarStyle > property_toolbar_style() const
Adjustment * get_hadjustment()
Glib::PropertyProxy_ReadOnly< bool > property_icon_size_set() const
const Adjustment * get_hadjustment() const
ToolItem * get_drop_item(int x, int y)
static TargetEntry get_drag_target_item()
void set_expand(ToolItemGroup &group, bool expand=true)
int get_group_position(ToolItemGroup &group) const
const ToolItem * get_drag_item(const SelectionData &selection) const
ToolbarStyle get_style() const
DragAction
Definition: dragcontext.h:68
@ ACTION_COPY
Definition: dragcontext.h:70
ToolPaletteDragTargets
Definition: toolpalette.h:60
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 & 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
@ TOOL_PALETTE_DRAG_GROUPS
Definition: toolpalette.h:62
@ TOOL_PALETTE_DRAG_ITEMS
Definition: toolpalette.h:61
Definition: ardour_ui.h:188
link region and track selection
Definition: lobject.h:100