Skip to content

SketchMorph2 MenuItems

Kuganash Ravishanker edited this page Aug 3, 2022 · 1 revision

Menu Items

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.

M2CheckBoxMenuItem

The subclasses of this class generate buttons with a checkbox, i.e. to toggle the filling of geometric forms.

M2IconMenuItem

These generate buttons with an icon. Those buttons are used to select tools.

Clone this wiki locally