Statistics
| Revision:

root / src / gtkshruler.h @ 2441

History | View | Annotate | Download (1.9 kB)

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