Chapter 13. Examples of I18N
110
  XDrawImageString(Display *d, Window w, GC gc, int x, int y, const char *string, int len)
 > QuasiXDrawImageString(Display *d, Window w, QuasiXFontStruct *q, GC gc, int x, int y,
char *string, int len)
13.4.4 The Header File of the Wrapper
This is the header file of the wrapper.
/* fontset.h */
#ifndef __fontset__h__
#define __fontset__h__
#include 
#include 
#include 
typedef struct {
Font
fid;
/* dummy */
XFontSet fs;
int
ascent, descent;
} QuasiXFontStruct;
#define FONT_ELEMENT_SIZE 50
QuasiXFontStruct *QuasiXLoadQueryFont(Display *d, const char *fontset_name);
void QuasiXFreeFont(Display *d, QuasiXFontStruct *qxfs);
void QuasiXDrawString(Display *d, Window w,
QuasiXFontStruct *qxfs, GC gc,
int x, int y, const char* s, int l);
void QuasiXDrawImageString(Display *d, Window w,
QuasiXFontStruct *qxfs, GC gc,
int x, int y, char* s, int l);
void QuasiXTextExtents(QuasiXFontStruct *qxfs, char *string, int nchars,
int *direction_return, int *font_ascent_return,
int *font_descent_return, XCharStruct *overall_return);
int QuasiXTextWidth(QuasiXFontStruct *qxfs, const char *s, int cnt);
Status QuasiXGetWMIconName(Display *d, Window w,
XTextProperty *text_prop_return);
Status QuasiXGetWMName(Display *d, Window w,






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

indiana web hosting

 

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