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

dx::gui::box A read-only dropdown of (label, value) pairs, reporting the selected value. 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 >

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

◆ box() [2/4]

template<typename item_t = int>
dx::gui::box< item_t >::box ( decltype(setup)&& setup)
inline

◆ 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
Here is the caller graph for this function:

◆ 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
Here is the caller graph for this function:

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:

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.