1 #ifndef SP_ERASER_CONTEXT_H_SEEN
2 #define SP_ERASER_CONTEXT_H_SEEN
4 /*
5 * Handwriting-like drawing mode
6 *
7 * Authors:
8 * Mitsuru Oka <oka326@parkcity.ne.jp>
9 * Lauris Kaplinski <lauris@kaplinski.com>
10 *
11 * The original dynadraw code:
12 * Paul Haeberli <paul@sgi.com>
13 *
14 * Copyright (C) 1998 The Free Software Foundation
15 * Copyright (C) 1999-2002 authors
16 * Copyright (C) 2001-2002 Ximian, Inc.
17 * Copyright (C) 2008 Jon A. Cruz
18 *
19 * Released under GNU GPL, read the file 'COPYING' for more information
20 */
22 #include "common-context.h"
24 #define SP_TYPE_ERASER_CONTEXT (sp_eraser_context_get_type())
25 #define SP_ERASER_CONTEXT(o) (GTK_CHECK_CAST((o), SP_TYPE_ERASER_CONTEXT, SPEraserContext))
26 #define SP_ERASER_CONTEXT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), SP_TYPE_ERASER_CONTEXT, SPEraserContextClass))
27 #define SP_IS_ERASER_CONTEXT(o) (GTK_CHECK_TYPE((o), SP_TYPE_ERASER_CONTEXT))
28 #define SP_IS_ERASER_CONTEXT_CLASS(k) (GTK_CHECK_CLASS_TYPE((k), SP_TYPE_ERASER_CONTEXT))
30 class SPEraserContext;
31 class SPEraserContextClass;
33 #define ERC_MIN_PRESSURE 0.0
34 #define ERC_MAX_PRESSURE 1.0
35 #define ERC_DEFAULT_PRESSURE 1.0
37 #define ERC_MIN_TILT -1.0
38 #define ERC_MAX_TILT 1.0
39 #define ERC_DEFAULT_TILT 0.0
41 struct SPEraserContext : public SPCommonContext {
42 };
44 struct SPEraserContextClass : public SPEventContextClass{};
46 GType sp_eraser_context_get_type(void);
48 #endif // SP_ERASER_CONTEXT_H_SEEN
50 /*
51 Local Variables:
52 mode:c++
53 c-file-style:"stroustrup"
54 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
55 indent-tabs-mode:nil
56 fill-column:99
57 End:
58 */
59 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :