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
46 * - pango.PgFontDescription
48 * - GdkDisplay* -> Display
49 * - PangoFontDescription* -> PgFontDescription
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
;
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
);
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
);