ruler.h revision 584e74d32e520855b500ecc8bdb6c661d2291ab6
#ifndef __SP_RULER_H__
#define __SP_RULER_H__
/*
* Customized ruler class for inkscape
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Frank Felfe <innerspace@iname.com>
*
* Copyright (C) 1999-2002 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-metric.h"
#include <iostream>
#include <glib.h>
#define GTK_DEPRECATED_TYPE_RULER (gtk_deprecated_ruler_get_type ())
#define GTK_DEPRECATED_RULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_DEPRECATED_TYPE_RULER, GtkDeprecatedRuler))
#define GTK_DEPRECATED_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_DEPRECATED_TYPE_RULER, GtkDeprecatedRulerClass))
#define GTK_DEPRECATED_IS_RULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_DEPRECATED_TYPE_RULER))
#define GTK_DEPRECATED_IS_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_DEPRECATED_TYPE_RULER))
#define GTK_DEPRECATED_RULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_DEPRECATED_TYPE_RULER, GtkDeprecatedRulerClass))
typedef struct _GtkDeprecatedRuler GtkDeprecatedRuler;
typedef struct _GtkDeprecatedRulerClass GtkDeprecatedRulerClass;
typedef struct _GtkDeprecatedRulerMetric GtkDeprecatedRulerMetric;
/* All distances below are in 1/72nd's of an inch. (According to
* Adobe that's a point, but points are really 1/72.27 in.)
*/
struct _GtkDeprecatedRuler
{
/* The upper limit of the ruler (in points) */
/* The lower limit of the ruler */
/* The position of the mark on the ruler */
/* The maximum size of the ruler */
};
struct _GtkDeprecatedRulerClass
{
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
};
struct _GtkDeprecatedRulerMetric
{
/* This should be points_per_unit. This is the size of the unit
* in 1/72nd's of an inch and has nothing to do with screen pixels */
};
#define SP_HRULER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, sp_hruler_get_type (), SPHRulerClass)
struct SPHRuler
{
};
struct SPHRulerClass
{
};
GType sp_hruler_get_type (void);
GtkWidget* sp_hruler_new (void);
// vruler
#define SP_VRULER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, sp_vruler_get_type (), SPVRulerClass)
struct SPVRuler
{
};
struct SPVRulerClass
{
};
GType sp_vruler_get_type (void);
GtkWidget* sp_vruler_new (void);
#endif /* __SP_RULER_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :