What width and height does the widget occupy? If this changes, be sure to set
redo_layout
to true in event
. Read more
Your widget’s top left corner should be here. Handle mouse events and draw appropriately.
Your chance to react to an event. Any side effects outside of this widget are communicated
through the output. Read more
Draw the widget. Be sure to draw relative to the top-left specified by set_pos
.
If a new Panel is being created to replace an older one, all widgets have the chance to
preserve state from the previous version. Read more
Restore state from the previous version of this widget, with the same ID. Implementors must
downcast. Read more