Ardour  8.7-15-gadf511264b
border.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 #ifndef _GTKMM_BORDER_H
3 #define _GTKMM_BORDER_H
4 
5 /* border.h
6  *
7  * Copyright (C) 2009 The gtkmm Development Team
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free
21  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23 
24 #include <glibmm/value.h>
25 #include <gtk/gtk.h> /* For GtkBorder */
26 
27 namespace Gtk
28 {
29 
30 typedef GtkBorder Border;
31 
32 } /* namespace Gtk */
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 
37 namespace Glib
38 {
39 
40 template <>
41 class Value<Gtk::Border> : public ValueBase_Boxed
42 {
43 public:
44  typedef Gtk::Border CppType;
45 
46  static GType value_type() { return gtk_border_get_type(); }
47 
48  void set(const Gtk::Border& data) { set_boxed(&data); }
49  Gtk::Border get() const
50  {
51  GtkBorder* cobj = static_cast<GtkBorder*>(get_boxed());
52  Gtk::Border obj = {0, 0, 0, 0};
53  return ((cobj) ? (static_cast<Gtk::Border>(*cobj)) : (obj));
54  }
55 };
56 
57 } /* namespace Glib */
58 
59 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
60 
61 #endif /* _GTKMM_BORDER_H */
62 
GType gtk_border_get_type(void) G_GNUC_CONST
Definition: ardour_ui.h:188
GtkBorder Border
Definition: border.h:30
Definition: lobject.h:100