Class ItemObject
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The ItemObject is used to manage the item object.
public class ItemObject
- Inheritance
-
ItemObject
- Derived
Constructors
View SourceItemObject(IntPtr)
Creates and initializes a new instance of the ItemObject class.
Declaration
protected ItemObject(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle | IntPtr |
API Level: preview
View SourceItemObject(IntPtr, EvasObject)
Creates and initializes a new instance of the ItemObject class with parent object.
Declaration
protected ItemObject(IntPtr handle, EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle | IntPtr |
EvasObject | parent | Parent EvasObject |
API Level: preview
Properties
View SourceId
Gets the ID of the item object.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceIsEnabled
Sets or gets whether the item object is enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: preview
View SourceParent
Gets the parent object for ItemObject.
Declaration
public EvasObject Parent { get; }
Property Value
Type | Description |
---|---|
EvasObject |
API Level: preview
View SourceStyle
Sets or gets the style of the item.
Declaration
public virtual string Style { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: preview
View SourceTrackObject
Gets the track object of the item.
Declaration
public EvasObject TrackObject { get; }
Property Value
Type | Description |
---|---|
EvasObject |
API Level: preview
Methods
View SourceAddSignalHandler(String, String, Func<String, String, Boolean>)
Adds a function for a signal emitted by the object item edje.
Declaration
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. |
Func<String, String, Boolean> | func | The function to be executed when the signal is emitted. |
API Level: preview
View SourceDelete()
Deletes the item object.
Declaration
public void Delete()
API Level: preview
View SourceDeletePartColor(String)
Deletes the color of the object item.
Declaration
public void DeletePartColor(string part)
Parameters
Type | Name | Description |
---|---|---|
String | part | The text part name. |
API Level: preview
View SourceEmitSignal(String, String)
Send a signal to the edje object of the widget item.
Declaration
public void EmitSignal(string emission, string source)
Parameters
Type | Name | Description |
---|---|---|
String | emission | The signal's name. |
String | source | The signal's source. |
API Level: preview
View SourceGetPartColor(String)
Gets the color of the object item.
Declaration
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. |
API Level: preview
View SourceGetPartText(String)
Gets the label of the object item.
Declaration
public string GetPartText(string part)
Parameters
Type | Name | Description |
---|---|---|
String | part | The text part name (null for the default label). |
Returns
Type | Description |
---|---|
String |
API Level: preview
View SourceOnInvalidate()
OnInvalidate of the object item.
Declaration
protected virtual void OnInvalidate()
API Level: preview
View SourceRemoveSignalHandler(String, String, Func<String, String, Boolean>)
Removes a signal-triggered function from the object item edje object.
Declaration
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. |
Func<String, String, Boolean> | func | The function to be executed when the signal is emitted. |
API Level: preview
View SourceSetPartColor(String, Color)
Sets the color of the object item.
Declaration
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. |
API Level: preview
View SourceSetPartContent(String, EvasObject)
Sets a content of an object item and deletes the old content.
Declaration
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. |
API Level: preview
View SourceSetPartContent(String, EvasObject, Boolean)
. Sets a content of the object item.
Declaration
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. |
Boolean | preserveOldContent | Judge whether to delete the old content. |
API Level: preview
View SourceSetPartText(String, String)
Sets the label of the object item.
Declaration
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. |
API Level: preview
Events
View SourceDeleted
Deleted will be triggered when the item object is deleted.
Declaration
public event EventHandler Deleted
Event Type
Type | Description |
---|---|
EventHandler |
API Level: preview
Operators
View SourceImplicit(ItemObject to IntPtr)
Gets the handle of the object item.
Declaration
public static implicit operator IntPtr(ItemObject obj)
Parameters
Type | Name | Description |
---|---|---|
ItemObject | obj | ItemObject |
Returns
Type | Description |
---|---|
IntPtr |