dxd - dynax driver framework 3.0.1d223
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::gui::control Struct Reference

one control of an outline row: what it shows and, where it may change something, how - a toolkit renders it, nothing else More...

#include <dx_gui_model.h>

Collaboration diagram for dx::gui::control:

Public Types

enum class  kind : uint8_t {
  label , image , button , number ,
  check , toggle , choice , text
}

Public Attributes

std::function< stream::named()> items
 a choice's items as they stand
enum dx::gui::control::kind kind
std::function< void(const std::string &)> put
 a text field's change; none: shown, not changed
std::function< std::string()> read
 a label's text as it changes
std::function< void(uint32_t)> set
 the change it makes, a button's press; none: shown, not changed
std::string text
 a label's, button's, check box's or toggle's caption, an image's path, a text field's content
std::function< uint32_t()> value
 a number's, check box's, toggle's or choice's value
watch_t watch
 refreshes it as what it shows changes

Detailed Description

one control of an outline row: what it shows and, where it may change something, how - a toolkit renders it, nothing else

Member Enumeration Documentation

◆ kind

Enumerator
label 
image 
button 
number 
check 
toggle 
choice 
text 

Member Data Documentation

◆ items

std::function<stream::named()> dx::gui::control::items

a choice's items as they stand

◆ kind

◆ put

std::function<void(const std::string&)> dx::gui::control::put

a text field's change; none: shown, not changed

◆ read

std::function<std::string()> dx::gui::control::read

a label's text as it changes

◆ set

std::function<void(uint32_t)> dx::gui::control::set

the change it makes, a button's press; none: shown, not changed

◆ text

std::string dx::gui::control::text

a label's, button's, check box's or toggle's caption, an image's path, a text field's content

◆ value

std::function<uint32_t()> dx::gui::control::value

a number's, check box's, toggle's or choice's value

◆ watch

watch_t dx::gui::control::watch

refreshes it as what it shows changes


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

(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.