51 void draw(CDrawContext *iContext)
override;
60 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
BitmapPtr getImage() const
The image to use.
Definition: ImageView.h:45
Inherit from this class to provide the factory for a custom view.
Definition: CustomViewCreator.h:1312
BitmapSPtr fImage
Definition: ImageView.h:54
This view simply renders an image (in addition to the background color).
Definition: ImageView.h:38
Class you should inherit from if you want to write a custom view.
Definition: CustomView.h:60
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: ImageView.h:60
void draw(CDrawContext *iContext) override
Definition: ImageView.cpp:26
SharedPointer< CBitmap > BitmapSPtr
Definition: Types.h:50
Definition: ImageView.h:57
Definition: CustomController.h:24
ImageView(const CRect &iSize)
Definition: ImageView.h:41
CBitmap * BitmapPtr
Definition: Types.h:49
void registerBitmapAttribute(std::string const &iName, typename BitmapAttribute::Getter iGetter, typename BitmapAttribute::Setter iSetter)
Registers a bitmap attribute with the given name and getter/setter.
Definition: CustomViewCreator.h:971
void setImage(BitmapPtr iImage)
attribute image
Definition: ImageView.h:48