PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/gtk/library/has_backward_stepper_property.e

http://github.com/tybor/Liberty
Specman e | 45 lines | 35 code | 8 blank | 2 comment | 2 complexity | 84b1eba01dd02ecb26578edcd4f5b2a7 MD5 | raw file
 1indexing
 2	description: "The `fixed-slider-length' style property."
 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 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
22deferred class HAS_BACKWARD_STEPPER_PROPERTY
23
24inherit GTK_OBJECT 
25feature -- TODO: The  "has-backward-stepper" style property
26
27	has_backward_stepper: BOOLEAN is
28			-- Is the standard backward arrow button displayed?  Default
29			-- value: True
30		do
31			Result := boolean_property_from_pspec (has_backward_stepper_pspec)
32		end
33
34feature {} -- Implementation
35	has_backward_stepper_property_property_name: STRING is "has-backward-stepper"
36
37	has_backward_stepper_pspec: G_PARAM_SPEC is
38		require has_property (has_backward_stepper_property_property_name)
39		once
40			create Result.from_external_pointer
41			(g_object_class_find_property
42			 (g_object_get_class(handle),
43			  has_backward_stepper_property_property_name.to_external))
44		end
45end -- class HAS_BACKWARD_STEPPER_PROPERTY