Class ItemObject

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    The ItemObject is used to manage the item object.

    public class ItemObject
    Inheritance
    object
    ItemObject
    Derived
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ColorSelectorItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    ContextPopupItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    FlipSelectorItem
    GenItem
    GenItem
    GenItem
    GenItem
    GenItem
    GenItem
    GenItem
    GenItem
    GenItem
    HoverselItem
    HoverselItem
    HoverselItem
    HoverselItem
    HoverselItem
    HoverselItem
    HoverselItem
    HoverselItem
    HoverselItem
    IndexItem
    IndexItem
    IndexItem
    IndexItem
    IndexItem
    IndexItem
    IndexItem
    IndexItem
    IndexItem
    ListItem
    ListItem
    ListItem
    ListItem
    ListItem
    ListItem
    ListItem
    ListItem
    ListItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    MultiButtonEntryItem
    NaviItem
    NaviItem
    NaviItem
    NaviItem
    NaviItem
    NaviItem
    NaviItem
    NaviItem
    NaviItem
    PopupItem
    PopupItem
    PopupItem
    PopupItem
    PopupItem
    PopupItem
    PopupItem
    PopupItem
    PopupItem
    ToolbarItem
    ToolbarItem
    ToolbarItem
    ToolbarItem
    ToolbarItem
    ToolbarItem
    ToolbarItem
    ToolbarItem
    ToolbarItem

    Constructors

    View Source

    ItemObject(IntPtr)

    Creates and initializes a new instance of the ItemObject class.

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

    IntPtr

    Properties

    View Source

    Id

    Gets the ID of the item object.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    int
    View Source

    IsEnabled

    Sets or gets whether the item object is enabled.

    Declaration
    public bool IsEnabled { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Style

    Sets or gets the style of the item.

    Declaration
    public virtual string Style { get; set; }
    Property Value
    Type Description
    string
    View Source

    TrackObject

    Gets the track object of the item.

    Declaration
    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
    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
    public void Delete()
    View Source

    DeletePartColor(string)

    Deletes the color of the object item.

    Declaration
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    public static implicit operator IntPtr(ItemObject obj)
    Parameters
    Type Name Description
    ItemObject obj

    ItemObject

    Returns
    Type Description
    System.IntPtr

    Extension Methods

    ItemObjectExtension.ClearHighlight(ItemObject)
    ItemObjectExtension.GrabHighlight(ItemObject)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX