C4 Engine Terathon Software C4 Engine API Documentation

• Interface Manager

API Links
Developer Links

class WidgetRegistration

Defined in:  C4Widgets.h
The WidgetRegistration class manages internal registration information for a custom widget type.
Definition

class WidgetRegistration : public Registration<Widget, WidgetRegistration>

Member Functions
WidgetRegistration::GetWidgetType Returns the registered widget type.
WidgetRegistration::GetWidgetFlags Returns the widget registration flags.
WidgetRegistration::GetWidgetName Returns the human-readable widget name.
WidgetRegistration::GetIconTextureName Returns the icon texture name for a widget.
Constructor

WidgetRegistration(WidgetType type, const char *name, const char *icon, unsigned long flags);

Parameters
type The widget type.
name The widget name.
icon The resource name for the icon texture used to represent the widget in the Panel Editor.
flags The widget registration flags.
Description
The WidgetRegistration class is abstract and serves as the common base class for the template class WidgetReg. A custom widget is registered with the engine by instantiating an object of type WidgetReg<classType>, where classType is the type of the widget subclass being registered.
Base Classes
Registration<Widget, WidgetRegistration> A widget registration is a specific type of registration object.
See Also

WidgetReg

Widget