IPopupMenu


Describes minimum required functionality from PopupMenu control.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class IPopupMenu :public virtual IControl, public virtual IComponentItemTree
{
public:
    virtual int getItemCount(const bool total = false) = 0; // Return item count(only direct or entire hierarchy) 
    virtual IListItem *getItem(const int index) = 0; // Return item by index 

    virtual bool Add(IListItem *item) = 0; // Add item 
    virtual bool Insert(IListItem *item, const int before) = 0; // Insert item before specified one 
    virtual bool Delete(const int index) = 0; // Delete item by index 
    virtual bool Clear() = 0; // Delete all items 

    virtual bool Show(const PointF &position) = 0; // Show at specified position 
    virtual bool Hide() = 0; // Hide 
};
Namespace: nitisa::standard
Include: Standard/Controls/IPopupMenu.h