TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::TableState::LazyReorderFn Class Reference

A ReorderColumnsFn that costs one pointer when unset; assign it like a std::function: state.onReorderColumns = [&](int from, int to) { ... };. More...

#include <gui_controls/gui_table_types.h>

Public Member Functions

 LazyReorderFn ()=default
 LazyReorderFn (std::nullptr_t) noexcept
template<typename F, typename = std::enable_if_t<!std::is_same_v<std::decay_t<F>, LazyReorderFn>>>
LazyReorderFn & operator= (F &&f)
LazyReorderFn & operator= (std::nullptr_t) noexcept
 operator bool () const noexcept
void operator() (int from, int to) const
ReorderColumnsFn * get () noexcept
const ReorderColumnsFn * get () const noexcept
void reset () noexcept

Detailed Description

A ReorderColumnsFn that costs one pointer when unset; assign it like a std::function: state.onReorderColumns = [&](int from, int to) { ... };.

Constructor & Destructor Documentation

◆ LazyReorderFn() [1/2]

tachyon::TableState::LazyReorderFn::LazyReorderFn ( )
default

◆ LazyReorderFn() [2/2]

tachyon::TableState::LazyReorderFn::LazyReorderFn ( std::nullptr_t )
inlinenoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename F, typename = std::enable_if_t<!std::is_same_v<std::decay_t<F>, LazyReorderFn>>>
LazyReorderFn & tachyon::TableState::LazyReorderFn::operator= ( F && f)
inline

◆ operator=() [2/2]

LazyReorderFn & tachyon::TableState::LazyReorderFn::operator= ( std::nullptr_t )
inlinenoexcept

◆ operator bool()

tachyon::TableState::LazyReorderFn::operator bool ( ) const
inlineexplicitnoexcept

◆ operator()()

void tachyon::TableState::LazyReorderFn::operator() ( int from,
int to ) const
inline

◆ get() [1/2]

ReorderColumnsFn * tachyon::TableState::LazyReorderFn::get ( )
inlinenoexcept

◆ get() [2/2]

const ReorderColumnsFn * tachyon::TableState::LazyReorderFn::get ( ) const
inlinenoexcept

◆ reset()

void tachyon::TableState::LazyReorderFn::reset ( )
inlinenoexcept

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