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

dx::gui::device A device_t with its outline (dx::gui::model) as its own line of the tree, built by attach() as the driver adds it; its icon the image the tree paints behind it. More...

#include <dx_gui_device.h>

Inheritance diagram for dx::gui::device< device_t >:
Collaboration diagram for dx::gui::device< device_t >:

Public Types

typedef device_t super
typedef device_t super

Public Member Functions

void attach(std::function<void()>&& destroy)
void attach(wxWindow* parent, std::function<void()>&& destroy)
wxString caption() const
template<typename driver_t, typename ... type_t>
 device(driver_t& driver, decltype(super::id)& id, type_t... args)
template<typename driver_t, typename ... type_t>
 device(driver_t& driver, decltype(super::id)& id, type_t... args)
 ~device() override

Public Attributes

image image{this->icon? static_cast<const std::string&>(this->icon): ""}
item* outline{}

Static Public Attributes

static constexpr auto pod= gui::model<device_t>::pod

Detailed Description

template<typename device_t>
class dx::gui::device< device_t >

dx::gui::device A device_t with its outline (dx::gui::model) as its own line of the tree, built by attach() as the driver adds it; its icon the image the tree paints behind it.

dx::gui::device A device_t with its outline (dx::gui::model): attach() renders it once a wx parent stands - the driver constructs the device before any window exists - and the device's end removes every watch its controls hold.

Member Typedef Documentation

◆ super [1/2]

template<typename device_t>
typedef device_t dx::gui::device<device_t>::super

◆ super [2/2]

template<typename device_t>
typedef device_t dx::gui::device<device_t>::super

Constructor & Destructor Documentation

◆ device() [1/2]

template<typename device_t>
template<typename driver_t, typename ... type_t>
dx::gui::device<device_t>::device(driver_t& driver, decltype(super::id)& id, type_t... args)
inline

◆ device() [2/2]

template<typename device_t>
template<typename driver_t, typename ... type_t>
dx::gui::device<device_t>::device(driver_t& driver, decltype(super::id)& id, type_t... args)
inline

◆ ~device()

template<typename device_t>
dx::gui::device<device_t>::~device()
inlineoverride

Member Function Documentation

◆ attach() [1/2]

template<typename device_t>
void dx::gui::device<device_t>::attach(std::function<void()>&& destroy)
inline
Here is the caller graph for this function:

◆ attach() [2/2]

template<typename device_t>
void dx::gui::device<device_t>::attach(wxWindow* parent, std::function<void()>&& destroy)
inline
Here is the call graph for this function:

◆ caption()

template<typename device_t>
wxString dx::gui::device<device_t>::caption() const
inline

Member Data Documentation

◆ image

template<typename device_t>
image dx::gui::device<device_t>::image{this->icon? static_cast<const std::string&>(this->icon): ""}

◆ outline

template<typename device_t>
item* dx::gui::device<device_t>::outline{}

◆ pod

template<typename device_t>
constexpr auto dx::gui::device<device_t>::pod= gui::model<device_t>::pod
staticconstexpr

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