PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/gtk/library/gtk_window_group.e

http://github.com/tybor/Liberty
Specman e | 71 lines | 51 code | 15 blank | 5 comment | 2 complexity | 58b0b31cb582edef055ec77600f2c59b MD5 | raw file
 1indexing
 2	description: "GtkWindowGroup -- Limit the effect of grabs."
 3	copyright: "[
 4					Copyright (C) 2006 Paolo Redaelli, GTK+ team
 5					
 6					This library is free software; you can redistribute it and/or
 7					modify it under the terms of the GNU Lesser General Public License
 8					as published by the Free Software Foundation; either version 2.1 of
 9					the License, or (at your option) any later version.
10					
11					This library is distributed in the hopeOA that it will be useful, but
12					WITHOUT ANY WARRANTY; without even the implied warranty of
13					MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14					Lesser General Public License for more details.
15
16					You should have received a copy of the GNU Lesser General Public
17					License along with this library; if not, write to the Free Software
18					Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19					02110-1301 USA
20			]"
21
22class GTK_WINDOW_GROUP
23
24inherit G_OBJECT 
25
26creation make, from_external_pointer
27
28feature {} -- Creation
29
30	make is
31			-- Creates a new GtkWindowGroup object. Grabs added with
32			-- gtk_grab_add() only affect windows within the same
33			-- GtkWindowGroup.
34		do
35			from_external_pointer (gtk_window_group_new)
36		end
37
38	add (a_window: GTK_WINDOW) is
39			-- Adds `a_window' to a GtkWindowGroup.
40		require window_not_void: a_window/=Void
41		do
42			gtk_window_group_add_window(handle,a_window.handle)
43		end
44
45	remove (a_window: GTK_WINDOW) is
46			-- Removes `a_window' from a GtkWindowGroup.
47		require window_not_void: a_window/=Void
48		do
49			gtk_window_group_remove_window (handle, a_window.handle)
50		end
51
52feature -- size
53	struct_size: INTEGER is
54		external "C inline use <gtk/gtk.h>"
55		alias "sizeof(GtkWindowGroup)"
56		end
57
58feature {} -- External calls
59	gtk_window_group_new: POINTER is
60		external "C use <gtk/gtk.h>"
61		end
62	
63	gtk_window_group_add_window (window_group, window: POINTER) is
64		external "C use <gtk/gtk.h>"
65		end
66	
67	gtk_window_group_remove_window  (window_group, window: POINTER) is
68		external "C use <gtk/gtk.h>"
69		end
70
71end -- class GTK_WINDOW_GROUP