--- a/ui/cocoa/toolbar.h Sat Sep 17 19:32:44 2016 +0200 +++ b/ui/cocoa/toolbar.h Sat Sep 17 19:57:55 2016 +0200 @@ -67,6 +67,32 @@ @end +/* + * UiToolbarItem + * + * toolbar item with label and icon + */ +@interface UiToolbarItem : NSObject <UiToolItem> { + char *name; + char *label; + // icon + ui_callback callback; + void *userdata; + UcxList *groups; + BOOL isToggleButton; +} + +- (UiToolbarItem*) initWithIdentifier:(char*)identifier + label:(char*)lbl + callback:(ui_callback)f + userdata:(void*)data; + +- (void) setIsToggleButton:(BOOL)t; + + +@end + + /* * UiToolbarDelegate