alternative to assert
[gtkD.git] / gtkD / srcgl / glgdk / GLFont.d
blobd2ffd2930ebfa6b4d095b3900863761a02407591
1 /*
2 * This file is part of gtkD.
4 * gtkD 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 * gtkD 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 gtkD; 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 = 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 * module aliases:
51 * local aliases:
54 module glgdk.GLFont;
56 version(noAssert)
58 version(Tango)
60 import tango.io.Stdout; // use the tango loging?
64 private import gtkglc.glgdktypes;
66 private import gtkglc.glgdk;
69 private import glib.Str;
70 private import gdk.Display;
71 private import pango.PgFontDescription;
76 /**
77 * Description
79 public class GLFont
82 /**
85 /**
86 * Creates bitmap display lists from a PangoFont.
87 * font_desc:
88 * a PangoFontDescription describing the font to use.
89 * first:
90 * the index of the first glyph to be taken.
91 * count:
92 * the number of glyphs to be taken.
93 * list_base:
94 * the index of the first display list to be generated.
95 * Returns:
96 * the PangoFont used, or NULL if no font matched.
98 public static PangoFont* usePangoFont(PgFontDescription fontDesc, int first, int count, int listBase)
100 // PangoFont* gdk_gl_font_use_pango_font (const PangoFontDescription *font_desc, int first, int count, int list_base);
101 return gdk_gl_font_use_pango_font((fontDesc is null) ? null : fontDesc.getPgFontDescriptionStruct(), first, count, listBase);
105 * Creates bitmap display lists from a PangoFont.
106 * display:
107 * a GdkDisplay.
108 * font_desc:
109 * a PangoFontDescription describing the font to use.
110 * first:
111 * the index of the first glyph to be taken.
112 * count:
113 * the number of glyphs to be taken.
114 * list_base:
115 * the index of the first display list to be generated.
116 * Returns:
117 * the PangoFont used, or NULL if no font matched.
118 * <<OpenGL Window
119 * Geometric Object Rendering>>
121 public static PangoFont* usePangoFontForDisplay(Display display, PgFontDescription fontDesc, int first, int count, int listBase)
123 // PangoFont* gdk_gl_font_use_pango_font_for_display (GdkDisplay *display, const PangoFontDescription *font_desc, int first, int count, int list_base);
124 return gdk_gl_font_use_pango_font_for_display((display is null) ? null : display.getDisplayStruct(), (fontDesc is null) ? null : fontDesc.getPgFontDescriptionStruct(), first, count, listBase);