.Draw()

back to Icon

Description

This function is used to draw an icon on the LCD. Note that the properties must have been previously set in order for it to be drawn.

Syntax

.Draw();

Parameters

None.

Returns

None.

Examples

#include <FEHLCD.h>

int main(void)
{
    // declare a single icon called software_button
    FEHIcon::Icon software_button;

    // set its parameters with "BUTTON" as the label,
    // top left corner at 120,80 and size 80 by 80,
    // and make the border scarlet and the text gray
    software_button.SetProperties("BUTTON", 120, 80, 80, 80, SCARLET, GRAY);

    // draw the icon
    software_button.Draw();
}