27using namespace VSTGUI;
65 void draw(CDrawContext *iContext)
override;
134 void setViewSize(
const CRect &rect,
bool invalid =
true)
override;
143 CMouseEventResult
onMouseDown(CPoint &where,
const CButtonState &buttons)
override;
146 CMouseEventResult
onMouseMoved(CPoint &where,
const CButtonState &buttons)
override;
149 CMouseEventResult
onMouseUp(CPoint &where,
const CButtonState &buttons)
override;
314 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
Represents an optional parameter (Jmb, Vst or no param at all).
Definition GUIOptionalParam.h:50
Definition DrawContext.h:81
CustomViewCreator(char const *iViewName=nullptr, char const *iDisplayName=nullptr, char const *iBaseViewName=VSTGUI::UIViewCreator::kCView)
Definition CustomViewCreator.h:1318
Class you should inherit from if you want to write a custom view.
Definition CustomView.h:62
CustomView(const CRect &iSize)
Definition CustomView.cpp:30
void markDirty()
Marks this view dirty which will (at the appropriate time in the rendering lifecycle) trigger a call ...
Definition CustomView.h:178
void registerColorAttribute(std::string const &iName, typename ColorAttribute::Getter iGetter, typename ColorAttribute::Setter iSetter)
Definition CustomViewCreator.h:952
void registerRangeAttribute(std::string const &iName, typename RangeAttribute::Getter iGetter, typename RangeAttribute::Setter iSetter)
Definition CustomViewCreator.h:1002
void registerBooleanAttribute(std::string const &iName, typename BooleanAttribute::Getter iGetter, typename BooleanAttribute::Setter iSetter)
Definition CustomViewCreator.h:1100
void registerTagAttribute(std::string const &iName, typename TagAttribute::Getter iGetter, typename TagAttribute::Setter iSetter)
Definition CustomViewCreator.h:1049
void registerListAttribute(std::string const &iName, typename ListAttribute< T >::Getter iGetter, typename ListAttribute< T >::Setter iSetter, AttrValInitList< T > const &iAttributeValues)
Definition CustomViewCreator.h:1038
void registerDoubleAttribute(std::string const &iName, typename FloatAttribute< double >::Getter iGetter, typename FloatAttribute< double >::Setter iSetter)
Definition CustomViewCreator.h:1090
void registerMarginAttribute(std::string const &iName, typename MarginAttribute::Getter iGetter, typename MarginAttribute::Setter iSetter)
Definition CustomViewCreator.h:992
static double mapValueDP(double iValue, double iFromLow, double iFromHigh, double iToLow, double iToHigh, bool iClamp=true)
Convenient shortcut for single precision.
Definition Lerp.h:221
static T clamp(const U &iValue, const T &iLower, const T &iUpper)
Make sure that the value remains within its bounds.
Definition Misc.h:34
std::unique_ptr< typename GUIOptionalParam< T >::EditorType > GUIOptionalParamEditor
Definition GUIOptionalParam.h:188
Definition CustomController.h:25
CRect AbsoluteRect
Definition DrawContext.h:78
CCoord RelativeCoord
Definition DrawContext.h:73
Utils::Range< CCoord > Range
Defines a Range.
Definition Types.h:64
constexpr ParamID UNDEFINED_PARAM_ID
Constant used throughout the code to test whether the ParamID represents a valid id or an undefined o...
Definition Types.h:48
Margin is a similar concept to css: used to create space around elements, outside of any defined bord...
Definition LookAndFeel.h:34