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 class State // Possible control states 
    {
        Normal,
        Hovered,
        Disabled
    };

    enum class ItemState // Possible states of items(images) 
    {
        Normal,
        Hovered,
        Selected,
        SelectedHovered,
        SelectedDisabled,
        Disabled
    };
public:
    RectF getClientRect() override;
    RectF getRenderRect() override;

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

    IImageList *getImageList() override;
    int getImageCount() override;
    Image *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;

    bool DeleteSelectedImages() override;

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

    State getState(); // Return control state 
    ItemState 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 
    BorderColor 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 ItemState state) const;
    BorderColor getItemBorderColor(const ItemState state) const;
    Color getItemBackgroundColor(const ItemState state) const;
    Gradient *getItemBackgroundGradient(const ItemState state);
    Color getItemTextColor(const ItemState state) const;
    Color getItemTextShadowColor(const ItemState state) const;
    PointF getItemTextShadowShift(const ItemState state) const;
    int getItemTextShadowRadius(const ItemState 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 BorderColor &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 ItemState state, const RectF &value);
    bool setItemBorderColor(const ItemState state, const BorderColor &value);
    bool setItemBackgroundColor(const ItemState state, const Color &value);
    bool setItemTextColor(const ItemState state, const Color &value);
    bool setItemTextShadowColor(const ItemState state, const Color &value);
    bool setItemTextShadowShift(const ItemState state, const PointF &value);
    bool setItemTextShadowRadius(const ItemState state, const int value);
};
Namespace: nitisa::standard
Include: Standard/Controls/ImageListEditor/ImageListEditor.h