More generic use of event.
[familia.git] / src / ui / scrollbars.h
1 /****************************************************************************
2  *  Familia Lignum - Genealogical program                                   *
3  *  Copyright (C) 2011-2012 Rafał Długołęcki <rafal@dlugolecki.net.pl>      *
4  *                                                                          *
5  *  This program is free software; you can redistribute it and/or modify    *
6  *  it under the terms of the GNU General Public License as published by    *
7  *  the Free Software Foundation; version 2 of the License.                 *
8  *                                                                          *
9  *  This program is distributed in the hope that it will be useful,         *
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
12  *  GNU General Public License for more details.                            *
13  *                                                                          *
14  *  You should have received a copy of the GNU General Public License along *
15  *  with this program; if not, write to the Free Software Foundation, Inc., *
16  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.             *
17  *                                                                          *
18  ****************************************************************************/
19
20 #ifndef _UI_SCROLLBARS_H
21 #define _UI_SCROLLBARS_H
22
23 #include <gtk/gtk.h>
24
25 /**
26  * @file ui/scrollbars.h
27  * @brief Code for connecting scrollbars to the application.
28  *
29  */
30
31 /**
32  * Maintains changes in properties in main horizontal scrollbar.
33  * 
34  * Emitted when one or more of the GtkAdjustment properties have been changed, other than the "value" property.
35  * @param adjustment the object which received the signal.
36  * @param user_data user data set when the signal handler was connected.
37  */
38 void horizontal_scrollbar_changed (GtkAdjustment *adjustment, gpointer user_data);
39
40 /**
41  * Maintains value changes in main horizontal scrollbar.
42  * 
43  * Emitted when the "value" property has been changed.
44  * @param adjustment the object which received the signal.
45  * @param user_data user data set when the signal handler was connected.
46  */
47 void horizontal_scrollbar_value_changed (GtkAdjustment *adjustment, gpointer user_data);
48
49 /**
50  * Maintains changes in properties in main vertical scrollbar.
51  * 
52  * Emitted when one or more of the GtkAdjustment properties have been changed, other than the "value" property.
53  * @param adjustment the object which received the signal.
54  * @param user_data user data set when the signal handler was connected.
55  */
56 void vertical_scrollbar_changed (GtkAdjustment *adjustment, gpointer user_data);
57
58 /**
59  * Maintains value changes in main vertical scrollbar.
60  * 
61  * Emitted when the "value" property has been changed.
62  * @param adjustment the object which received the signal.
63  * @param user_data user data set when the signal handler was connected.
64  */
65 void vertical_scrollbar_value_changed (GtkAdjustment *adjustment, gpointer user_data);
66
67 #endif /* _UI_SCROLLBARS_H */