PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/gtk/library/gtk_text_appearance.e

http://github.com/tybor/Liberty
Specman e | 65 lines | 27 code | 14 blank | 24 comment | 2 complexity | 1f685ba5a2888d7f9dbfd162038e8c04 MD5 | raw file
 1indexing
 2	description: "."
 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				]"
21class GTK_TEXT_APPEARANCE
22
23inherit G_STRUCT
24
25creation from_external_pointer
26
27	-- TODO: wrap this structure for real
28feature -- size
29	struct_size: INTEGER is
30		external "C inline use <gtk/gtk.h>"
31		alias "sizeof(GtkTextAppearance)"
32		end
33	
34feature {} -- External calls and stucture access
35
36	--   GtkTextAppearance
37	
38	--  typedef struct {
39	--    GdkColor bg_color;
40	--    GdkColor fg_color;
41	--    GdkBitmap *bg_stipple;
42	--    GdkBitmap *fg_stipple;
43	
44	--    /* super/subscript rise, can be negative */
45	--    gint rise;
46	
47	--    guint underline : 4;          /* PangoUnderline */
48	--    guint strikethrough : 1;
49	
50	--    /* Whether to use background-related values; this is irrelevant for
51	--     * the values struct when in a tag, but is used for the composite
52	--     * values struct; it's true if any of the tags being composited
53	--     * had background stuff set.
54	--     */
55	--    guint draw_bg : 1;
56	
57	--    /* These are only used when we are actually laying out and rendering
58	--     * a paragraph; not when a GtkTextAppearance is part of a
59	--     * GtkTextAttributes.
60	--     */
61	--    guint inside_selection : 1;
62	--    guint is_text : 1;
63	--  } GtkTextAppearance;
64	
65end