Chapter 13. Examples of I18N
116
int x, int y, const char* s, int l)
{
XmbDrawString(d, w, qxfs >fs, gc, x, y, s, l);
}
void QuasiXDrawImageString(Display *d, Window w, QuasiXFontStruct *qxfs, GC gc,
int x, int y, char* s, int l)
{
XmbDrawImageString(d, w, qxfs >fs, gc, x, y, s, l);
}
void QuasiXTextExtents(QuasiXFontStruct *qxfs, char *string, int nchars,
int *direction_return, int *font_ascent_return,
int *font_descent_return, XCharStruct *overall_return)
{
XRectangle overall_ink_return;
XRectangle overall_logical_return;
XmbTextExtents(qxfs >fs, string, nchars,
&overall_ink_return, &overall_logical_return );
*font_ascent_return
= overall_logical_return.y;
*font_descent_return =
overall_logical_return.height
+overall_logical_return.y;
*direction_return
= FontLeftToRight; /* unsupported */
*overall_return; /* unsupported */
}
int QuasiXTextWidth(QuasiXFontStruct *wxfs, const char *s, int cnt)
{
return XmbTextEscapement(wxfs >fs, s, cnt);
}
Status QuasiXGetWMName(Display *d, Window w, XTextProperty *text_prop_return)
{
int status;
char **list;
int num;
status = XGetWMName(d, w, text_prop_return);
if (!status || !text_prop_return >value || text_prop_return >nitems <= 0) {
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved