CImageListEditor



Implements ImageListEditor control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CImageListEditor :public virtual IImageListEditor, public CControl
{
public:
    enum STATE // Possible control states 
    {
        stNormal,
        stHovered,
        stDisabled
    };

    enum ITEM_STATE // Possible states of items(images) 
    {
        istNormal,
        istHovered,
        istSelected,
        istSelectedHovered,
        istSelectedDisabled,
        istDisabled
    };
public:
    RectF getClientRect() override;
    RectF getRenderRect() override;

    IImageList *getImageList() override;
    int getImageCount() override;
    Bitmap *getImage(const int index) override;
    bool isImageSelected(const int index) override;

    bool setDPI(const Point &value) override;
    bool setImageList(IImageList *value) override;
    bool setImageSelected(const int index, const bool value) override;

    // IControl methods 
    void Refresh(const bool refresh_children) override;

    bool DeleteSelectedImages() override;

    CImageListEditor();
    CImageListEditor(IControl *parent);
    CImageListEditor(IForm *parent);
    ~CImageListEditor() override;

    STATE getState(); // Return control state 
    ITEM_STATE getItemState(const int index); // Return specified item state 
    // Return layout properties 
    RectF getBorderWidth() const;
    RectF getBorderRadius() const;
    RectF getPadding() const;
    float getItemDistance() const; // Return distance between items 
    RectC getBorderColor(const STATE state) const;
    Color getBackgroundColor(const STATE state) const;
    Gradient *getBackgroundGradient(const STATE state);
    Color getShadowColor(const STATE state) const;
    PointF getShadowShift(const STATE state) const;
    int getShadowRadius(const STATE state) const;
    RectF getItemBorderWidth(const ITEM_STATE state) const;
    RectC getItemBorderColor(const ITEM_STATE state) const;
    Color getItemBackgroundColor(const ITEM_STATE state) const;
    Gradient *getItemBackgroundGradient(const ITEM_STATE state);
    Color getItemTextColor(const ITEM_STATE state) const;
    Color getItemTextShadowColor(const ITEM_STATE state) const;
    PointF getItemTextShadowShift(const ITEM_STATE state) const;
    int getItemTextShadowRadius(const ITEM_STATE state) const;

    bool setScroll(IBuiltInScroll *value); // Assign new built-in scroll 
    // Set layout properties 
    bool setBorderWidth(const RectF &value);
    bool setBorderRadius(const RectF &value);
    bool setPadding(const RectF &value);
    bool setItemDistance(const float value); // Set distance between items
    bool setBorderColor(const STATE state, const RectC &value);
    bool setBackgroundColor(const STATE state, const Color &value);
    bool setShadowColor(const STATE state, const Color &value);
    bool setShadowShift(const STATE state, const PointF &value);
    bool setShadowRadius(const STATE state, const int value);
    bool setItemBorderWidth(const ITEM_STATE state, const RectF &value);
    bool setItemBorderColor(const ITEM_STATE state, const RectC &value);
    bool setItemBackgroundColor(const ITEM_STATE state, const Color &value);
    bool setItemTextColor(const ITEM_STATE state, const Color &value);
    bool setItemTextShadowColor(const ITEM_STATE state, const Color &value);
    bool setItemTextShadowShift(const ITEM_STATE state, const PointF &value);
    bool setItemTextShadowRadius(const ITEM_STATE state, const int value);
};
Namespace: nitisa::standard
Include: Standard/Controls/ImageListEditor/ImageListEditor.h