AddOverflowMenu adds the given menu function to the overflow menu list. These functions are called in reverse order such that the last added function is called first when constructing the menu.
(fun func(m *Scene))
| 196 | // These functions are called in reverse order such that the last added function |
| 197 | // is called first when constructing the menu. |
| 198 | func (tb *Toolbar) AddOverflowMenu(fun func(m *Scene)) { |
| 199 | tb.OverflowMenus = append(tb.OverflowMenus, fun) |
| 200 | } |
| 201 | |
| 202 | // ToolbarStyles styles the given widget to have standard toolbar styling. |
| 203 | func ToolbarStyles(w Widget) { |
no outgoing calls
no test coverage detected