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 class Bevel // Bevel types
{
Raised,
Lowered
};
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
TextAlign getCaptionHorizontalAlign() const;
VerticalAlign 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;
BorderColor 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 TextAlign value);
bool setCaptionVerticalAlign(const VerticalAlign 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 BorderColor &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 |