mikroSDK Reference Manual
|
VTFT Library API Reference. More...
Functions list | |
void | vtft_init (vtft_t *vtft_instance, tp_t *tp_instance) |
Initialize the VTFT library with the given gl and tp instances. More... | |
void | vtft_set_progress_bar_position (vtft_t *instance, vtft_progress_bar *progress_bar, vtft_ucoord_t position) |
Set the position of the given progress bar. More... | |
void | vtft_draw_component (vtft_t *instance, const vtft_component *__generic component) |
Draw the given component, using the appropriate drawing function. More... | |
void | vtft_refresh_current_screen (vtft_t *instance) |
Redraw the current screen and all of its components. More... | |
void | vtft_set_current_screen (vtft_t *instance, vtft_screen *screen) |
Set the current screen and draws it. More... | |
void | vtft_process (vtft_t *instance) |
Processes the periodic events. More... | |
void | _draw_none (vtft_t *instance, const vtft_component *__generic component) |
An empty drawing handle for components with an invalid type. More... | |
void | _draw_box (vtft_t *instance, const vtft_component *__generic component) |
Draw the given box component. More... | |
void | _draw_rounded_box (vtft_t *instance, const vtft_component *__generic component) |
Draw the given rounded box component. More... | |
void | _draw_circle (vtft_t *instance, const vtft_component *__generic component) |
Draw the given circle component. More... | |
void | _draw_ellipse (vtft_t *instance, const vtft_component *__generic_ptr component) |
Draws the given ellipse component. More... | |
void | _draw_line (vtft_t *instance, const vtft_component *__generic component) |
Draw the given line component. More... | |
void | _draw_label (vtft_t *instance, const vtft_component *__generic component) |
Draw the given label component. More... | |
void | _draw_button (vtft_t *instance, const vtft_component *__generic component) |
Draw the given button component. More... | |
void | _draw_rounded_button (vtft_t *instance, const vtft_component *__generic component) |
Draw the given rounded button component. More... | |
void | _draw_circle_button (vtft_t *instance, const vtft_component *__generic component) |
Draw the given circle button component. More... | |
void | _draw_image (vtft_t *instance, const vtft_component *__generic component) |
Draw the given image component. More... | |
void | _draw_check_box (vtft_t *instance, const vtft_component *__generic component) |
Draw the given check box. More... | |
void | _draw_radio_button (vtft_t *instance, const vtft_component *__generic component) |
Draw the given radio button. More... | |
void | _draw_progress_bar (vtft_t *instance, const vtft_component *__generic component) |
Draw the given progress bar. More... | |
void | _update_progress_bar (vtft_t *instance, vtft_progress_bar *progressBar) |
Update the position of the given progress bar. More... | |
API for configuring and manipulating VTFT library.
void vtft_set_progress_bar_position | ( | vtft_t * | instance, |
vtft_progress_bar * | progress_bar, | ||
vtft_ucoord_t | position | ||
) |
Sets the position of the given progress bar.
[in] | instance | Initialized VTFT instance. See vtft_t structure definition for detailed explanation. |
[in] | progress_bar | Progress bar whose position is going to be set. See vtft_progress_bar structure definition for detailed explanation. |
[in] | position | Position to be set. See vtft_ucoord_t structure definition for detailed explanation. |
void vtft_draw_component | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Draws the given component, using the appropriate drawing function.
[in] | instance | Initialized VTFT instance. See vtft_t structure definition for detailed explanation. |
[in] | component | Component to be drawn. See vtft_component structure definition for detailed explanation. |
void vtft_refresh_current_screen | ( | vtft_t * | instance | ) |
Redraws the current screen and all of its components.
[in] | instance | Initialized VTFT instance. See vtft_t structure definition for detailed explanation. |
void vtft_set_current_screen | ( | vtft_t * | instance, |
vtft_screen * | screen | ||
) |
Sets the current screen and draws it.
[in] | instance | Initialized VTFT instance. See vtft_t structure definition for detailed explanation. |
[in] | screen | Screen to be set as current. See vtft_screen structure definition for detailed explanation. |
void vtft_process | ( | vtft_t * | instance | ) |
Processes the periodic events.
[in] | instance | Initialized VTFT instance. See vtft_t structure definition for detailed explanation. |
void _draw_none | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
An empty drawing handle for components with an invalid type.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | Component of invalid type. See vtft_component structure definition for detailed explanation. |
void _draw_box | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw a box shape.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The box component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_rounded_box | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw a rounded box shape.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The rounded box component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_circle | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw a circle.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The circle component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_ellipse | ( | vtft_t * | instance, |
const vtft_component *__generic_ptr | component | ||
) |
Function uses Graphics Library to draw a ellipse.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The ellipse component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_line | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw a line.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The line component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_label | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw text.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The label component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_button | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to frst draw button shape, then writes text over said shape.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The button component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_rounded_button | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to first draw button shape, then writes text over said shape.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The rounded button component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_circle_button | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to frst draw circular button shape, then writes text over said shape.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The circle component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_image | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw an image. Supported formats are 16bit BMP, 8bit BMP, 4bit BMP, 1bit BMP and JPEG.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The image component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_check_box | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw checkbox shape. It's in the nature of check box to change it's value when checked or unchecked so the component itself should probably not be constant.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The check box component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_radio_button | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw radio button shape. It's in the nature of radio button to change it's value when checked or unchecked so the component itself should probably not be constant.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The radio button component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _draw_progress_bar | ( | vtft_t * | instance, |
const vtft_component *__generic | component | ||
) |
Function uses Graphics Library to draw progres bar shape. It's in the nature of progress bar to change it's value so the component itself should probably not be constant.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[in] | component | The progress bar component that will be drawn. See vtft_component structure definition for detailed explanation. |
void _update_progress_bar | ( | vtft_t * | instance, |
vtft_progress_bar * | progressBar | ||
) |
Some components can be constant due to the fact that their values can not be changed while other components, such as progress bar, change their value making them invalid for a const prameter.
[in] | instance | Initialized VTFT library instance. See vtft_t structure definition for detailed explanation. |
[out] | progressBar | The progres bar component that will be updated. See vtft_progress_bar structure definition for detailed explanation. |