Class ItemObject

Definition

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

The ItemObject is used to manage the item object.

C#
Copy
public class ItemObject
Inheritance
System.Object
ItemObject
Derived

Constructors

View Source

ItemObject(IntPtr)

Creates and initializes a new instance of the ItemObject class.

Declaration
C#
Copy
protected ItemObject(IntPtr handle)
Parameters
Type Name Description
System.IntPtr handle

IntPtr

API Level: preview
View Source

ItemObject(IntPtr, EvasObject)

Creates and initializes a new instance of the ItemObject class with parent object.

Declaration
C#
Copy
protected ItemObject(IntPtr handle, EvasObject parent)
Parameters
Type Name Description
System.IntPtr handle

IntPtr

EvasObject parent

Parent EvasObject

API Level: preview

Properties

View Source

Id

Gets the ID of the item object.

Declaration
C#
Copy
public int Id { get; }
Property Value
Type Description
System.Int32
API Level: preview
View Source

IsEnabled

Sets or gets whether the item object is enabled.

Declaration
C#
Copy
public bool IsEnabled { get; set; }
Property Value
Type Description
System.Boolean
API Level: preview
View Source

Parent

Gets the parent object for ItemObject.

Declaration
C#
Copy
public EvasObject Parent { get; }
Property Value
Type Description
EvasObject
API Level: preview
View Source

Style

Sets or gets the style of the item.

Declaration
C#
Copy
public virtual string Style { get; set; }
Property Value
Type Description
System.String
API Level: preview
View Source

TrackObject

Gets the track object of the item.

Declaration
C#
Copy
public EvasObject TrackObject { get; }
Property Value
Type Description
EvasObject
API Level: preview

Methods

View Source

AddSignalHandler(String, String, Func<String, String, Boolean>)

Adds a function for a signal emitted by the object item edje.

Declaration
C#
Copy
public void AddSignalHandler(string emission, string source, Func<string, string, bool> func)
Parameters
Type Name Description
System.String emission

The signal's name.

System.String source

The signal's source.

System.Func<System.String, System.String, System.Boolean> func

The function to be executed when the signal is emitted.

API Level: preview
View Source

Delete()

Deletes the item object.

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

DeletePartColor(String)

Deletes the color of the object item.

Declaration
C#
Copy
public void DeletePartColor(string part)
Parameters
Type Name Description
System.String part

The text part name.

API Level: preview
View Source

EmitSignal(String, String)

Send a signal to the edje object of the widget item.

Declaration
C#
Copy
public void EmitSignal(string emission, string source)
Parameters
Type Name Description
System.String emission

The signal's name.

System.String source

The signal's source.

API Level: preview
View Source

GetPartColor(String)

Gets the color of the object item.

Declaration
C#
Copy
public Color GetPartColor(string part)
Parameters
Type Name Description
System.String part

The text part name (null for the default label).

Returns
Type Description
Color

The color of an object item.

API Level: preview
View Source

GetPartText(String)

Gets the label of the object item.

Declaration
C#
Copy
public string GetPartText(string part)
Parameters
Type Name Description
System.String part

The text part name (null for the default label).

Returns
Type Description
System.String
API Level: preview
View Source

OnInvalidate()

OnInvalidate of the object item.

Declaration
C#
Copy
protected virtual void OnInvalidate()
API Level: preview
View Source

RemoveSignalHandler(String, String, Func<String, String, Boolean>)

Removes a signal-triggered function from the object item edje object.

Declaration
C#
Copy
public void RemoveSignalHandler(string emission, string source, Func<string, string, bool> func)
Parameters
Type Name Description
System.String emission

The signal's name.

System.String source

The signal's source.

System.Func<System.String, System.String, System.Boolean> func

The function to be executed when the signal is emitted.

API Level: preview
View Source

SetPartColor(String, Color)

Sets the color of the object item.

Declaration
C#
Copy
public void SetPartColor(string part, Color color)
Parameters
Type Name Description
System.String part

The text part name (null for the default label).

Color color

The color.

API Level: preview
View Source

SetPartContent(String, EvasObject)

Sets a content of an object item and deletes the old content.

Declaration
C#
Copy
public void SetPartContent(string part, EvasObject content)
Parameters
Type Name Description
System.String part

The content part name (null for the default content).

EvasObject content

The content of the object item.

API Level: preview
View Source

SetPartContent(String, EvasObject, Boolean)

. Sets a content of the object item.

Declaration
C#
Copy
public void SetPartContent(string part, EvasObject content, bool preserveOldContent)
Parameters
Type Name Description
System.String part

The content part name (null for the default content)

EvasObject content

The content of the object item.

System.Boolean preserveOldContent

Judge whether to delete the old content.

API Level: preview
View Source

SetPartText(String, String)

Sets the label of the object item.

Declaration
C#
Copy
public void SetPartText(string part, string text)
Parameters
Type Name Description
System.String part

The text part name (null for the default label).

System.String text

Text of the label.

API Level: preview

Events

View Source

Deleted

Deleted will be triggered when the item object is deleted.

Declaration
C#
Copy
public event EventHandler Deleted
Event Type
Type Description
System.EventHandler
API Level: preview

Operators

View Source

Implicit(ItemObject to IntPtr)

Gets the handle of the object item.

Declaration
C#
Copy
public static implicit operator IntPtr(ItemObject obj)
Parameters
Type Name Description
ItemObject obj

ItemObject

Returns
Type Description
System.IntPtr
API Level: preview

Extension Methods