class ui.ListWidget

class ListWidget: ui.Widget {
    // fields

    size_t readonly m_itemCount;

    // properties

    string_t autoget property m_placeholderText;
    bool autoget property m_isAlternatingRowColors;
    bool autoget property m_isCheckable;
    string_t indexed property m_itemText(size_t index);
    variant_t indexed property m_itemData(size_t index);
    string_t indexed property m_itemToolTip(size_t index);
    bool indexed property m_isItemChecked(size_t index);
    size_t bindable autoget property m_currentIndex;
    string_t const bindable property m_currentText;
    variant_t bindable property m_currentData;

    // events

    event m_onReturnPressed();
    event m_onDoubleClicked();

    event m_onItemCheckStateChanged(
        size_t index,
        bool isChecked
    );

    // construction

    construct();
    destruct();

    // methods

    size_t addItem(
        string_t text,
        variant_t data = null
    );

    size_t addItemSetCurrent(
        string_t text,
        variant_t data = null
    );

    size_t insertItem(
        size_t index,
        string_t text,
        variant_t data = null
    );

    size_t insertItemSetCurrent(
        size_t index,
        string_t text,
        variant_t data = null
    );

    bool removeItem(size_t index);

    void setItems(
        ui.ListItem const* itemArray,
        size_t count
    );

    void clear();
    size_t findData(variant_t data);
};

Inherited Members

public:
    // properties

    int autoget property m_minimumWidth;
    int autoget property m_minimumHeight;
    int autoget property m_maximumWidth;
    int autoget property m_maximumHeight;
    ui.SizePolicy autoget property m_horizontalSizePolicy;
    ui.SizePolicy autoget property m_verticalSizePolicy;
    int autoget property m_horizontalStretch;
    int autoget property m_verticalStretch;
    bool autoget property m_isVisible;
    bool autoget property m_isEnabled;
    string_t autoget property m_toolTip;
    string_t autoget property m_styleSheet;

    // methods

    void setFocus();