Toolbar::Item

Represent an item of Toolbar.

Header#include "nativeui/toolbar.h"
Namespacenamespace nu
Typestruct

Properties

std::string label (optional)

Item's label.

SizeF min_size (optional)

Item's minimum size.

SizeF max_size (optional)

Item's maximum size.

scoped_refptr<Image> image (optional)

Item's image.

scoped_refptr<View> view (optional)

Item's custom view.

std::function<void(Toolbar*, const std::string&)> on_click (optional)

Function called when item is clicked.