// SPDX-License-Identifier: BSL-1.0

#ifndef TUIWIDGETS_ZTEXTMETRICS_P_INCLUDED
#define TUIWIDGETS_ZTEXTMETRICS_P_INCLUDED

#include <termpaint.h>

#include <Tui/tuiwidgets_internal.h>

TUIWIDGETS_NS_START

class ZTextMetricsPrivate {
public:
    ZTextMetricsPrivate(termpaint_surface *surface);
    virtual ~ZTextMetricsPrivate();

    termpaint_surface *surface;

    // back door
    static ZTextMetricsPrivate *get(ZTextMetrics *tm) { return tm->tuiwidgets_impl(); }
    static ZTextMetrics createForTesting(termpaint_surface *surface);
};

TUIWIDGETS_NS_END

#endif // TUIWIDGETS_ZTEXTMETRICS_P_INCLUDED
