morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::testing::detail::Geometry Class Reference

Reads where the layout cases' widgets are drawn, and fails a case whose probe reads no geometry. More...

#include <backend_conformance.hpp>

Public Member Functions

 Geometry (ConformanceProbe &probe, Checks &checks)
 Over probe.
WidgetBounds of (Widget const &widget)
 Where widget is drawn; zero, with the case failed, when the probe reads no geometry.
void near (std::string_view what, double expected, double actual)
 Checks that a length is what it should be, within one unit.

Detailed Description

Reads where the layout cases' widgets are drawn, and fails a case whose probe reads no geometry.

Definition at line 1409 of file backend_conformance.hpp.

Constructor & Destructor Documentation

◆ Geometry()

morph::ui::testing::detail::Geometry::Geometry ( ConformanceProbe & probe,
Checks & checks )
inline

Over probe.

Parameters
probeThe backend under test.
checksThe case's checks.

Definition at line 1414 of file backend_conformance.hpp.

Member Function Documentation

◆ of()

WidgetBounds morph::ui::testing::detail::Geometry::of ( Widget const & widget)
inlinenodiscard

Where widget is drawn; zero, with the case failed, when the probe reads no geometry.

Parameters
widgetThe widget.
Returns
Its bounds.

Definition at line 1419 of file backend_conformance.hpp.

◆ near()

void morph::ui::testing::detail::Geometry::near ( std::string_view what,
double expected,
double actual )
inline

Checks that a length is what it should be, within one unit.

Parameters
whatWhat is measured, for the message.
expectedThe length it should be.
actualThe length it is.

Definition at line 1429 of file backend_conformance.hpp.


The documentation for this class was generated from the following file: