Implements TrackRange control.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CTrackRange :public virtual ITrackRange, public CControl
{
public:
enum STATE // Control and tracker states
{
stNormal, // Normal
stHovered, // Mouse pointer is over the control/tracker
stFocused, // Control is focused
stFocusedHovered, // Control is focused and mouse pointer is over the control/tracker
stActive, // Control is in mouse button down state
stActiveHovered, // Control is in mouse button down state and mouse pointer is over the control/tracker
stDisabled // Disabled
};
public:
// IControl getters
RectF getRenderRect() override;
// IControl setters
bool setDPI(const Point &value) override;
// IControl methods
void Refresh(const bool refresh_children) override;
// ITrackBar getters
int getMin() override;
int getMax() override;
Point getValue() override;
PointB getTrackerEnabled() override;
PointB getTrackerVisible() override;
// ITrackBar setters
bool setMin(const int value) override;
bool setMax(const int value) override;
bool setValue(const Point &value) override;
bool setTrackerEnabled(const PointB &value) override;
bool setTrackerVisible(const PointB &value) override;
// Since 7.0.0
bool setValue1(const int value) override;
bool setValue2(const int value) override;
CTrackRange();
CTrackRange(IForm *parent);
CTrackRange(IControl *parent);
// Getters
STATE getState(); // Return current state
RectF getBackPadding() const; // Return back part padding
float getBackMargin() const; // Return distance from back part to ticks
PointF getTickSize() const; // Return regular tick size
PointF getBigTickSize() const; // Return big tick size
PointF getTrackerPadding() const; // Return tracker padding
float getTrackerWidth() const; // Return tracker width
bool isTopTicksVisible() const; // Return whether top ticks are visible
bool isBottomTicksVisible() const; // Return whether bottom ticks are visible
int getTickInterval() const; // Return interval of ticks to be drawn(<= 0 - no ticks will be drawn)
int getBigTickInterval() const; // Return interval of big tick(in count of small ones)
RectF getBorderWidth(const STATE state) const; // Return control border widths
RectF getBorderRadius(const STATE state) const; // Return control corner radiuses
RectC getBorderColor(const STATE state) const; // Return control border colors
Color getBackgroundColor(const STATE state) const; // Return control background color
Gradient *getBackgroundGradient(const STATE state); // Return control background gradient
int getShadowRadius(const STATE state) const; // Return control shadow radius
PointF getShadowShift(const STATE state) const; // Return control shadow shift
Color getShadowColor(const STATE state) const; // Return control shadow color
RectF getBackBorderWidth(const STATE state) const; // Return back part border widths
RectF getBackBorderRadius(const STATE state) const; // Return back part corner radiuses
RectC getBackBorderColor(const STATE state) const; // Return back part border colors
Color getBackBackgroundColor(const STATE state) const; // Return back part background color
Gradient *getBackBackgroundGradient(const STATE state); // Return back part background gradient
Color getBackSelectionBackgroundColor(const STATE state) const; // Return back part selection background color
Gradient *getBackSelectionBackgroundGradient(const STATE state); // Return back part selection background gradient
RectF getTrackerBorderRadius(const STATE state) const; // Return tracker corner radiuses
RectF getTrackerOuterBorderWidth(const STATE state) const; // Return tracker outer border width
RectF getTrackerInnerBorderWidth(const STATE state) const; // Return tracker inner border width
RectC getTrackerOuterBorderColor(const STATE state) const; // Return tracker outer border colors
RectC getTrackerInnerBorderColor(const STATE state) const; // Return tracker inner border colors
Color getTrackerBackgroundColor(const STATE state) const; // Return tracker background color
Gradient *getTrackerBackgroundGradient(const STATE state); // Return tracker background gradient
Color getTickColor(const STATE state) const; // Return regular tick color
Color getBigTickColor(const STATE state) const; // Return big tick color
Color getOutlineColor(const STATE state) const; // Return outline color
unsigned int getOutlineMask(const STATE state) const; // Return outline binary mask
// Setters
bool setBackPadding(const RectF &value); // Set back part padding
bool setBackMargin(const float value); // Set distance from back part to ticks
bool setTickSize(const PointF &value); // Set regular tick size
bool setBigTickSize(const PointF &value); // Set big tick size
bool setTrackerPadding(const PointF &value); // Set tracker padding
bool setTrackerWidth(const float value); // Set tracker width
bool setTopTicksVisible(const bool value); // Set whether top ticks are visible
bool setBottomTicksVisible(const bool value); // Set whether bottom ticks are visible
bool setTickInterval(const int value); // Set interval of ticks to be drawn(<= 0 - no ticks will be drawn)
bool setBigTickInterval(const int value); // Set interval of big tick(in count of small ones)
bool setBorderWidth(const STATE state, const RectF &value); // Set control border widths
bool setBorderRadius(const STATE state, const RectF &value); // Set control corner radiuses
bool setBorderColor(const STATE state, const RectC &value); // Set control border colors
bool setBackgroundColor(const STATE state, const Color &value); // Set control background color
bool setShadowRadius(const STATE state, const int value); // Set control shadow radius
bool setShadowShift(const STATE state, const PointF &value); // Set control shadow shift
bool setShadowColor(const STATE state, const Color &value); // Set control shadow color
bool setBackBorderWidth(const STATE state, const RectF &value); // Set back part border widths
bool setBackBorderRadius(const STATE state, const RectF &value); // Set back part corner radiuses
bool setBackBorderColor(const STATE state, const RectC &value); // Set back part border colors
bool setBackBackgroundColor(const STATE state, const Color &value); // Set back part background color
bool setBackSelectionBackgroundColor(const STATE state, const Color &value); // Set back part selection background color
bool setTrackerBorderRadius(const STATE state, const RectF &value); // Set tracker corner radiuses
bool setTrackerOuterBorderWidth(const STATE state, const RectF &value); // Set tracker outer border width
bool setTrackerInnerBorderWidth(const STATE state, const RectF &value); // Set tracker inner border width
bool setTrackerOuterBorderColor(const STATE state, const RectC &value); // Set tracker outer border colors
bool setTrackerInnerBorderColor(const STATE state, const RectC &value); // Set tracker inner border colors
bool setTrackerBackgroundColor(const STATE state, const Color &value); // Set tracker background color
bool setTickColor(const STATE state, const Color &value); // Set regular tick color
bool setBigTickColor(const STATE state, const Color &value); // Set big tick color
bool setOutlineColor(const STATE state, const Color &value); // Set outline color
bool setOutlineMask(const STATE state, const unsigned int value); // Set outline binary mask
};
Namespace: | nitisa::standard |
Include: | Standard/Controls/TrackRange/TrackRange.h |