CFeedbackEx



Base class for the objects which have two callback function to notify parent about changes. It notify parent before and after update. Many helper classes use it(for example, Font) to store parent callback functions and call them when parent should be notified about changes.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CFeedbackEx :public virtual IFeedbackEx
{
protected:
    void FeedbackBefore() override; // Call callback function before changes if it is not nullptr
    void FeedbackAfter() override; // Call callback function after changes if it is not nullptr
public:
    IFeedbackExService *QueryService() override;

    /**
    Constructor
    @param before Function which will be called before applying any changes
    @param after Function which will be called after applying changes
    @param param Callback functions custom parameter
    */
    CFeedbackEx(IFeedback::Callback before, IFeedback::Callback after, void *param);
    virtual ~CFeedbackEx();
};
Namespace: nitisa
Include: Nitisa/Core/FeedbackEx.h