Class ItemObject
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
The ItemObject is used to manage the item object.
C#Copypublic class ItemObject
- Inheritance
-
objectItemObject
- Derived
Constructors
ItemObject(IntPtr, EvasObject)
Creates and initializes a new instance of the ItemObject class with parent object.
Declaration
C#Copyprotected ItemObject(IntPtr handle, EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | IntPtr |
EvasObject | parent | Parent EvasObject |
Declaration
C#Copyprotected ItemObject(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | IntPtr |
Properties
Declaration
C#Copypublic int Id { get; }
Property Value
Type | Description |
---|---|
int |
Declaration
C#Copypublic bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Declaration
C#Copypublic EvasObject Parent { get; }
Property Value
Type | Description |
---|---|
EvasObject |
Declaration
C#Copypublic virtual string Style { get; set; }
Property Value
Type | Description |
---|---|
string |
Declaration
C#Copypublic EvasObject TrackObject { get; }
Property Value
Type | Description |
---|---|
EvasObject |
Methods
AddSignalHandler(string, string, Func<string, string, bool>)
Adds a function for a signal emitted by the object item edje.
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic void Delete()
Declaration
C#Copypublic void DeletePartColor(string part)
Parameters
Type | Name | Description |
---|---|---|
string | part | The text part name. |
Declaration
C#Copypublic void EmitSignal(string emission, string source)
Parameters
Type | Name | Description |
---|---|---|
string | emission | The signal's name. |
string | source | The signal's source. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic string GetPartText(string part)
Parameters
Type | Name | Description |
---|---|---|
string | part | The text part name (null for the default label). |
Returns
Type | Description |
---|---|
string |
Declaration
C#Copyprotected virtual void OnInvalidate()
RemoveSignalHandler(string, string, Func<string, string, bool>)
Removes a signal-triggered function from the object item edje object.
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
SetPartContent(string, EvasObject)
Sets a content of an object item and deletes the old content.
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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
Declaration
C#Copypublic event EventHandler Deleted
Event Type
Type | Description |
---|---|
System.EventHandler |
Operators
Declaration
C#Copypublic static implicit operator IntPtr(ItemObject obj)
Parameters
Type | Name | Description |
---|---|---|
ItemObject | obj | ItemObject |
Returns
Type | Description |
---|---|
System.IntPtr |