-
Notifications
You must be signed in to change notification settings - Fork 1
SketchMorph2 MenuItems
Kuganash Ravishanker edited this page Aug 3, 2022
·
1 revision
The menu buttons are instanciated every time the frontend is opened. Each button has a specific class to generate it, containing at least the label and action. There are two types of menu items. To provide a common interface, the classes that generate them are both subclasses of the M2MenuItem class.
The subclasses of this class generate buttons with a checkbox, i.e. to toggle the filling of geometric forms.
These generate buttons with an icon. Those buttons are used to select tools.