3#ifndef INKSCAPE_PATTERN_EDITOR_H
4#define INKSCAPE_PATTERN_EDITOR_H
10#include <giomm/liststore.h>
23 typedef Glib::RefPtr<T>
TPtr;
60 const auto n =
_store->get_n_items();
62 if (n ==
items.size()) {
65 for (
int i = 0; i < n; ++i) {
86 for (
auto&& t :
items) {
92 Glib::RefPtr<Gio::ListStore<T>>
_store;
std::vector< TPtr > _items
std::function< bool(const TPtr &)> _filter_callback
const std::vector< TPtr > & get_items() const
Glib::RefPtr< Gio::ListStore< T > > _store
void update_store(const std::vector< TPtr > &items)
std::vector< TPtr > _visible
bool assign(const std::vector< TPtr > &items)
Glib::RefPtr< Gio::ListStore< T > > get_store()
void apply_filter(bool force_refresh=false)
void set_filter(const std::function< bool(const TPtr &)> &filter_callback)
Helper class to stream background task notifications as a series of messages.