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 class State // Control and tracker states
{
Normal, // Normal
Hovered, // Mouse pointer is over the control/tracker
Focused, // Control is focused
FocusedHovered, // Control is focused and mouse pointer is over the control/tracker
Active, // Control is in mouse button down state
ActiveHovered, // Control is in mouse button down state and mouse pointer is over the control/tracker
Disabled // 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;
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
BorderColor 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
BorderColor 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
BorderColor getTrackerOuterBorderColor(const State state) const; // Return tracker outer border colors
BorderColor 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 BorderColor &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 BorderColor &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 BorderColor &value); // Set tracker outer border colors
bool setTrackerInnerBorderColor(const State state, const BorderColor &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 |