20 #include <vstgui4/vstgui/lib/controls/cbuttons.h> 29 using namespace Params;
45 virtual void setTitleTag(int32_t iValue);
56 void setMouseEnabled(
bool bEnable)
override;
59 void draw(CDrawContext *context)
override;
62 void registerParameters()
override;
65 void valueChanged()
override;
71 virtual void unClick();
74 virtual void onClick();
83 int32_t fTitleTag{-1};
99 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
GradientSPtr fDisabledGradient
Definition: TextButtonView.h:87
void setOnClickListener(OnClickListener iListener)
Definition: TextButtonView.h:77
Definition: CustomViewCreator.h:981
CColor const & getDisabledTextColor() const
Definition: TextButtonView.h:49
virtual void setTitleTag(int32_t iValue)
Definition: TextButtonView.cpp:51
Definition: TextButtonView.h:36
std::function< void()> OnClickListener
Definition: TextButtonView.h:39
SharedPointer< CGradient > GradientSPtr
Definition: Types.h:58
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: TextButtonView.h:99
CColor fDisabledTextColor
Definition: TextButtonView.h:86
Definition: CustomView.h:187
virtual void setDisabledGradient(GradientPtr iGradient)
Definition: TextButtonView.h:54
virtual void setDisabledTextColor(CColor const &iColor)
Definition: TextButtonView.h:50
TextButtonView(const CRect &iSize)
Definition: TextButtonView.h:42
GradientPtr getDisabledGradient() const
Definition: TextButtonView.h:53
int32_t getTitleTag() const
Definition: TextButtonView.h:46
Definition: TextButtonView.h:96
CGradient * GradientPtr
Definition: Types.h:57