| 1 |
/* Copyright (C) 1998-2015 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 <vector> |
| 18 |
|
| 19 |
#include <gtkmm/widget.h> |
| 20 |
|
| 21 |
_DEFS(gtkmm,gtk) |
| 22 |
_PINCLUDE(glibmm/private/object_p.h) |
| 23 |
|
| 24 |
namespace Gtk |
| 25 |
{ |
| 26 |
|
| 27 |
class GTKMM_API Window; |
| 28 |
|
| 29 |
/** Limit the effect of grabs |
| 30 |
*/ |
| 31 |
class GTKMM_API WindowGroup : public Glib::Object |
| 32 |
{ |
| 33 |
_CLASS_GOBJECT(WindowGroup, GtkWindowGroup, GTK_WINDOW_GROUP, Glib::Object, GObject, , , GTKMM_API) |
| 34 |
|
| 35 |
protected: |
| 36 |
_CTOR_DEFAULT() |
| 37 |
|
| 38 |
public: |
| 39 |
_WRAP_CREATE() |
| 40 |
|
| 41 |
_WRAP_METHOD(void add_window(Window& window), gtk_window_group_add_window) |
| 42 |
_WRAP_METHOD(void remove_window(Window& window), gtk_window_group_remove_window) |
| 43 |
|
| 44 |
|
| 45 |
#m4 _CONVERSION(`GList*',`std::vector<Window*>',`Glib::ListHandler<Window*>::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)') |
| 46 |
_WRAP_METHOD(std::vector<Window*> list_windows(), gtk_window_group_list_windows) |
| 47 |
|
| 48 |
#m4 _CONVERSION(`GList*',`std::vector<const Window*>',`Glib::ListHandler<const Window*>::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)') |
| 49 |
_WRAP_METHOD(std::vector<const Window*> list_windows() const, gtk_window_group_list_windows) |
| 50 |
|
| 51 |
_WRAP_METHOD(Widget* get_current_grab(), gtk_window_group_get_current_grab) |
| 52 |
_WRAP_METHOD(const Widget* get_current_grab() const, gtk_window_group_get_current_grab, constversion) |
| 53 |
|
| 54 |
_WRAP_METHOD(Widget* get_current_grab(const Glib::RefPtr<const Gdk::Device>& device), gtk_window_group_get_current_device_grab) |
| 55 |
_WRAP_METHOD(const Widget* get_current_grab(const Glib::RefPtr<const Gdk::Device>& device) const, gtk_window_group_get_current_device_grab, constversion) |
| 56 |
}; |
| 57 |
|
| 58 |
} // namespace Gtk |