Class Utility
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
This class is a static class for utility methods.
public static class Utility
- Inheritance
-
objectUtility
Methods
View SourceAppendGlobalFontPath(string)
Appends a font path to the list of font paths used by the application.
Declaration
public static void AppendGlobalFontPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The new font path. |
ClearEvasGlobalFontPath()
Removes all font paths loaded into the memory by evas_font_path_app_* APIs for the application.
Declaration
public static void ClearEvasGlobalFontPath()
DeleteEdjeTextClass(string)
Delete the text class.
Declaration
public static void DeleteEdjeTextClass(string textClass)
Parameters
Type | Name | Description |
---|---|---|
string | textClass | The text class name. |
GetEdjeColorClass(string, out int, out int, out int, out int, out int, out int, out int, out int, out int, out int, out int, out int)
Gets the Edje color class.
Declaration
public static bool GetEdjeColorClass(string colorClass, out int red, out int green, out int blue, out int alpha, out int outlineRed, out int outlineGreen, out int outlineBlue, out int outlineAlpha, out int shadowRed, out int shadowGreen, out int shadowBlue, out int shadowAlpha)
Parameters
Type | Name | Description |
---|---|---|
string | colorClass | Color class. |
int | red | Object red value. |
int | green | Object green value. |
int | blue | Object blue value. |
int | alpha | Object alpha value. |
int | outlineRed | Outline red value. |
int | outlineGreen | Outline green value. |
int | outlineBlue | Outline blue value. |
int | outlineAlpha | Outline alpha value. |
int | shadowRed | Shadow red value. |
int | shadowGreen | Shadow green value. |
int | shadowBlue | Shadow blue value. |
int | shadowAlpha | Shadow alpha value. |
Returns
Type | Description |
---|---|
bool |
GetEdjeTextClass(string, out string, out int)
Gets the Edje text class.
Declaration
public static bool GetEdjeTextClass(string textClass, out string font, out int size)
Parameters
Type | Name | Description |
---|---|---|
string | textClass | The text class name. |
string | font | The font name. |
int | size | The font size. |
Returns
Type | Description |
---|---|
bool | True on success, or False on error. |
PremulityplyEvasColorByAlpha(int, ref int, ref int, ref int)
Pre-multiplies the RGB triplet by an alpha factor.
Declaration
public static void PremulityplyEvasColorByAlpha(int alpha, ref int red, ref int green, ref int blue)
Parameters
Type | Name | Description |
---|---|---|
int | alpha | The alpha factor. |
int | red | The red component of the color. |
int | green | The green component of the color. |
int | blue | The blue component of the color. |
PrependEvasGlobalFontPath(string)
Prepends a font path to the list of font paths used by the application.
Declaration
public static void PrependEvasGlobalFontPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The new font path. |
ProcessEdjeMessageSignal()
Processes all the queued up edje messages. This function triggers the processing of messages addressed to any (alive) edje objects.
Declaration
public static void ProcessEdjeMessageSignal()
SetEdjeColorClass(string, int, int, int, int, int, int, int, int, int, int, int, int)
Sets the Edje color class.
Declaration
public static bool SetEdjeColorClass(string colorClass, int red, int green, int blue, int alpha, int outlineRed, int outlineGreen, int outlineBlue, int outlineAlpha, int shadowRed, int shadowGreen, int shadowBlue, int shadowAlpha)
Parameters
Type | Name | Description |
---|---|---|
string | colorClass | Color class. |
int | red | Object red value. |
int | green | Object green value. |
int | blue | Object blue value. |
int | alpha | Object alpha value. |
int | outlineRed | Outline red value. |
int | outlineGreen | Outline green value. |
int | outlineBlue | Outline blue value. |
int | outlineAlpha | Outline alpha value. |
int | shadowRed | Shadow red value. |
int | shadowGreen | Shadow green value. |
int | shadowBlue | Shadow blue value. |
int | shadowAlpha | Shadow alpha value. |
Returns
Type | Description |
---|---|
bool |
SetEdjeTextClass(string, string, int)
Sets the Edje text class.
Declaration
public static bool SetEdjeTextClass(string textClass, string font, int size)
Parameters
Type | Name | Description |
---|---|---|
string | textClass | The text class name. |
string | font | The font name. |
int | size | The font size. |
Returns
Type | Description |
---|---|
bool | True on success, or False on error. |
UnPremulityplyEvasColorByAlpha(int, ref int, ref int, ref int)
Undoes pre-multiplication of the RGB triplet by an alpha factor.
Declaration
public static void UnPremulityplyEvasColorByAlpha(int alpha, ref int red, ref int green, ref int blue)
Parameters
Type | Name | Description |
---|---|---|
int | alpha | The alpha factor. |
int | red | The red component of the color. |
int | green | The green component of the color. |
int | blue | The blue component of the color. |