C++ GUI Library

class gui::widget

This class is the base for all widgets. Any derived class may be implicitly upcast to widget, and a widget may be explicitly downcast with a narrowing constructor (although this may throw an exception if the narrowing conversion cannot be performed). This class does not have any functionality useful to the end-user; its primary purpose is to allow for heterogeneous collections of widgets.

widget(const widget &other)

Copy-construct from another widget. This does not duplicate the underlying widget, but rather provides an additional reference to it. Does not throw.

widget(const Content_type &other)

Internal constructor reserved for the use of the library implementor. Does not throw.

swap(widget &other)

Exchange this widget with another; actually just exchanges references to the underlying widgets. Does not throw.

operator=(widget other)

Re-assign this widget to refer to another widget. Does not throw.

get_base_pointer() const

Internal function reserved for the use of the library implementor. Returns a boost::shared_pointer to the underlying widget implementation. Does not throw.

get_implementation()

Internal function reserved for the use of the library implementor. Returns a pointer to the underlying implementation API of the widget. Exceptions may be generated by the implementation.