Tulip
5.0.0
Large graphs analysis and drawing
|
#include <TulipFontAwesome.h>
Static Public Member Functions | |
static unsigned int | getFontAwesomeIconCodePoint (const std::string &iconName) |
static std::string | getFontAwesomeIconUtf8String (const std::string &iconName) |
static std::string | getFontAwesomeTrueTypeFileLocation () |
static const std::vector< std::string > & | getSupportedFontAwesomeIcons () |
static bool | isFontAwesomeIconSupported (const std::string &iconName) |
Helper class for the configuration of a Font Awesome glyph.
Font Awesome is a free iconic font by Dave Gandy (see http://fontawesome.io) offering more than 500 customizable scalable vector icons.
A glyph has been added to Tulip enabling to use these great icons as nodes and edges extremities shapes.
That class offers utility functions and supported icons names constants.
To set a node glyph as a Font Awesome icon, the Icon glyph must be associated to the node through the modification of the "viewShape" integer property attached to the graph. The name of the icon to use must then be set in the "viewIcon" string property. As an example, the following code snippet activates the Font Awesome glyph for all nodes and sets the "user" icon.
Definition at line 58 of file TulipFontAwesome.h.
|
static |
Returns the Unicode code point associated to an icon name
iconName | the name of the icon to get the codepoint |
|
static |
Returns an UTF-8 encoded string of a Font Awesome icon
iconName | a Font Awesome icon name |
|
static |
Returns the location of the Font Awesome TrueType font file bundled with Tulip
|
static |
Returns the list of supported Font Awesome icons names
|
static |
Checks if the provided Font Awesome icon name is supported
iconName | the name of the icon to check support |