Class Utility

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

This class is a static class for utility methods.

C#
Copy
public static class Utility
Inheritance
System.Object
Utility

Methods

View Source

AppendGlobalFontPath(String)

Appends a font path to the list of font paths used by the application.

Declaration
C#
Copy
public static void AppendGlobalFontPath(string path)
Parameters
Type Name Description
System.String path

The new font path.

API Level: preview
View Source

ClearEvasGlobalFontPath()

Removes all font paths loaded into the memory by evas_font_path_app_* APIs for the application.

Declaration
C#
Copy
public static void ClearEvasGlobalFontPath()
API Level: preview
View Source

DeleteEdjeTextClass(String)

Delete the text class.

Declaration
C#
Copy
public static void DeleteEdjeTextClass(string textClass)
Parameters
Type Name Description
System.String textClass

The text class name.

API Level: preview
View Source

FontReinit()

Reinitialize FontConfig.

Declaration
C#
Copy
public static void FontReinit()
API Level: preview
View Source

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#
Copy
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
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
View Source

GetEdjeTextClass(String, out String, out Int32)

Gets the Edje text class.

Declaration
C#
Copy
public 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
View Source

PremulityplyEvasColorByAlpha(Int32, ref Int32, ref Int32, ref Int32)

Pre-multiplies the RGB triplet by an alpha factor.

Declaration
C#
Copy
public 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
View Source

PrependEvasGlobalFontPath(String)

Prepends a font path to the list of font paths used by the application.

Declaration
C#
Copy
public static void PrependEvasGlobalFontPath(string path)
Parameters
Type Name Description
System.String path

The new font path.

API Level: preview
View Source

ProcessEdjeMessageSignal()

Processes all the queued up edje messages. This function triggers the processing of messages addressed to any (alive) edje objects.

Declaration
C#
Copy
public static void ProcessEdjeMessageSignal()
API Level: preview
View Source

SetEdjeColorClass(String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Sets the Edje color class.

Declaration
C#
Copy
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
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
View Source

SetEdjeTextClass(String, String, Int32)

Sets the Edje text class.

Declaration
C#
Copy
public 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
View Source

UnPremulityplyEvasColorByAlpha(Int32, ref Int32, ref Int32, ref Int32)

Undoes pre-multiplication of the RGB triplet by an alpha factor.

Declaration
C#
Copy
public 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.

API Level: preview