class mrpt::gui::mrptEventWindowResize

An event sent by a window upon resize.

IMPORTANTE NOTICE: Event handlers in your observer class will be invoked from the wxWidgets internal MRPT thread, so all your code in the handler must be thread safe.

#include <mrpt/gui/CBaseGUIWindow.h>

class mrptEventWindowResize: public mrpt::system::mrptEvent
{
public:
    //
fields

    CBaseGUIWindow* source_object;
    size_t new_width;
    size_t new_height;
    mrpt::Clock::time_point timestamp;

    // construction

    mrptEventWindowResize(
        CBaseGUIWindow* obj,
        size_t _new_width,
        size_t _new_height
        );

    //
methods

    template <class EVENTTYPE>
    bool isOfType() const;

    template <class EVENTTYPE>
    const EVENTTYPE* getAs() const;

    template <class EVENTTYPE>
    EVENTTYPE* getAsNonConst() const;
};