Sun, 02 Feb 2014 00:22:57 +0530
Merged gtkdoc-conversion branch
| 3391 | 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald | |
| 3 | * | |
| 4 | * This library is free software; you can redistribute it and/or | |
| 5 | * modify it under the terms of the GNU Library General Public | |
| 6 | * License as published by the Free Software Foundation; either | |
| 7 | * version 2 of the License, or (at your option) any later version. | |
| 8 | * | |
| 9 | * This library 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 GNU | |
| 12 | * Library General Public License for more details. | |
| 13 | * | |
| 14 | * You should have received a copy of the GNU Library General Public | |
| 15 | * License along with this library; if not, write to the | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15435
diff
changeset
|
16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15435
diff
changeset
|
17 | * Boston, MA 02111-1301, USA. |
| 3391 | 18 | */ |
| 19 | ||
| 20 | /* | |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
26819
diff
changeset
|
21 | * Copyright 2000 Syd Logan |
| 3391 | 22 | */ |
| 23 | ||
| 24 | #ifndef __GTK_TICKER_H__ | |
| 25 | #define __GTK_TICKER_H__ | |
| 26 | ||
| 27 | ||
| 28 | #include <gdk/gdk.h> | |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
19859
diff
changeset
|
29 | #include <gtk/gtk.h> |
| 3391 | 30 | |
|
36890
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
31 | #include "plugins.h" |
| 3391 | 32 | |
| 33 | #ifdef __cplusplus | |
| 34 | extern "C" { | |
| 35 | #endif /* __cplusplus */ | |
| 36 | ||
|
26819
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
37 | #define GTK_TYPE_TICKER (gtk_ticker_get_type()) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
38 | #define GTK_TICKER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_TICKER, GtkTicker)) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
39 | #define GTK_TICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_TICKER, GtkTickerClass)) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
40 | #define GTK_IS_TICKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_TICKER)) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
41 | #define GTK_IS_TICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_TICKER)) |
| 3391 | 42 | |
| 43 | ||
| 44 | typedef struct _GtkTicker GtkTicker; | |
| 45 | typedef struct _GtkTickerClass GtkTickerClass; | |
| 46 | typedef struct _GtkTickerChild GtkTickerChild; | |
| 47 | ||
| 48 | /* XXX children move from right to left, should be able to go other way */ | |
| 49 | ||
| 50 | struct _GtkTicker | |
| 51 | { | |
| 52 | GtkContainer container; | |
| 53 | guint interval; /* how often to scootch */ | |
| 7631 | 54 | gint spacing; /* inter-child horizontal spacing */ |
| 3391 | 55 | guint scootch; /* how many pixels to move each scootch */ |
| 56 | gint timer; /* timer object */ | |
| 7631 | 57 | gint total; /* total width of widgets */ |
| 58 | gint width; /* width of containing window */ | |
| 3391 | 59 | gboolean dirty; |
| 5170 | 60 | GList *children; |
| 3391 | 61 | }; |
| 62 | ||
| 63 | struct _GtkTickerClass | |
| 64 | { | |
| 65 | GtkContainerClass parent_class; | |
| 66 | }; | |
| 67 | ||
| 68 | struct _GtkTickerChild | |
| 69 | { | |
| 70 | GtkWidget *widget; | |
| 71 | gint x; /* current position */ | |
| 5170 | 72 | gint offset; /* offset in list */ |
| 3391 | 73 | }; |
| 74 | ||
| 75 | ||
|
36890
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
76 | G_MODULE_EXPORT |
|
26819
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
77 | GType gtk_ticker_get_type (void); |
|
36890
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
78 | void gtk_ticker_register_type (PurplePlugin *plugin); |
|
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
79 | |
| 3391 | 80 | GtkWidget* gtk_ticker_new (void); |
| 81 | void gtk_ticker_add (GtkTicker *ticker, | |
| 82 | GtkWidget *widget); | |
| 83 | void gtk_ticker_remove (GtkTicker *ticker, | |
| 84 | GtkWidget *widget); | |
| 85 | void gtk_ticker_set_interval (GtkTicker *ticker, | |
| 86 | gint interval); | |
| 87 | guint gtk_ticker_get_interval (GtkTicker *ticker); | |
| 88 | void gtk_ticker_set_spacing (GtkTicker *ticker, | |
| 89 | gint spacing); | |
| 90 | guint gtk_ticker_get_spacing (GtkTicker *ticker); | |
| 91 | void gtk_ticker_set_scootch (GtkTicker *ticker, | |
| 92 | gint scootch); | |
| 93 | guint gtk_ticker_get_scootch (GtkTicker *ticker); | |
| 94 | void gtk_ticker_start_scroll (GtkTicker *ticker); | |
| 95 | void gtk_ticker_stop_scroll (GtkTicker *ticker); | |
| 96 | ||
| 97 | #ifdef __cplusplus | |
| 98 | } | |
| 99 | #endif /* __cplusplus */ | |
| 100 | ||
| 101 | ||
| 102 | #endif /* __GTK_TICKER_H__ */ |