Toolbar::Item

Represent an item of Toolbar.

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

Properties

std::string label

Item's label.

SizeF min_size

Item's minimum size.

SizeF max_size

Item's maximum size.

scoped_refptr<Image> image

Item's image.

scoped_refptr<View> view

Item's custom view.

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

Function called when item is clicked.