C4 Engine
C4 Engine API Documentation

InterfaceMgr::AddWidget

Defined in:  C4Interface.h
Adds a user interface element to the desktop.
Prototype

void AddWidget(Widget *widget);

Parameters
widget The interface widget to add.
Description
The AddWidget function adds a user interface widget to the desktop. The widget parameter can be a pointer to any instance of the Widget class, but is normally a Window or Board.

The widget specified by the widget parameter is preprocessed before the AddWidget function returns.

An interface widget is removed from the desktop by destroying it or calling the InterfaceMgr::RemoveWidget function.
See Also

InterfaceMgr::RemoveWidget

Window::AddSubwindow