49 void draw(CDrawContext *iContext)
override;
96 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
void setImage(BitmapPtr iImage)
attribute image
Definition: ParamImageView.h:68
Inherit from this class to provide the factory for a custom view.
Definition: CustomViewCreator.h:1314
bool fInverse
Definition: ParamImageView.h:90
BitmapPtr getImage() const
The image to use.
Definition: ParamImageView.h:65
bool getInverse() const
Inverses the frames (last frame is first frame, etc...)
Definition: ParamImageView.h:71
BitmapSPtr fImage
Definition: ParamImageView.h:89
Definition: ParamImageView.h:93
SharedPointer< CBitmap > BitmapSPtr
Definition: Types.h:50
void draw(CDrawContext *iContext) override
Definition: ParamImageView.cpp:26
void setInverse(bool iInverse)
Attribute inverse
Definition: ParamImageView.h:74
ParamImageView(const CRect &iSize)
Definition: ParamImageView.h:46
This view renders a param value as an image (the ParamDisplayView view renders a param value as a str...
Definition: ParamImageView.h:43
void registerBooleanAttribute(std::string const &iName, typename BooleanAttribute::Getter iGetter, typename BooleanAttribute::Setter iSetter)
Registers a boolean attribute with the given name and getter/setter.
Definition: CustomViewCreator.h:1099
Definition: CustomController.h:24
bool sizeToFit() override
Use the image and number of frames to size the view appropriately.
Definition: ParamImageView.cpp:70
void registerParameters() override
Registers the optional parameter using getControlTag() as its id.
Definition: ParamImageView.cpp:45
Specialization of TCustomControlView for discrete values.
Definition: CustomControlView.h:152
int32 getFrames() const
Returns the number of frames the image has (which is defined by the [number of steps + 1] the underly...
Definition: ParamImageView.cpp:57
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: ParamImageView.h:96
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