morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::detail::VisibleRange Struct Reference

What the backend's own scroll position asks a virtualized table to realize next. More...

#include <mount.hpp>

Public Member Functions

bool operator== (VisibleRange const &) const =default
 Memberwise equality, so an unchanged range notifies nobody.

Public Attributes

std::size_t first = 0
 The view index of the first row the backend wants realized.
std::size_t count = 0
 How many rows from first the backend wants realized; 0 (the default) asks for nothing, which a table below its Virtualization::threshold never overrides, since its windowing Effect only runs on a backend that calls setOnVisibleRangeChanged in the first place.

Detailed Description

What the backend's own scroll position asks a virtualized table to realize next.

Definition at line 91 of file mount.hpp.

Member Function Documentation

◆ operator==()

bool morph::ui::detail::VisibleRange::operator== ( VisibleRange const & ) const
default

Memberwise equality, so an unchanged range notifies nobody.

Returns
Whether both first and count match.

Member Data Documentation

◆ first

std::size_t morph::ui::detail::VisibleRange::first = 0

The view index of the first row the backend wants realized.

Definition at line 93 of file mount.hpp.

◆ count

std::size_t morph::ui::detail::VisibleRange::count = 0

How many rows from first the backend wants realized; 0 (the default) asks for nothing, which a table below its Virtualization::threshold never overrides, since its windowing Effect only runs on a backend that calls setOnVisibleRangeChanged in the first place.

Definition at line 97 of file mount.hpp.


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