Scanframe Modular Application 0.1.0
|
Class for accessing resources like SVG images as a QIcon. More...
#include <Resource.h>
Public Types | |
enum | Icon : int { Clear , Reload , Submit , New , Open , Cut , Copy , Paste , Undo , Redo , Save , Cancel , Close , Check , Okay , Exit , CloseWindow , CloseWindows , Configuration , Settings , Application , Development , Compile , Initialize , Step , Run , Start , Stop , Edit , Add , Remove , Folder , Collapse , Expand , OpenFolder , Hand , Search , Form , Container , Widget , Palette , Position , Location , Tools , Graph } |
List of available icons which is easy wen using auto complete. More... | |
Static Public Member Functions | |
static QString | getSvgIconResource (Icon icon) |
Gets an svg icon resource location from the pass enumerate value. | |
static QByteArray | getByteArray (const QString &resource) |
Retrieves resource in a byte array. | |
static QByteArray | getSvg (QFile &file, const QColor &color=QColor(), const QSize &size=QSize()) |
Gets a SVG using the passed color as the main color set in the 'svg' tags attribute. | |
static QImage | getSvgImage (const QString &resource, const QColor &color=QColor(), const QSize &size=QSize()) |
Gets a SVG using the passed color as the main color set in the 'svg' tags attribute. | |
static QIcon | getSvgIcon (const QString &resource, const QColor &color=QColor(), QSize size=QSize()) |
Gets an SVG QIcon type from a resource location using the passed color and optional size. | |
static QIcon | getSvgIcon (const QString &resource, const QPalette &palette, QPalette::ColorRole role, QSize size=QSize()) |
Gets an SVG QIcon type from a resource location using the palette and role for color. | |
static QIcon | getSvgIcon (const QString &resource, QPalette::ColorRole role, QSize size=QSize()) |
Gets an SVG QIcon type from a resource location using the application palette and the passed role for color. | |
Class for accessing resources like SVG images as a QIcon.
enum sf::Resource::Icon : int |
List of available icons which is easy wen using auto complete.
|
static |
Retrieves resource in a byte array.
resource | location in the resource tree or file. |
|
static |
Gets a SVG using the passed color as the main color set in the 'svg' tags attribute.
file | File instance. |
color | HTML formed color string. Default is non valid color. |
size | Size of the square icon where when -1 the svg size is not set and thus not restricted (default). |
|
static |
Gets an SVG QIcon type from a resource location using the passed color and optional size.
resource | Location of the icon. |
color | Color for the icon. |
size | Size of the icon where when not passed default set to _defaultIconSize (128x128). |
|
static |
Gets an SVG QIcon type from a resource location using the palette and role for color.
resource | Location of the Icon. |
palette | The pallet to determine the color for the Icon. |
role | The color role to determine the color for the Icon. |
size | Size of the icon where when not passed default set to _defaultIconSize (128x128). |
|
static |
Gets an SVG QIcon type from a resource location using the application palette and the passed role for color.
resource | Location of the Icon. |
role | The color role to determine the color for the Icon. |
size | Size of the icon where when not passed default set to _defaultIconSize (128x128). |
|
static |
Gets an svg icon resource location from the pass enumerate value.
icon | Enumerate color value. |
|
static |
Gets a SVG using the passed color as the main color set in the 'svg' tags attribute.
When the color's alpha channel has been set to total image is made transparent since Qt does not support rgba(...) colors when rendering.
resource | Location of the image. |
color | HTML formed color string. Default is non valid color. |
size | Size of the square icon where when -1 the svg size is not set and thus not restricted (default). |