20 #include <vstgui4/vstgui/lib/controls/cbuttons.h> 29 using namespace Params;
46 virtual void setTitleTag(int32_t iValue);
57 void setMouseEnabled(
bool bEnable)
override;
60 void draw(CDrawContext *context)
override;
63 void registerParameters()
override;
66 void valueChanged()
override;
72 virtual void unClick();
75 virtual void onClick();
106 virtual void drawButtonText(CDrawContext *context);
111 virtual void drawButtonImage(CDrawContext *context);
115 int32_t fTitleTag{-1};
128 bool fImageHasDisabledState{
false};
137 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
GradientSPtr fDisabledGradient
Definition: TextButtonView.h:119
void setOnClickListener(OnClickListener iListener)
Definition: TextButtonView.h:78
bool getImageHasDisabledState() const
Definition: TextButtonView.h:99
Definition: CustomViewCreator.h:1049
SharedPointer< CBitmap > BitmapSPtr
Definition: Types.h:50
CColor const & getDisabledTextColor() const
Definition: TextButtonView.h:50
CBitmap * BitmapPtr
Definition: Types.h:49
virtual void setTitleTag(int32_t iValue)
Definition: TextButtonView.cpp:51
BitmapPtr getImage() const
Definition: TextButtonView.h:94
Definition: TextButtonView.h:37
std::function< void()> OnClickListener
Definition: TextButtonView.h:40
SharedPointer< CGradient > GradientSPtr
Definition: Types.h:58
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: TextButtonView.h:137
CColor fDisabledTextColor
Definition: TextButtonView.h:118
Definition: CustomView.h:187
void setImage(BitmapPtr iImage)
Definition: TextButtonView.h:95
void setImageHasDisabledState(bool iValue)
Definition: TextButtonView.h:100
virtual void setDisabledGradient(GradientPtr iGradient)
Definition: TextButtonView.h:55
virtual void setDisabledTextColor(CColor const &iColor)
Definition: TextButtonView.h:51
TextButtonView(const CRect &iSize)
Definition: TextButtonView.h:43
GradientPtr getDisabledGradient() const
Definition: TextButtonView.h:54
int32_t getTitleTag() const
Definition: TextButtonView.h:47
Definition: TextButtonView.h:134
CGradient * GradientPtr
Definition: Types.h:57