Class ItemObject

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll

The ItemObject is used to manage the item object.

C#
Copy
[Obsolete("This has been deprecated in API12")] public class ItemObject
Inheritance
object
ItemObject
Derived

Constructors

View Source

ItemObject(IntPtr, EvasObject)

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

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] protected ItemObject(IntPtr handle, EvasObject parent)
Parameters
Type Name Description
System.IntPtr handle

IntPtr

EvasObject parent

Parent EvasObject

View Source

ItemObject(IntPtr)

Creates and initializes a new instance of the ItemObject class.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] protected ItemObject(IntPtr handle)
Parameters
Type Name Description
System.IntPtr handle

IntPtr

Properties

View Source

Id

Gets the ID of the item object.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public int Id { get; }
Property Value
Type Description
int
View Source

IsEnabled

Sets or gets whether the item object is enabled.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public bool IsEnabled { get; set; }
Property Value
Type Description
bool
View Source

Parent

Gets the parent object for ItemObject.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public EvasObject Parent { get; }
Property Value
Type Description
EvasObject
View Source

Style

Sets or gets the style of the item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public virtual string Style { get; set; }
Property Value
Type Description
string
View Source

TrackObject

Gets the track object of the item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public EvasObject TrackObject { get; }
Property Value
Type Description
EvasObject

Methods

View Source

AddSignalHandler(string, string, Func<string, string, bool>)

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

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void AddSignalHandler(string emission, string source, Func<string, string, bool> func)
Parameters
Type Name Description
string emission

The signal's name.

string source

The signal's source.

System.Func<T1, T2, TResult><string, string, bool> func

The function to be executed when the signal is emitted.

View Source

Delete()

Deletes the item object.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void Delete()
View Source

DeletePartColor(string)

Deletes the color of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void DeletePartColor(string part)
Parameters
Type Name Description
string part

The text part name.

View Source

EmitSignal(string, string)

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

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void EmitSignal(string emission, string source)
Parameters
Type Name Description
string emission

The signal's name.

string source

The signal's source.

View Source

GetPartColor(string)

Gets the color of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public Color GetPartColor(string part)
Parameters
Type Name Description
string part

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

Returns
Type Description
Color

The color of an object item.

View Source

GetPartText(string)

Gets the label of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public string GetPartText(string part)
Parameters
Type Name Description
string part

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

Returns
Type Description
string
View Source

OnInvalidate()

OnInvalidate of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] protected virtual void OnInvalidate()
View Source

RemoveSignalHandler(string, string, Func<string, string, bool>)

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

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void RemoveSignalHandler(string emission, string source, Func<string, string, bool> func)
Parameters
Type Name Description
string emission

The signal's name.

string source

The signal's source.

System.Func<T1, T2, TResult><string, string, bool> func

The function to be executed when the signal is emitted.

View Source

SetPartColor(string, Color)

Sets the color of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void SetPartColor(string part, Color color)
Parameters
Type Name Description
string part

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

Color color

The color.

View Source

SetPartContent(string, EvasObject, bool)

. Sets a content of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void SetPartContent(string part, EvasObject content, bool preserveOldContent)
Parameters
Type Name Description
string part

The content part name (null for the default content)

EvasObject content

The content of the object item.

bool preserveOldContent

Judge whether to delete the old content.

View Source

SetPartContent(string, EvasObject)

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

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void SetPartContent(string part, EvasObject content)
Parameters
Type Name Description
string part

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

EvasObject content

The content of the object item.

View Source

SetPartText(string, string)

Sets the label of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public void SetPartText(string part, string text)
Parameters
Type Name Description
string part

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

string text

Text of the label.

Events

View Source

Deleted

Deleted will be triggered when the item object is deleted.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public event EventHandler Deleted
Event Type
Type Description
System.EventHandler

Operators

View Source

implicit operator IntPtr(ItemObject)

Gets the handle of the object item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public static implicit operator IntPtr(ItemObject obj)
Parameters
Type Name Description
ItemObject obj

ItemObject

Returns
Type Description
System.IntPtr

Extension Methods