File: gdk_event_motion.e

package info (click to toggle)
egtk 0.3.5.cvs20020302-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,900 kB
  • ctags: 5,118
  • sloc: ansic: 2,212; makefile: 247; sh: 113
file content (94 lines) | stat: -rw-r--r-- 1,886 bytes parent folder | download | duplicates (3)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
-- Copyright (C) 1999 Dave E Martin XXIII and others
-- Licensed under Eiffel Forum Freeware License, version 1;
-- (see forum.txt)
--
indexing

	author: "Dave E Martin XXIII"
	license: "Eiffel Forum"
	genesis: "199903210418 utc"
	version: "v 0.3.5 GTK+ 1.2.x"
	gtk_version: "1.2"
	cvs: "$Id: gdk_event_motion.e,v 1.3 2000/07/10 02:01:26 richieb Exp $"
	HERE: "not completely glued to all c struct elements yet"

class GDK_EVENT_MOTION -- following C struct name for the event

inherit

	GDK_EVENT

	GDK_EXTERNALS
		export
			{NONE} all
		undefine
			copy, is_equal
		end

creation

	make_from_pointer

feature -- query

	time: INTEGER is -- HERE make a version with an Eiffel time type? (if there
						  -- is a standard time type?)
		do
			Result := c_gdk_event_motion_get_time (object)
		end

	x: DOUBLE is
			-- x-coordinate of event, relative to the window
		do
			Result := c_gdk_event_motion_get_x (object)
		end

	y: DOUBLE is
			-- x-coordinate of event, relative to the window
		do
			Result := c_gdk_event_motion_get_y (object)
		end

	pressure: DOUBLE is
		do
			Result := c_gdk_event_motion_get_pressure (object)
		end

	xtilt: DOUBLE is
		do
			Result := c_gdk_event_motion_get_xtilt (object)
		end

	ytilt: DOUBLE is
		do
			Result := c_gdk_event_motion_get_ytilt (object)
		end

	state: INTEGER is
		do
			Result := c_gdk_event_motion_get_state (object)
		end

	is_hint: INTEGER is -- sounds like boolean, but is a gint16
		do
			Result := c_gdk_event_motion_get_is_hint (object)
		end

	deviceid: INTEGER is
		do
			Result := c_gdk_event_motion_get_deviceid (object)
		end

	x_root: DOUBLE is
			-- x-coordinate of event, relative to the screen
		do
			Result := c_gdk_event_motion_get_x_root (object)
		end

	y_root: DOUBLE is
			-- y-coordinate of event, relative to the screen
		do
			Result := c_gdk_event_motion_get_y_root (object)
		end

end -- GDK_EVENT_MOTION