Ejemplo n.º 1
0
static int GRowColFindXMax(GRowCol *grc) {
    int i, width=0, temp;

    for ( i=0; i<grc->ltot; ++i ) {
	temp = GTextInfoGetWidth(grc->g.base,grc->ti[i],grc->font);
	if ( temp>width ) width=temp;
    }
    grc->xmax = width;
return( width );
}
Ejemplo n.º 2
0
static int GListFindXMax(GDList *gl) {
    int i, width=0, temp;

    for ( i=0; i<gl->ltot; ++i ) {
	temp = GTextInfoGetWidth(gl->g.base,gl->ti[i],gl->font);
	if ( temp>width ) width=temp;
    }
    gl->xmax = width;
return( width );
}