* Test if WidgetType is a container widget. * @param tp WidgetType to test. * @return True iff WidgetType is a container widget. */
| 3351 | * @return True iff WidgetType is a container widget. |
| 3352 | */ |
| 3353 | bool IsContainerWidgetType(WidgetType tp) |
| 3354 | { |
| 3355 | return tp == NWID_HORIZONTAL || tp == NWID_HORIZONTAL_LTR || tp == NWID_VERTICAL || tp == NWID_MATRIX |
| 3356 | || tp == WWT_PANEL || tp == WWT_FRAME || tp == WWT_INSET || tp == NWID_SELECTION || tp == NWID_LAYER; |
| 3357 | } |
| 3358 | |
| 3359 | /** |
| 3360 | * Build a nested widget tree by recursively filling containers with nested widgets read from their parts. |
no outgoing calls