Gtk changes on wrap. X11 on gdk. XID on glibtypes.
[gtkD.git] / srcgl / glgdk / GLFont.d
blob0a07f283d1d2eb238afea000222f6407c70c936b
1 /*
2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = /usr/share/doc/libgtkglext1-doc/html/gtkglext/gtkglext-gdkglfont.html
26 * outPack = glgdk
27 * outFile = GLFont
28 * strct =
29 * realStrct=
30 * ctorStrct=
31 * clss = GLFont
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gdk_gl_font_
40 * omit structs:
41 * omit prefixes:
42 * omit code:
43 * imports:
44 * - glib.Str
45 * - gdk.Display
46 * - pango.PgFontDescription
47 * structWrap:
48 * - GdkDisplay* -> Display
49 * - PangoFontDescription* -> PgFontDescription
50 * local aliases:
53 module glgdk.GLFont;
55 private import glgdk.glgdktypes;
57 private import lib.glgdk;
59 private import glib.Str;
60 private import gdk.Display;
61 private import pango.PgFontDescription;
63 /**
64 * Description
66 public class GLFont
69 /**
72 /**
73 * Creates bitmap display lists from a PangoFont.
74 * font_desc : a PangoFontDescription describing the font to use.
75 * first : the index of the first glyph to be taken.
76 * count : the number of glyphs to be taken.
77 * list_base : the index of the first display list to be generated.
78 * Returns : the PangoFont used, or NULL if no font matched.
80 public static PangoFont* usePangoFont(PgFontDescription fontDesc, int first, int count, int listBase)
82 // PangoFont* gdk_gl_font_use_pango_font (const PangoFontDescription *font_desc, int first, int count, int list_base);
83 return gdk_gl_font_use_pango_font((fontDesc is null) ? null : fontDesc.getPgFontDescriptionStruct(), first, count, listBase);
86 /**
87 * Creates bitmap display lists from a PangoFont.
88 * display : a GdkDisplay.
89 * font_desc : a PangoFontDescription describing the font to use.
90 * first : the index of the first glyph to be taken.
91 * count : the number of glyphs to be taken.
92 * list_base : the index of the first display list to be generated.
93 * Returns : the PangoFont used, or NULL if no font matched.
94 * << OpenGL WindowGeometric Object Rendering >>
96 public static PangoFont* usePangoFontForDisplay(Display display, PgFontDescription fontDesc, int first, int count, int listBase)
98 // PangoFont* gdk_gl_font_use_pango_font_for_display (GdkDisplay *display, const PangoFontDescription *font_desc, int first, int count, int list_base);
99 return gdk_gl_font_use_pango_font_for_display((display is null) ? null : display.getDisplayStruct(), (fontDesc is null) ? null : fontDesc.getPgFontDescriptionStruct(), first, count, listBase);