levelbar.c File Reference
Copyright 2004, 2006 Develer S.r.l. More...
#include "levelbar.h"
Go to the source code of this file.
Functions | |
| void | lbar_init (struct LevelBar *lb, struct Bitmap *bmp, int type, int min, int max, int pos, coord_t x1, coord_t y1, coord_t x2, coord_t y2) |
| Initialize the LevelBar widget with the bitmap associated, the value range and the coordinates in the bitmap. | |
| void | lbar_setLevel (struct LevelBar *lb, int level) |
| Set the level. | |
| int | lbar_getLevel (struct LevelBar *lb) |
| Get current level. | |
| void | lbar_changeLevel (struct LevelBar *lb, int delta) |
| Change level with respect to previous value (delta can be negative). | |
| void | lbar_setMax (struct LevelBar *lb, int max) |
| Change the top limit. | |
| void | lbar_draw (struct LevelBar *lb) |
| Render the LevelBar on the bitmap. | |
Detailed Description
Copyright 2004, 2006 Develer S.r.l.Graphics user interface element to display a level bar.
- Version:
- Id
- levelbar.c 841 2007-10-08 17:35:23Z marco
Definition in file levelbar.c.
Function Documentation
| void lbar_init | ( | struct LevelBar * | lb, | |
| struct Bitmap * | bmp, | |||
| int | type, | |||
| int | min, | |||
| int | max, | |||
| int | pos, | |||
| coord_t | x1, | |||
| coord_t | y1, | |||
| coord_t | x2, | |||
| coord_t | y2 | |||
| ) |
Initialize the LevelBar widget with the bitmap associated, the value range and the coordinates in the bitmap.
- Note:
- The levelbar should be at least 5 pixels wide and high for correct borders drawing. No check is done on this.
Definition at line 21 of file levelbar.c.
