Class Menu |
# This class encapsulates a drop down menu, or a sub-menu. The left, centre and right labels/images of the elements within it are formatted within the menu automatically.
Details |
Constructor |
Methods: |
# Add the given component to the Menu.
Close this menu.
If the presently selected item is a sub-menu, don't unselect it; just close any non-sub-menu in it by calling recursively.
Test whether pointer within label area. Top and bottom borders are outside this region.
Set the selected sub item to x, whether or not it's a sub-menu
Deduce which label is under pointer, if any
Fields: |