Statistics
| Revision:

root / src / gtkshruler.h @ 3071

History | View | Annotate | Download (1.9 kB)

1 1 hiro
/* GTKSHRuler
2 1 hiro
 * Copyright (C) 2000-2004 Alfons Hoogervorst & The Sylpheed Claws Team
3 1595 hiro
 * Copyright (C) 2007 Hiroyuki Yamamoto
4 1 hiro
 *
5 1 hiro
 * This library is free software; you can redistribute it and/or
6 1 hiro
 * modify it under the terms of the GNU Library General Public
7 1 hiro
 * License as published by the Free Software Foundation; either
8 1 hiro
 * version 2 of the License, or (at your option) any later version.
9 1 hiro
 *
10 1 hiro
 * This library is distributed in the hope that it will be useful,
11 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 1 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 1 hiro
 * Library General Public License for more details.
14 1 hiro
 *
15 1 hiro
 * You should have received a copy of the GNU Library General Public
16 1 hiro
 * License along with this library; if not, write to the
17 1 hiro
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 1 hiro
 * Boston, MA 02111-1307, USA.
19 1 hiro
 */
20 1 hiro
21 1 hiro
#ifndef __GTK_SHRULER_H__
22 1 hiro
#define __GTK_SHRULER_H__
23 1 hiro
24 1 hiro
25 1 hiro
#include <gdk/gdk.h>
26 1 hiro
#include <gtk/gtkhruler.h>
27 1 hiro
28 1 hiro
29 1 hiro
#ifdef __cplusplus
30 1 hiro
extern "C" {
31 1 hiro
#endif /* __cplusplus */
32 1 hiro
33 1 hiro
34 1 hiro
#define GTK_SHRULER(obj)            (GTK_CHECK_CAST ((obj), gtk_shruler_get_type (), GtkSHRuler))
35 1 hiro
#define GTK_SHRULER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), gtk_shruler_get_type (), GtkSHRulerClass))
36 1 hiro
#define GTK_IS_SHRULER(obj)         (GTK_CHECK_TYPE ((obj), gtk_shruler_get_type ()))
37 1 hiro
38 1 hiro
39 1 hiro
typedef struct _GtkSHRuler        GtkSHRuler;
40 1 hiro
typedef struct _GtkSHRulerClass   GtkSHRulerClass;
41 1 hiro
42 1 hiro
struct _GtkSHRuler
43 1 hiro
{
44 1 hiro
        GtkHRuler ruler;
45 1595 hiro
46 1595 hiro
        gint start_pos;
47 1 hiro
};
48 1 hiro
49 1 hiro
struct _GtkSHRulerClass
50 1 hiro
{
51 1 hiro
         GtkHRulerClass parent_class;
52 1 hiro
};
53 1 hiro
54 1 hiro
55 1 hiro
GType      gtk_shruler_get_type (void);
56 1 hiro
GtkWidget* gtk_shruler_new      (void);
57 1595 hiro
58 1595 hiro
void       gtk_shruler_set_start_pos        (GtkSHRuler *ruler,
59 1595 hiro
                                         gint        pos);
60 1595 hiro
gint       gtk_shruler_get_start_pos        (GtkSHRuler *ruler);
61 1595 hiro
62 1 hiro
void       gtk_shruler_set_pos  (GtkSHRuler *ruler,
63 1 hiro
                                 gfloat      pos);
64 1 hiro
65 1 hiro
66 1 hiro
#ifdef __cplusplus
67 1 hiro
}
68 1 hiro
#endif /* __cplusplus */
69 1 hiro
70 1 hiro
71 1 hiro
#endif /* __GTK_SHRULER_H__ */