blob: bbc0c5634d4a32fb5096b45dddac93213d1d00ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#ifndef SEEN_KNOT_HOLDER_ENTITY_H
#define SEEN_KNOT_HOLDER_ENTITY_H
/** \file
* SPKnotHolderEntity definition.
*
* Authors:
* Mitsuru Oka <oka326@parkcity.ne.jp>
*
* Copyright (C) 1999-2001 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
* Copyright (C) 2001 Mitsuru Oka
* Copyright (C) 2004 Monash University
*
* Released under GNU GPL
*/
#include <glib/gtypes.h>
struct SPItem;
struct SPKnot;
namespace NR {
class Point;
}
/// SPKnotHolderEntity definition.
struct SPKnotHolderEntity {
SPKnot *knot;
/** Connection to \a knot's "moved" signal. */
guint handler_id;
/** Connection to \a knot's "clicked" signal. */
guint _click_handler_id;
/** Connection to \a knot's "ungrabbed" signal. */
guint _ungrab_handler_id;
/**
* Called solely from knot_moved_handler.
*
* \param p Requested position of the knot, in item coordinates
* \param origin Position where the knot started being dragged
* \param state GTK event state (for keyboard modifiers)
*/
void (* knot_set) (SPItem *item, NR::Point const &p, NR::Point const &origin, guint state);
/**
* Returns the position of the knot representation, in item coordinates.
*/
NR::Point (* knot_get) (SPItem *item);
void (* knot_click) (SPItem *item, guint state);
};
#endif /* !SEEN_KNOT_HOLDER_ENTITY_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:encoding=utf-8:textwidth=99 :
|