Statistics
| Revision:

root / src / gtkshruler.h @ 1

History | View | Annotate | Download (1.69 KB)

1
/* GTKSHRuler
2
 * Copyright (C) 2000-2004 Alfons Hoogervorst & The Sylpheed Claws Team
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
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 * Boston, MA 02111-1307, USA.
18
 */
19

    
20
#ifndef __GTK_SHRULER_H__
21
#define __GTK_SHRULER_H__
22

    
23

    
24
#include <gdk/gdk.h>
25
#include <gtk/gtkhruler.h>
26

    
27

    
28
#ifdef __cplusplus
29
extern "C" {
30
#endif /* __cplusplus */
31

    
32

    
33
#define GTK_SHRULER(obj)            (GTK_CHECK_CAST ((obj), gtk_shruler_get_type (), GtkSHRuler))
34
#define GTK_SHRULER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), gtk_shruler_get_type (), GtkSHRulerClass))
35
#define GTK_IS_SHRULER(obj)         (GTK_CHECK_TYPE ((obj), gtk_shruler_get_type ()))
36

    
37

    
38
typedef struct _GtkSHRuler        GtkSHRuler;
39
typedef struct _GtkSHRulerClass   GtkSHRulerClass;
40

    
41
struct _GtkSHRuler
42
{
43
        GtkHRuler ruler;
44
};
45

    
46
struct _GtkSHRulerClass
47
{
48
         GtkHRulerClass parent_class;
49
};
50

    
51

    
52
GType      gtk_shruler_get_type (void);
53
GtkWidget* gtk_shruler_new      (void);
54
void       gtk_shruler_set_pos  (GtkSHRuler *ruler,
55
                                 gfloat      pos);
56

    
57

    
58
#ifdef __cplusplus
59
}
60
#endif /* __cplusplus */
61

    
62

    
63
#endif /* __GTK_SHRULER_H__ */