#include "mmsgui/mmsguitools.h"
#include <stdlib.h>
Go to the source code of this file.
Functions | |
bool | getPixelFromSizeHint (int *retpix, string hint, int maxpixel, int secondaxis) |
Translate the size given in hint into pixel value. | |
bool | loadImage (IDirectFBImageProvider **image, string path, string filename) |
bool | loadFont (MMSFBFont **font, string path, string filename, int width, int height) |
unsigned int | getFrameNum (unsigned int delay_time) |
unsigned int | getFrameDelay (unsigned int start_ts, unsigned int end_ts) |
unsigned int getFrameDelay | ( | unsigned int | start_ts, | |
unsigned int | end_ts | |||
) |
Definition at line 204 of file mmsguitools.cpp.
unsigned int getFrameNum | ( | unsigned int | delay_time | ) |
Definition at line 197 of file mmsguitools.cpp.
bool getPixelFromSizeHint | ( | int * | retpix, | |
string | hint, | |||
int | maxpixel, | |||
int | secondaxis | |||
) |
Translate the size given in hint into pixel value.
retpix | return value | |
hint | size with following formats <size>px - size in pixel, example "100px" <size>% - size in percent, example "100%" <size>px-<size2> - size in pixel minus pixel, example "100px-50" <size>-<size2> - size in percent minus pixel, example "100%-50" <factor>$ - factor which will used in conjunction with secondaxis result=<factor>*secondaxis example: "1.333$" | |
maxpixel | maximum pixel for calculation and check | |
secondaxis | size of the second axis, will only used with hint <factor>$ |
Definition at line 36 of file mmsguitools.cpp.
bool loadFont | ( | MMSFBFont ** | font, | |
string | path, | |||
string | filename, | |||
int | width, | |||
int | height | |||
) |
Definition at line 160 of file mmsguitools.cpp.
bool loadImage | ( | IDirectFBImageProvider ** | image, | |
string | path, | |||
string | filename | |||
) |
Definition at line 109 of file mmsguitools.cpp.