PageRenderTime 30ms CodeModel.GetById 24ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/src/wrappers/gtk/library/gtk_item.e

http://github.com/tybor/Liberty
Specman e | 79 lines | 38 code | 18 blank | 23 comment | 2 complexity | c9c916d05e95b9aa72d0a81887ba7481 MD5 | raw file
 1indexing
 2	description: "GtkItem -- base class for GtkMenuItem, GtkListItem and GtkTreeItem."
 3	copyright: "[
 4					Copyright (C) 2006 eiffel-libraries team, 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 hope 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	date: "$Date:$"
22	revision: "$Revision:$"
23
24deferred class GTK_ITEM
25
26inherit
27	GTK_BIN
28		-- GtkItem implements AtkImplementorIface.
29
30insert
31	GTK_ITEM_EXTERNALS
32
33feature
34	select_signal is
35			-- Emits the "select" signal on the given item.
36		do
37			gtk_item_select (handle)
38		end
39
40	deselect is
41			-- Emits the "deselect" signal on the given item.
42		do
43			gtk_item_deselect (handle)
44		end
45
46	toggle is
47			-- Emits the "toggle" signal on the given item.
48		do
49			gtk_item_toggle (handle)
50		end
51
52
53	-- TODO: Signals
54-- The "deselect" signal
55
56-- void        user_function (handle,
57--                                             gpointer user_data)      : Run first
58
59-- Emitted when the item is deselected.
60-- item : 	the object which received the signal.
61-- user_data : 	user data set when the signal handler was connected.
62-- The "select" signal
63
64-- void        user_function (handle,
65--                                             gpointer user_data)      : Run first
66
67-- Emitted when the item is selected.
68-- item : 	the object which received the signal.
69-- user_data : 	user data set when the signal handler was connected.
70-- The "toggle" signal
71
72-- void        user_function                  (GtkItem *item,
73--                                             gpointer user_data)      : Run first
74
75-- Emitted when the item is toggled.
76-- item : 	the object which received the signal.
77-- user_data : 	user data set when the signal handler was connected.
78
79end