CMonthCalendar



Implements MonthCalendar control.

You may also be interesed in CBuiltInMonthCalendar.

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

class CMonthCalendar :public virtual IMonthCalendar, public CControl
{
public:
    enum STATE // Control states 
    {
        stNormal, // Normal 
        stHovered, // Hovered 
        stDisabled // Disabled 
    };
public:
    // IControl getters 
    RectF getClientRect() override;
    RectF getRenderRect() override;

    // IControl setters 
    bool setAlign(const ALIGN value) override; // Not allowed 
    bool setConstraints(const RectF &value) override; // Not allowed 
    bool setSize(const PointF &value) override; // Not allowed. Size is always calculated automatically 
    bool setDPI(const Point &value) override;

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

    // IMonthCalendar getters 
    int getYear() override;
    int getMonth() override;
    int getDay() override;
    int getMinYear() override;
    int getMinMonth() override;
    int getMinDay() override;
    int getMaxYear() override;
    int getMaxMonth() override;
    int getMaxDay() override;

    // IMonthCalendar setters 
    bool setYear(const int value) override;
    bool setMonth(const int value) override;
    bool setDay(const int value) override;
    bool setMinYear(const int value) override;
    bool setMinMonth(const int value) override;
    bool setMinDay(const int value) override;
    bool setMaxYear(const int value) override;
    bool setMaxMonth(const int value) override;
    bool setMaxDay(const int value) override;

    // IMonthCalendar methods 
    bool Next() override;
    bool Prev() override;
    bool Today() override;

    // Constructors 
    CMonthCalendar();
    CMonthCalendar(IForm *parent);
    CMonthCalendar(IControl *parent);
    ~CMonthCalendar() override;

    // Getters 
    STATE getState(); // Return control state 
    RectF getOuterBorderWidth() const; // Return outer border widths 
    RectF getInnerBorderWidth() const; // Return inner border widths 
    RectF getPadding() const; // Return padding 
    int getShadowRadius(const STATE state) const; // Return shadow radius 
    PointF getShadowShift(const STATE state) const; // Return shadow shift 
    Color getShadowColor(const STATE state) const; // Return shadow color 
    RectF getBorderRadius(const STATE state) const; // Return corner radiuses 
    RectC getOuterBorderColor(const STATE state) const; // Return outer border colors 
    RectC getInnerBorderColor(const STATE state) const; // Return inner border colors 
    Color getBackgroundColor(const STATE state) const; // Return background color 
    Gradient *getBackgroundGradient(const STATE state); // Return background gradient 

    // Setters 
    bool setMonthCalendar(IBuiltInMonthCalendar *value); // Set month calendar 
    bool setOuterBorderWidth(const RectF &value); // Set outer border widths 
    bool setInnerBorderWidth(const RectF &value); // Set inner border widths 
    bool setPadding(const RectF &value); // Set padding 
    bool setShadowRadius(const STATE state, const int value); // Set shadow radius 
    bool setShadowShift(const STATE state, const PointF &value); // Set shadow shift 
    bool setShadowColor(const STATE state, const Color &value); // Set shadow color 
    bool setBorderRadius(const STATE state, const RectF &value); // Set corner radiuses 
    bool setOuterBorderColor(const STATE state, const RectC &value); // Set outer border colors 
    bool setInnerBorderColor(const STATE state, const RectC &value); // Set inner border colors 
    bool setBackgroundColor(const STATE state, const Color &value); // Set background color 

    // CBuiltInMonthCalendar getters. Available only if associated IBuiltInMonthCalendar is instance of CBuiltInMonthCalendar(which is true by default) 
    CBuiltInMonthCalendar::MODE getMode();
    bool isShowToday();
    RectF getTitlePadding();
    RectF getTodayPadding();
    RectF getElementPadding();
    RectF getDayPadding();
    float getTodayMargin();
    float getTodayRectWidth();
    bool isAnimate();
    float getAnimateInterval();
    float getAnimateMinScale();
    float getAnimateTime();
    float getScrollInterval();
    TEXT_ALIGN getTitleAlign(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitleBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitleBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectC getTitleBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitleBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Gradient *getTitleBackgroundGradient(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitleColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitlePrevRangeBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitlePrevRangeBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectC getTitlePrevRangeBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitlePrevRangeBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Gradient *getTitlePrevRangeBackgroundGradient(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitlePrevRangePadding(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitlePrevRangeColor1(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitlePrevRangeColor2(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitlePrevRangeColor3(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitleNextRangeBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitleNextRangeBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectC getTitleNextRangeBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitleNextRangeBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Gradient *getTitleNextRangeBackgroundGradient(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTitleNextRangePadding(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitleNextRangeColor1(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitleNextRangeColor2(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTitleNextRangeColor3(const CBuiltInMonthCalendar::TITLE_STATE state);
    TEXT_ALIGN getTodayAlign(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTodayBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTodayBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectC getTodayBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTodayBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Gradient *getTodayBackgroundGradient(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTodayColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTodayRectBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectF getTodayRectBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state);
    RectC getTodayRectBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Color getTodayRectBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state);
    Gradient *getTodayRectBackgroundGradient(const CBuiltInMonthCalendar::TITLE_STATE state);
    TEXT_ALIGN getElementHorizontalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    VERTICAL_ALIGN getElementVerticalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    RectF getElementBorderRadius(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    RectF getElementBorderWidth(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    RectC getElementBorderColor(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    Color getElementBackgroundColor(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    Gradient *getElementBackgroundGradient(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    Color getElementColor(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    Color getElementOutlineColor(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    unsigned int getElementOutlineMask(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    TEXT_ALIGN getDayHorizontalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    VERTICAL_ALIGN getDayVerticalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state);
    TEXT_ALIGN getDayTitleHorizontalAlign(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    VERTICAL_ALIGN getDayTitleVerticalAlign(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    RectF getDayTitleBorderRadius(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    RectF getDayTitleBorderWidth(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    RectC getDayTitleBorderColor(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    Color getDayTitleBackgroundColor(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    Gradient *getDayTitleBackgroundGradient(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);
    Color getDayTitleColor(const CBuiltInMonthCalendar::DAY_TITLE_STATE state);

    // CBuiltInMonthCalendar setters. Available only if associated IBuiltInMonthCalendar is instance of CBuiltInMonthCalendar(which is true by default) 
    bool setMode(const CBuiltInMonthCalendar::MODE value);
    bool setShowToday(const bool value);
    bool setTitlePadding(const RectF &value);
    bool setTodayPadding(const RectF &value);
    bool setElementPadding(const RectF &value);
    bool setDayPadding(const RectF &value);
    bool setTodayMargin(const float value);
    bool setTodayRectWidth(const float value);
    bool setAnimate(const bool value);
    bool setAnimateInterval(const float value);
    bool setAnimateMinScale(const float value);
    bool setAnimateTime(const float value);
    bool setScrollInterval(const float value);
    bool setTitleAlign(const CBuiltInMonthCalendar::TITLE_STATE state, const TEXT_ALIGN value);
    bool setTitleBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitleBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitleBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state, const RectC &value);
    bool setTitleBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitleColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitlePrevRangeBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitlePrevRangeBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitlePrevRangeBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state, const RectC &value);
    bool setTitlePrevRangeBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitlePrevRangePadding(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitlePrevRangeColor1(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitlePrevRangeColor2(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitlePrevRangeColor3(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitleNextRangeBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitleNextRangeBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitleNextRangeBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state, const RectC &value);
    bool setTitleNextRangeBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitleNextRangePadding(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTitleNextRangeColor1(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitleNextRangeColor2(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTitleNextRangeColor3(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTodayAlign(const CBuiltInMonthCalendar::TITLE_STATE state, const TEXT_ALIGN value);
    bool setTodayBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTodayBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTodayBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state, const RectC &value);
    bool setTodayBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTodayColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setTodayRectBorderRadius(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTodayRectBorderWidth(const CBuiltInMonthCalendar::TITLE_STATE state, const RectF &value);
    bool setTodayRectBorderColor(const CBuiltInMonthCalendar::TITLE_STATE state, const RectC &value);
    bool setTodayRectBackgroundColor(const CBuiltInMonthCalendar::TITLE_STATE state, const Color &value);
    bool setElementHorizontalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state, const TEXT_ALIGN value);
    bool setElementVerticalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state, const VERTICAL_ALIGN value);
    bool setElementBorderRadius(const CBuiltInMonthCalendar::ELEMENT_STATE state, const RectF &value);
    bool setElementBorderWidth(const CBuiltInMonthCalendar::ELEMENT_STATE state, const RectF &value);
    bool setElementBorderColor(const CBuiltInMonthCalendar::ELEMENT_STATE state, const RectC &value);
    bool setElementBackgroundColor(const CBuiltInMonthCalendar::ELEMENT_STATE state, const Color &value);
    bool setElementColor(const CBuiltInMonthCalendar::ELEMENT_STATE state, const Color &value);
    bool setElementOutlineColor(const CBuiltInMonthCalendar::ELEMENT_STATE state, const Color &value);
    bool setElementOutlineMask(const CBuiltInMonthCalendar::ELEMENT_STATE state, const unsigned int value);
    bool setDayHorizontalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state, const TEXT_ALIGN value);
    bool setDayVerticalAlign(const CBuiltInMonthCalendar::ELEMENT_STATE state, const VERTICAL_ALIGN value);
    bool setDayTitleHorizontalAlign(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const TEXT_ALIGN value);
    bool setDayTitleVerticalAlign(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const VERTICAL_ALIGN value);
    bool setDayTitleBorderRadius(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const RectF &value);
    bool setDayTitleBorderWidth(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const RectF &value);
    bool setDayTitleBorderColor(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const RectC &value);
    bool setDayTitleBackgroundColor(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const Color &value);
    bool setDayTitleColor(const CBuiltInMonthCalendar::DAY_TITLE_STATE state, const Color &value);
};
Namespace: nitisa::standard
Include: Standard/Controls/MonthCalendar/MonthCalendar.h