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:
27 * outFile = PgFontsetSimple
28 * strct = PangoFontsetSimple
31 * clss = PgFontsetSimple
39 * - pango_fontset_simple_
47 * - pango.PgFontDescription
48 * - pango.PgFontMetrics
49 * - pango.PgFontFamily
53 * - pango.PgAttributeList
57 * - pango.PgLayoutIter
58 * - pango.PgScriptIter
61 * - PangoAttribute* -> PgAttribute
62 * - PangoAttributeList* -> PgAttributeList
63 * - PangoContext* -> PgContext
64 * - PangoFontDescription* -> PgFontDescription
65 * - PangoFontFace* -> PgFontFace
66 * - PangoFontFamily* -> PgFontFamily
67 * - PangoFontMap* -> PgFontMap
68 * - PangoFontMetrics* -> PgFontMetrics
69 * - PangoItem* -> PgItem
70 * - PangoLanguage* -> PgLanguage
71 * - PangoLayout* -> PgLayout
72 * - PangoLayoutIter* -> PgLayoutIter
73 * - PangoScriptIter* -> PgScriptIter
74 * - PangoTabArray* -> PgTabArray
79 module pango
.PgFontsetSimple
;
85 import tango
.io
.Stdout
; // use the tango loging?
89 private import gtkc
.pangotypes
;
91 private import gtkc
.pango
;
94 private import pango
.PgContext
;
95 private import pango
.PgItem
;
96 private import pango
.PgLayout
;
97 private import pango
.PgFontDescription
;
98 private import pango
.PgFontMetrics
;
99 private import pango
.PgFontFamily
;
100 private import pango
.PgFontFace
;
101 private import pango
.PgFontMap
;
102 private import pango
.PgAttribute
;
103 private import pango
.PgAttributeList
;
104 private import pango
.PgLanguage
;
105 private import pango
.PgTabArray
;
106 private import pango
.PgLayout
;
107 private import pango
.PgLayoutIter
;
108 private import pango
.PgScriptIter
;
109 private import glib
.Str
;
116 * Pango supports a flexible architecture where a
117 * particular rendering architecture can supply an
118 * implementation of fonts. The PangoFont structure
119 * represents an abstract rendering-system-independent font.
120 * Pango provides routines to list available fonts, and
121 * to load a font of a given description.
123 public class PgFontsetSimple
126 /** the main Gtk struct */
127 protected PangoFontsetSimple
* pangoFontsetSimple
;
130 public PangoFontsetSimple
* getPgFontsetSimpleStruct()
132 return pangoFontsetSimple
;
136 /** the main Gtk struct as a void* */
137 protected void* getStruct()
139 return cast(void*)pangoFontsetSimple
;
143 * Sets our main struct and passes it to the parent class
145 public this (PangoFontsetSimple
* pangoFontsetSimple
)
149 if ( pangoFontsetSimple
is null )
154 Stdout("struct pangoFontsetSimple is null on constructor").newline
;
158 printf("struct pangoFontsetSimple is null on constructor");
165 assert(pangoFontsetSimple
!is null, "struct pangoFontsetSimple is null on constructor");
167 this.pangoFontsetSimple
= pangoFontsetSimple
;
276 * Creates a new PangoFontsetSimple for the given language.
278 * a PangoLanguage tag
280 * the newly allocated PangoFontsetSimple, which should
281 * be freed with g_object_unref().
283 public this (PgLanguage language
)
285 // PangoFontsetSimple* pango_fontset_simple_new (PangoLanguage *language);
286 this(cast(PangoFontsetSimple
*)pango_fontset_simple_new((language
is null) ?
null : language
.getPgLanguageStruct()) );
290 * Adds a font to the fontset.
292 * a PangoFontsetSimple.
296 public void append(PangoFont
* font
)
298 // void pango_fontset_simple_append (PangoFontsetSimple *fontset, PangoFont *font);
299 pango_fontset_simple_append(pangoFontsetSimple
, font
);
303 * Returns the number of fonts in the fontset.
305 * a PangoFontsetSimple.
307 * the size of fontset.
311 // int pango_fontset_simple_size (PangoFontsetSimple *fontset);
312 return pango_fontset_simple_size(pangoFontsetSimple
);