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
46 * - pango.PgFontDescription
48 * - GdkDisplay* -> Display
49 * - PangoFontDescription* -> PgFontDescription
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
;
86 * Creates bitmap display lists from a PangoFont.
88 * a PangoFontDescription describing the font to use.
90 * the index of the first glyph to be taken.
92 * the number of glyphs to be taken.
94 * the index of the first display list to be generated.
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.
109 * a PangoFontDescription describing the font to use.
111 * the index of the first glyph to be taken.
113 * the number of glyphs to be taken.
115 * the index of the first display list to be generated.
117 * the PangoFont used, or NULL if no font matched.
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
);