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

one line of the device tree: its widget is created when the line becomes visible and dropped with it More...

#include <dx_gui.h>

Inheritance diagram for dx::gui::item< component_t >:
Collaboration diagram for dx::gui::item< component_t >:

Public Member Functions

item* addItem(std::function<wxWindow *(wxWindow *)>&& content, bool subitems= false, bool open= true)
void addSeparator()
void adopt(item* child)
wxWindow* children() const
void clearItems()
wxWindow* content() const
void forget(item* child)
 item(decltype(create)&& create, bool subitems= false)
 item(wxWindow* parent, std::function<wxWindow *(wxWindow *)>&& content, bool subitems= false, bool open= true)
virtual ~item()= default

Public Attributes

component_t* component{}

Protected Member Functions

std::unique_ptr<juce::Component> createItemComponent() override

Detailed Description

template<typename component_t = label>
class dx::gui::item< component_t >

one line of the device tree: its widget is created when the line becomes visible and dropped with it

dx::gui::item wx counterpart of the juce interface's dx::gui::item<component_t>: one row of a single, continuously expandable outline. Every device and every one of its stream/pin/clock/... rows is an item, nested directly inside its parent item and indented beneath it, showing its own controls inline via content - mirroring juce's TreeView design, where wx has no equivalent of an arbitrary Component hosted per tree row (wxTreeCtrl cannot host child controls), so the outline is built here from plain wxPanel rows in nested box sizers instead.

Constructor & Destructor Documentation

◆ item() [1/2]

template<typename component_t= label>
dx::gui::item<component_t>::item(decltype(create)&& create, bool subitems= false)
inline
Here is the caller graph for this function:

◆ ~item()

template<typename component_t= label>
virtual dx::gui::item<component_t>::~item()
virtualdefault

◆ item() [2/2]

template<typename component_t= label>
dx::gui::item<component_t>::item(wxWindow* parent, std::function<wxWindow*(wxWindow*)>&& content, bool subitems= false, bool open= true)
inline
Here is the call graph for this function:

Member Function Documentation

◆ addItem()

template<typename component_t= label>
item* dx::gui::item<component_t>::addItem(std::function<wxWindow*(wxWindow*)>&& content, bool subitems= false, bool open= true)
inline
Here is the call graph for this function:

◆ addSeparator()

template<typename component_t= label>
void dx::gui::item<component_t>::addSeparator()
inline

◆ adopt()

template<typename component_t= label>
void dx::gui::item<component_t>::adopt(item<component_t>* child)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ children()

template<typename component_t= label>
wxWindow* dx::gui::item<component_t>::children() const
inline

◆ clearItems()

template<typename component_t= label>
void dx::gui::item<component_t>::clearItems()
inline

◆ content()

template<typename component_t= label>
wxWindow* dx::gui::item<component_t>::content() const
inline
Here is the caller graph for this function:

◆ createItemComponent()

template<typename component_t= label>
std::unique_ptr<juce::Component> dx::gui::item<component_t>::createItemComponent()
inlineoverrideprotected

◆ forget()

template<typename component_t= label>
void dx::gui::item<component_t>::forget(item<component_t>* child)
inline
Here is the call graph for this function:

Member Data Documentation

◆ component

template<typename component_t= label>
component_t* dx::gui::item<component_t>::component{}

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