CFeedback



Base class for the objects which have one callback function to notify parent about changes. Many helper classes use it(for example, Gradient) to store parent callback function and call it 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 CFeedback :public virtual IFeedback
{
protected:
    void FeedbackCallback() override; // Call callback function if exists 
public:
    IFeedbackService *QueryService() override;

    CFeedback(Callback callback, void *param); // Create with specified callback function and parameter which will be passed to the callback function
    virtual ~CFeedback();
};
Namespace: nitisa
Include: Nitisa/Core/Feedback.h