| 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 |
/** Hide and show with animation. |
| 25 |
* |
| 26 |
* The Gtk::Revealer widget is a container which animates |
| 27 |
* the transition of its child from invisible to visible. |
| 28 |
* |
| 29 |
* The style of transition can be controlled with |
| 30 |
* Gtk::Revealer::set_transition_type(). |
| 31 |
* |
| 32 |
* @ingroup Widgets |
| 33 |
* @newin{3,10} |
| 34 |
*/ |
| 35 |
class GTKMM_API Revealer |
| 36 |
: public Bin |
| 37 |
{ |
| 38 |
_CLASS_GTKOBJECT(Revealer, GtkRevealer, GTK_REVEALER, Gtk::Bin, GtkBin, , , GTKMM_API) |
| 39 |
public: |
| 40 |
|
| 41 |
/** Create Gtk::Revealer widget. |
| 42 |
* |
| 43 |
* |
| 44 |
*/ |
| 45 |
_CTOR_DEFAULT |
| 46 |
|
| 47 |
|
| 48 |
_WRAP_METHOD(bool get_reveal_child() const, gtk_revealer_get_reveal_child) |
| 49 |
_WRAP_METHOD(void set_reveal_child(bool reveal_child = true), gtk_revealer_set_reveal_child) |
| 50 |
|
| 51 |
_WRAP_METHOD(bool get_child_revealed() const, gtk_revealer_get_child_revealed) |
| 52 |
|
| 53 |
_WRAP_METHOD(guint get_transition_duration() const, gtk_revealer_get_transition_duration) |
| 54 |
_WRAP_METHOD(void set_transition_duration(guint duration), gtk_revealer_set_transition_duration) |
| 55 |
|
| 56 |
_WRAP_METHOD(RevealerTransitionType get_transition_type() const, gtk_revealer_get_transition_type) |
| 57 |
_WRAP_METHOD(void set_transition_type(RevealerTransitionType transition), gtk_revealer_set_transition_type) |
| 58 |
|
| 59 |
|
| 60 |
_WRAP_PROPERTY("transition-type", RevealerTransitionType) |
| 61 |
_WRAP_PROPERTY("transition-duration", guint) |
| 62 |
_WRAP_PROPERTY("reveal-child", bool) |
| 63 |
_WRAP_PROPERTY("child-revealed", bool) |
| 64 |
|
| 65 |
// Gtk::Revealer has no signals nor vfuncs as of 3.10. |
| 66 |
}; |
| 67 |
|
| 68 |
} // namespace Gtk |