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

/src/wrappers/gdk/library/gdk_rgb_dither.e

http://github.com/tybor/Liberty
Specman e | 59 lines | 39 code | 13 blank | 7 comment | 2 complexity | d459d3f8f4f978e7b61b88ed63eb29ed MD5 | raw file
 1indexing
 2	description: "Enum GdkRgbDither - Selects whether or not GdkRGB applies dithering to the image on display."
 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
22	-- Selects whether or not GdkRGB applies dithering to the image on
23	-- display. Since GdkRGB currently only handles images with 8 bits
24	-- per component, dithering on 24 bit per pixel displays is a moot
25	-- point.
26
27deferred class GDK_RGB_DITHER
28
29inherit ANY undefine is_equal, copy end
30
31
32
33feature  -- enum
34
35	is_valid_rgb_dither (a_dither :INTEGER): BOOLEAN is
36		do
37			Result:=((a_dither = gdk_rgb_dither_none) or else
38						(a_dither = gdk_rgb_dither_normal) or else
39						(a_dither = gdk_rgb_dither_max))
40		end
41
42	gdk_rgb_dither_none: INTEGER is
43			--  Never use dithering.
44		external "C macro use <gdk/gdk.h>"
45		alias "GDK_RGB_DITHER_NONE"
46		end
47	
48	gdk_rgb_dither_normal: INTEGER is
49			--  Use dithering in 8 bits per pixel (and below) only.
50		external "C macro use <gdk/gdk.h>"
51		alias "GDK_RGB_DITHER_NORMAL"
52		end
53	
54	gdk_rgb_dither_max: INTEGER is
55			--  Use dithering in 16 bits per pixel and below.
56		external "C macro use <gdk/gdk.h>"
57		alias "GDK_RGB_DITHER_MAX"
58		end
59end