Table of Contents

Toolbar Button GUI Class

Github Link

 namespace lc::ui::api 

Toolbar Button Constructor


Description

Constructs a toolbar button gui object. Button after being constructed needs to be added to a group for it to be visible in the application.

Examples


Add Callback


Description

Add lua function callback to be called when the toolbar button is clicked. Multiple callbacks can be added. Callbacks can also be named callbacks i.e. associated with a name so that it can be later removed by use of the name.

Examples


Remove Callback


Description

Remove lua function called associated with the given name. Only named callbacks can be removed.

Examples


Set tooltip


Description

Set the tooltip for the button.

Examples


Label


Description

Get and set label for the toolbar button.

Examples


Enable and Disable


Description

Enable or disable the toolbar button.

Examples


Hide and Show


Description

Hide or show the toolbar button.

Examples


Remove


Description

Remove the current toolbar button from the group.

Examples


Checkable


Description

Return if the button is checkable or not.

Examples