CToolBar



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 class ScrollerState // Scroller area states 
    {
        Normal,
        Hovered,
        Active,
        ActiveHovered,
        Disabled
    };
public:
    IControl *getControl(const int index) override;
    IControl *getControl(const String &name) override;
    IControl *getControl(const PointF &position) override;
    RectF getClientRect() override;
    AlignTo getAlignTo() override;

    bool setDPI(const Point &value) override;
    bool setAlignTo(const AlignTo 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;
    BorderColor 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 ScrollerState state) const;
    BorderColor getScrollerBorderColor(const ScrollerState state) const;
    Color getScrollerLeftBorderColor(const ScrollerState state) const;
    Color getScrollerTopBorderColor(const ScrollerState state) const;
    Color getScrollerRightBorderColor(const ScrollerState state) const;
    Color getScrollerBottomBorderColor(const ScrollerState state) const;
    Color getScrollerBackgroundColor(const ScrollerState state) const;
    Gradient *getScrollerBackgroundGradient(const ScrollerState state);
    Color getScrollerArrowColor(const ScrollerState 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 BorderColor &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 ScrollerState state, const RectF &value);
    bool setScrollerBorderColor(const ScrollerState state, const BorderColor &value);
    bool setScrollerLeftBorderColor(const ScrollerState state, const Color &value);
    bool setScrollerTopBorderColor(const ScrollerState state, const Color &value);
    bool setScrollerRightBorderColor(const ScrollerState state, const Color &value);
    bool setScrollerBottomBorderColor(const ScrollerState state, const Color &value);
    bool setScrollerBackgroundColor(const ScrollerState state, const Color &value);
    bool setScrollerArrowColor(const ScrollerState 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