This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| int | gifLabelMaxWidth (char **labels, int labelCount) |
| void | gifLabelVerticalText (char *fileName, char **labels, int labelCount, int height) |
| int gifLabelMaxWidth | ( | char ** | labels, | |
| int | labelCount | |||
| ) |
Definition at line 9 of file gifLabel.c.
References mgFontStringWidth(), and mgMediumFont().
00012 { 00013 int width = 0, w, i; 00014 MgFont *font = mgMediumFont(); 00015 for (i=0; i<labelCount; ++i) 00016 { 00017 char *label = labels[i]; 00018 if (label != NULL) 00019 { 00020 w = mgFontStringWidth(font, labels[i]); 00021 if (w > width) 00022 width = w; 00023 } 00024 } 00025 width += 2; 00026 return width; 00027 }
Here is the call graph for this function:

| void gifLabelVerticalText | ( | char * | fileName, | |
| char ** | labels, | |||
| int | labelCount, | |||
| int | height | |||
| ) |
Definition at line 81 of file gifLabel.c.
References altColorLabels(), mgFree(), mgRotate90(), mgSaveGif(), safef(), and sameFileContents().
00085 { 00086 struct memGfx *straight = altColorLabels(labels, labelCount, height); 00087 struct memGfx *rotated = mgRotate90(straight); 00088 char tempName[512]; 00089 safef(tempName, sizeof(tempName), "%s_trash", fileName); 00090 mgSaveGif(rotated, tempName); /* note we cannot delete this later because of permissions */ 00091 /* the savings here is in the user's own browser cache - not updated if no change */ 00092 if (!sameFileContents(tempName,fileName)) 00093 mgSaveGif(rotated, fileName); 00094 mgFree(&straight); 00095 mgFree(&rotated); 00096 }
Here is the call graph for this function:

1.5.2