Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Icon

An item for displaying icons from an icon font. More...

Import Statement: import Felgo 3.0

Properties

Detailed Description

Felgo application components come with a set of commonly used icons which can be used in AppListView rows, TabControl items or standalone within your custom user interface.

By default, the icons are drawn using an icon font called Font Awesome. For a list of available icons, see IconType. To see a categorized view of all available icons with interactive search, see here. Alternatively, a different icon font can be used by setting the Theme::iconFont property.

To add an icon to your user interface add a code snippet like the following:

 import Felgo 3.0

 App {
   Page {
      // A camera icon
     Icon {
       icon: IconType.camera
     }
   }
 }

Property Documentation

color : color

Sets the icon's color. The default color is Theme::textColor.


icon : IconType

Sets the icon type. One of the IconType constants.


size : real

Sets the icon's size (height), in pixels.


textItem : Text

The internally used Text item.