CPanel



Implements Panel control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CPanel :public virtual IPanel, public CControl
{
public:
    enum BEVEL // Bevel types 
    {
        btRaised,
        btLowered
    };
public:
    IControl *getControl(const int index) override;
    IControl *getControl(const String &name) override;
    IControl *getControl(const PointF &position) override;
    RectF getClientRect() override;
    RectF getRenderRect() override;
    String getCaption() override;

    bool setDPI(const Point &value) override;
    bool setCaption(const String &value) override;

    // IControl methods 
    void Refresh(const bool refresh_children) override;

    CPanel();
    CPanel(IControl *parent);
    CPanel(IForm *parent);

    // Return layout properties 
    TEXT_ALIGN getCaptionHorizontalAlign() const;
    VERTICAL_ALIGN getCaptionVerticalAlign() const;
    BEVEL getOuterBevel() const;
    BEVEL getInnerBevel() const;
    Color getBevelRaisedColor() const;
    Color getBevelLoweredColor() const;
    RectF getOuterBevelWidth() const;
    RectF getInnerBevelWidth() const;
    RectF getBorderWidth() const;
    RectF getBorderRadius() const;
    RectC getBorderColor() const;
    Color getLeftBorderColor() const;
    Color getTopBorderColor() const;
    Color getRightBorderColor() const;
    Color getBottomBorderColor() const;
    RectF getPadding() const;
    Color getBackgroundColor() const;
    Gradient *getBackgroundGradient();
    Color getShadowColor() const;
    PointF getShadowShift() const;
    int getShadowRadius() const;
    bool isUseMask() const; // Whether to use mask 

    // Set layout properties 
    bool setCaptionHorizontalAlign(const TEXT_ALIGN value);
    bool setCaptionVerticalAlign(const VERTICAL_ALIGN value);
    bool setOuterBevel(const BEVEL value);
    bool setInnerBevel(const BEVEL value);
    bool setBevelRaisedColor(const Color &value);
    bool setBevelLoweredColor(const Color &value);
    bool setOuterBevelWidth(const RectF &value);
    bool setInnerBevelWidth(const RectF &value);
    bool setBorderWidth(const RectF &value);
    bool setBorderRadius(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 setPadding(const RectF &value);
    bool setBackgroundColor(const Color &value);
    bool setShadowColor(const Color &value);
    bool setShadowShift(const PointF &value);
    bool setShadowRadius(const int value);
    bool setUseMask(const bool value); // Set whether to use mask 
};
Namespace: nitisa::standard
Include: Standard/Controls/Panel/Panel.h