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