File: gdk_event.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 (61 lines) | stat: -rw-r--r-- 941 bytes parent folder | download
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
-- Copyright 1998 Richie Bielak and others
-- Licensed under Eiffel Forum Freeware License, version 1;
-- (see forum.txt)
--
indexing
	
	description: "GDK_EVENT data"
	version: "v 0.3.5 GTK+ 1.2.x"
	cvs: "$Id: gdk_event.e,v 1.7 2000/07/10 02:01:26 richieb Exp $"

class GDK_EVENT 

inherit

	C_HANDLE
		rename
			handle as object
		end

	GDK_EVENT_EXTERNALS
		undefine
			copy, is_equal
		end

creation

	make_from_pointer

feature -- fields common to all GDK events

	event_type: INTEGER is
		do
			Result := c_gdk_event_type (object)
		end

	window: GDK_WINDOW is
		local
			p: POINTER
		do
			p := c_gdk_event_window (object)
			if window_cache = Void or else window_cache.window /= p then
				!! window_cache.make (p)
			end
			Result := window_cache
		end

	send_event: INTEGER is
		do
			Result := c_gdk_event_send_event (object)
		end

feature {NONE}

	window_cache: GDK_WINDOW

	destroy_object is
		do
			-- nothing to do
		end

end