dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::gui::box< item_t > Class Template Reference

a drop down whose items are either ids or their text, depending on what the edited value is More...

#include <dx_gui.h>

Inheritance diagram for dx::gui::box< item_t >:
Collaboration diagram for dx::gui::box< item_t >:

Classes

class  label
 box::label Corrects JUCE awkward positioning and size of the juce::ComboBox editor. This is attached by the cpl::looknfeel class. More...

Public Member Functions

void add(const wxString& text, const item_t& id)
 box(box&& move)
 box(decltype(listen)&& listen, decltype(setup)&& setup= {}, decltype(cleanup)&& cleanup= {})
 box(decltype(setup)&& setup)
 box(wxWindow* parent, decltype(listen)&& listen= {})
void clear()
void select(const item_t& id)
 ~box() override

Public Attributes

std::function<void(box &)> cleanup
std::function<void(const item_t &)> listen
std::function<void(box &)> setup

Protected Member Functions

void comboBoxChanged(juce::ComboBox *) override

Detailed Description

template<typename item_t = int>
class dx::gui::box< item_t >

a drop down whose items are either ids or their text, depending on what the edited value is

dx::gui::box A read-only dropdown of (label, value) pairs, reporting the selected value.

Constructor & Destructor Documentation

◆ box() [1/4]

template<typename item_t= int>
dx::gui::box<item_t>::box(box<item_t>&& move)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box() [2/4]

template<typename item_t= int>
dx::gui::box<item_t>::box(decltype(setup)&& setup)
inline
Here is the call graph for this function:

◆ box() [3/4]

template<typename item_t= int>
dx::gui::box<item_t>::box(decltype(listen)&& listen, decltype(setup)&& setup= {}, decltype(cleanup)&& cleanup= {})
inline

◆ ~box()

template<typename item_t= int>
dx::gui::box<item_t>::~box()
inlineoverride

◆ box() [4/4]

template<typename item_t= int>
dx::gui::box<item_t>::box(wxWindow* parent, decltype(listen)&& listen= {})
inline

Member Function Documentation

◆ add()

template<typename item_t= int>
void dx::gui::box<item_t>::add(const wxString& text, const item_t& id)
inline

◆ clear()

template<typename item_t= int>
void dx::gui::box<item_t>::clear()
inline

◆ comboBoxChanged()

template<typename item_t= int>
void dx::gui::box<item_t>::comboBoxChanged(juce::ComboBox*)
inlineoverrideprotected

◆ select()

template<typename item_t= int>
void dx::gui::box<item_t>::select(const item_t& id)
inline

Member Data Documentation

◆ cleanup

template<typename item_t= int>
std::function<void(box&)> dx::gui::box<item_t>::cleanup

◆ listen

template<typename item_t= int>
std::function<void(const item_t &)> dx::gui::box<item_t>::listen

◆ setup

template<typename item_t= int>
std::function<void(box&)> dx::gui::box<item_t>::setup

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