/* Copyright (C) 2010 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ #include #include #include #include _DEFS(gtkmm,gtk) _PINCLUDE(glibmm/private/interface_p.h) #ifndef DOXYGEN_SHOULD_SKIP_THIS extern "C" { typedef struct _GtkScrollableInterface GtkScrollableInterface; } #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gtk { _WRAP_ENUM(ScrollablePolicy, GtkScrollablePolicy, decl_prefix GTKMM_API) /** This interface is implemented by widgets with native * scrolling ability. * * @newin{3,0} */ class GTKMM_API Scrollable : public Glib::Interface { _CLASS_INTERFACE(Scrollable, GtkScrollable, GTK_SCROLLABLE, GtkScrollableInterface, , , GTKMM_API) public: _WRAP_METHOD(Glib::RefPtr get_hadjustment(), gtk_scrollable_get_hadjustment, refreturn) _WRAP_METHOD(Glib::RefPtr get_hadjustment() const, gtk_scrollable_get_hadjustment, refreturn, constversion) _WRAP_METHOD(void set_hadjustment(const Glib::RefPtr& hadjustment), gtk_scrollable_set_hadjustment) /** This method removes the hadjustment. * @see set_hadjustment(). */ void unset_hadjustment(); _WRAP_METHOD(Glib::RefPtr get_vadjustment(), gtk_scrollable_get_vadjustment, refreturn) _WRAP_METHOD(Glib::RefPtr get_vadjustment() const, gtk_scrollable_get_vadjustment, refreturn, constversoin) _WRAP_METHOD(void set_vadjustment(const Glib::RefPtr& vadjustment), gtk_scrollable_set_vadjustment) /** This method removes the vadjustment. * @see set_vadjustment(). */ void unset_vadjustment(); _WRAP_METHOD(ScrollablePolicy get_hscroll_policy() const, gtk_scrollable_get_hscroll_policy) _WRAP_METHOD(void set_hscroll_policy(ScrollablePolicy policy), gtk_scrollable_set_hscroll_policy) _WRAP_METHOD(ScrollablePolicy get_vscroll_policy() const, gtk_scrollable_get_vscroll_policy) _WRAP_METHOD(void set_vscroll_policy(ScrollablePolicy policy), gtk_scrollable_set_vscroll_policy) _WRAP_METHOD(bool get_border(Border& border) const, gtk_scrollable_get_border) _WRAP_PROPERTY("hadjustment", Glib::RefPtr) _WRAP_PROPERTY("vadjustment", Glib::RefPtr) _WRAP_PROPERTY("hscroll-policy", ScrollablePolicy) _WRAP_PROPERTY("vscroll-policy", ScrollablePolicy) //TODO: Add when we can break ABI: //_WRAP_VFUNC(bool get_border(Border& border) const, get_border) }; } // namespace Gtk