mmsguitools.h File Reference

#include "mmstools/mmslogger.h"
#include "mmsgui/fb/mmsfb.h"
#include "mmsinput/mmskeymap.h"

Include dependency graph for mmsguitools.h:

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

Go to the source code of this file.


Classes

struct  MMSInputEvent

Enumerations

enum  MMSINPUTEVENTTYPE {
  MMSINPUTEVENTTYPE_NONE = 0, MMSINPUTEVENTTYPE_KEYPRESS, MMSINPUTEVENTTYPE_KEYRELEASE, MMSINPUTEVENTTYPE_BUTTONPRESS,
  MMSINPUTEVENTTYPE_BUTTONRELEASE, MMSINPUTEVENTTYPE_AXISMOTION
}

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)

Enumeration Type Documentation

Enumerator:
MMSINPUTEVENTTYPE_NONE 
MMSINPUTEVENTTYPE_KEYPRESS 
MMSINPUTEVENTTYPE_KEYRELEASE 
MMSINPUTEVENTTYPE_BUTTONPRESS 
MMSINPUTEVENTTYPE_BUTTONRELEASE 
MMSINPUTEVENTTYPE_AXISMOTION 

Definition at line 40 of file mmsguitools.h.


Function Documentation

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.

Parameters:
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>$
Returns:
true if input is correct and retpix is filled

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.