Debian Codegraph @

gtk/src/actionbar.hg

raw
1 /* Copyright (C) 2013 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/bin.h>
18 _DEFS(gtkmm,gtk)
19 _PINCLUDE(gtkmm/private/bin_p.h)
20
21 namespace Gtk
22 {
23
24 /** A full width bar for presenting contextual actions.
25 *
26 * ActionBar is designed to present contextual actions. It is
27 * expected to be displayed below the content and expand horizontally
28 * to fill the area.
29 *
30 * It allows placing children at the start or the end. In addition, it
31 * contains an internal centered box which is centered with respect to
32 * the full width of the box, even if the children at either side take
33 * up different amounts of space.
34 *
35 * @see Box
36 * @ingroup Widgets
37 * @newin{3,12}
38 */
39 class GTKMM_API ActionBar
40 : public Bin
41 {
42 _CLASS_GTKOBJECT(ActionBar, GtkActionBar, GTK_ACTION_BAR, Gtk::Bin, GtkBin, , , GTKMM_API)
43 public:
44
45 /** Creates a new ActionBar widget.
46 */
47 _CTOR_DEFAULT
48
49 _WRAP_METHOD(void pack_start(Gtk::Widget& child), gtk_action_bar_pack_start)
50 _WRAP_METHOD(void pack_end(Gtk::Widget& child), gtk_action_bar_pack_end)
51
52 // transfer none
53 _WRAP_METHOD(Widget* get_center_widget(), gtk_action_bar_get_center_widget)
54 _WRAP_METHOD(const Widget* get_center_widget() const, gtk_action_bar_get_center_widget, constversion)
55 _WRAP_METHOD(void set_center_widget(Widget& center_widget), gtk_action_bar_set_center_widget)
56
57 /** Unset the center widget.
58 *
59 * See set_center_widget().
60 */
61 void unset_center_widget();
62
63 // Gtk::ActionBar has no properties, signals nor vfuncs as of 3.12.
64 };
65
66 } // namespace Gtk