bindGroupWidgets

Finds widget by widgetName and store them children to annotated variable. if widgetName is empty then widget will be finds by annotated variable name.

struct bindGroupWidgets {}

Members

Variables

widgetName
string widgetName;

Widget name if is empty then retrieving name will be from variable name

Examples

@GroupViewWidgets Button[3] buttons;

// Without attribute
auto parent = manager.findWidgetByName("buttons");
int i = 0;

foreach (child; parent.children) {
    buttons[i] = child;
    i += 1;
}

Meta