C4 Engine
C4 Engine API Documentation

Widget::GetWidgetUsage

Defined in:  C4Widgets.h
Returns the widget usage flags.
Prototype

uint32 GetWidgetUsage(voidconst;

Description
The GetWidgetUsage function returns the widget usage flags, which can be a combination (through logical OR) of the following constants.
kWidgetKeyboardFocus The widget is capable of acquiring the keyboard focus.
kWidgetMouseWheel The widget can handle mouse wheel events.
kWidgetTrackInhibit The widget is not tracked after any mouse down event.
kWidgetTrackRightMouse The widget is tracked after a right mouse button click. (Ignored if kWidgetTrackInhibit is set.)
kWidgetTrackMiddleMouse The widget is tracked after a middle mouse button click. (Ignored if kWidgetTrackInhibit is set.)
kWidgetClickActivate The widget can be configured to be activated by default when the kWidgetClickable widget state is set.
kWidgetGeneratedImage The primary texture map of an ImageWidget is a generated texture, and the name of any texture resource should not be saved.
See Also

Widget::SetWidgetUsage

Widget::HandleMouseEvent

Widget::HandleKeyboardEvent