struct ImPlotRect

Overview

#include <implot.h>

struct ImPlotRect
{
    // fields

    ImPlotRange X;
    ImPlotRange Y;

    // construction

    ImPlotRect();

    ImPlotRect(
        double x_min,
        double x_max,
        double y_min,
        double y_max
        );

    // methods

    IMPLOT_API bool Contains(const ImPlotPoint& p) const;

    IMPLOT_API bool Contains(
        double x,
        double y
        ) const;

    IMPLOT_API ImPlotPoint Size() const;
    IMPLOT_API ImPlotPoint Clamp(const ImPlotPoint& p) const;

    IMPLOT_API ImPlotPoint Clamp(
        double x,
        double y
        ) const;

    IMPLOT_API ImPlotPoint Min() const;
    IMPLOT_API ImPlotPoint Max() const;
};