Implements ToolBar control.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CToolBar :public virtual IToolBar, public CControl
{
public:
enum SCROLLER_STATE // Scroller area states
{
ssNormal,
ssHovered,
ssActive,
ssActiveHovered,
ssDisabled
};
public:
IControl *getControl(const int index) override;
IControl *getControl(const String &name) override;
IControl *getControl(const PointF &position) override;
RectF getClientRect() override;
ALIGN_TO getAlignTo() override;
bool setDPI(const Point &value) override;
bool setAlignTo(const ALIGN_TO value) override;
// IControl methods
void Refresh(const bool refresh_children) override;
CToolBar();
CToolBar(IForm *parent);
CToolBar(IControl *parent);
// Return layout properties
float getDistance() const;
RectF getPadding() const;
RectF getBorderWidth() const;
RectC getBorderColor() const;
Color getLeftBorderColor() const;
Color getTopBorderColor() const;
Color getRightBorderColor() const;
Color getBottomBorderColor() const;
Color getBackgroundColor() const;
Gradient *getBackgroundGradient();
float getScrollerSize() const;
float getScrollerArrowSize() const;
RectF getScrollerBorderWidth(const SCROLLER_STATE state) const;
RectC getScrollerBorderColor(const SCROLLER_STATE state) const;
Color getScrollerLeftBorderColor(const SCROLLER_STATE state) const;
Color getScrollerTopBorderColor(const SCROLLER_STATE state) const;
Color getScrollerRightBorderColor(const SCROLLER_STATE state) const;
Color getScrollerBottomBorderColor(const SCROLLER_STATE state) const;
Color getScrollerBackgroundColor(const SCROLLER_STATE state) const;
Gradient *getScrollerBackgroundGradient(const SCROLLER_STATE state);
Color getScrollerArrowColor(const SCROLLER_STATE state) const;
float getScrollInterval() const;
float getScrollDeltaTimer() const;
float getScrollDeltaWheel() const;
bool isUseMask() const; // Whether to use mask
// Set layout properties
bool setDistance(const float value);
bool setPadding(const RectF &value);
bool setBorderWidth(const RectF &value);
bool setBorderColor(const RectC &value);
bool setLeftBorderColor(const Color &value);
bool setTopBorderColor(const Color &value);
bool setRightBorderColor(const Color &value);
bool setBottomBorderColor(const Color &value);
bool setBackgroundColor(const Color &value);
bool setScrollerSize(const float value);
bool setScrollerArrowSize(const float value);
bool setScrollerBorderWidth(const SCROLLER_STATE state, const RectF &value);
bool setScrollerBorderColor(const SCROLLER_STATE state, const RectC &value);
bool setScrollerLeftBorderColor(const SCROLLER_STATE state, const Color &value);
bool setScrollerTopBorderColor(const SCROLLER_STATE state, const Color &value);
bool setScrollerRightBorderColor(const SCROLLER_STATE state, const Color &value);
bool setScrollerBottomBorderColor(const SCROLLER_STATE state, const Color &value);
bool setScrollerBackgroundColor(const SCROLLER_STATE state, const Color &value);
bool setScrollerArrowColor(const SCROLLER_STATE state, const Color &value);
bool setScrollInterval(const float value);
bool setScrollDeltaTimer(const float value);
bool setScrollDeltaWheel(const float value);
bool setUseMask(const bool value); // Set whether to use mask
};
Namespace: | nitisa::standard |
Include: | Standard/Controls/ToolBar/ToolBar.h |