class Core::Portable::ImageView

An image view renders a static bitmap.

#include <corecontrols.h>

class ImageView:
    public Core::Portable::ContainerView,
    public Core::Portable::IParamObserver
{
public:
    // methods

    PROPERTY_VARIABLE(BitmapReference, image, Image);
    isColorize PROPERTY_VARIABLE(float, imageAlpha, ImageAlpha) const;
    virtual void draw(const DrawEvent& e);
    virtual void connect(void* object);
    virtual CStringPtr getConnectionType() const;
};

Inherited Members

public:
    // typedefs

    typedef int32 TypeID;

    // fields

    static const TypeID kTypeID =  'IPaO';

    // methods

    virtual void addView(VC* view);
    virtual void removeView(VC* view);
    const ConstVector<VC*>& getChildren() const;
    void draw(const DrawEvent& e);
    DECLARE_CORE_CLASS('CntV', ContainerView, View) const;
    PROPERTY_POINTER(IViewOwner, owner, Owner);
    virtual void resizeToChildren();

    View* findView(
        const Point& where,
        bool deep = true,
        const ViewFilter* filter = nullptr
    ) const;

    View* findView(const ViewFilter& filter, bool deep = true) const;

    template <class T>
    T* findView(CStringPtr name, bool deep = true) const;

    bool isChildView(const View* view, bool deep = true) const;
    void addView(View* view);
    void removeView(View* view);
    virtual ContainerView* asContainer();
    bool onTouchInput(const TouchEvent& e);
    virtual void onIdle();
    virtual void* castTo(TypeID typeId) = 0;
    virtual void paramChanged(Parameter* p, int msg) = 0;