UI Context interface.
Graphics context | |
| virtual iGraphics * | GetGraphics () const =0 |
| Get the parent graphics object. {Property}. More... | |
| virtual iGraphicsContext * | GetGraphicsContext () const =0 |
| Get the parent graphics context attached to this UI context. {Property}. More... | |
Input | |
| virtual void | SendWindowMessage (eOSWindowMessage aMsg, const Var &avarA, const Var &avarB)=0 |
| Send a Window message to the UI context. More... | |
| virtual void | SetInputModifiers (tU32 anInputModifier)=0 |
| Set the input modifiers. More... | |
| virtual tU32 | GetInputModifiers () const =0 |
| Get the input modifiers. More... | |
| virtual void | SetDefaultInputSubmitFlags (tUIInputSubmitFlags aSubmitFlags)=0 |
| Set the default input submit flags. {Property}. More... | |
| virtual tUIInputSubmitFlags | GetDefaultInputSubmitFlags () const =0 |
| Get the default input submit flags. {Property}. More... | |
| virtual void | SetHoverDelay (tF32 afDelay)=0 |
| Set the hovering delay in seconds. {Property}. More... | |
| virtual tF32 | GetHoverDelay () const =0 |
| Get the hovering delay in seconds. {Property}. More... | |
| virtual void | SetHoverInputModifiers (tU32 anInputModifiers)=0 |
| Set the input modifier required to enable the hover. More... | |
| virtual tU32 | GetHoverInputModifiers () const =0 |
| Get the input modifier required to enable the hover. More... | |
| virtual tBool | GetKeyDown (tU8 aKey) const =0 |
| Get a keyboard key's down state. {Property}. More... | |
| virtual void | InputFingerMove (tU32 anFinger, const sVec3f &avPosition)=0 |
| virtual void | InputFingerRelativeMove (tU32 anFinger, const sVec3f &avRelMove)=0 |
| virtual void | InputFingerPress (tU32 anFinger, const sVec3f &avPosition, tBool abDown)=0 |
| virtual void | InputKeyPress (eKey aKey, tBool abDown)=0 |
| virtual void | InputKeyChar (tU32 aCharCodePoint, eKey aKeyLeadingToKeyChar)=0 |
| virtual void | InputMouseWheel (const tF32 afDelta)=0 |
| virtual void | InputDoubleClick (ePointerButton aPointer)=0 |
| virtual void | InputRelativeMouseMove (const sVec2f &avRelMove)=0 |
| virtual void | InputGameCtrl (iGameCtrl *apGameController)=0 |
| virtual void | InputPinch (const tF32 afScale)=0 |
Skins | |
| virtual void | SetImageMap (iImageMap *apImageMap)=0 |
| Set the context's image map. {Property}. More... | |
| virtual iImageMap * | GetImageMap () const =0 |
| Get the context's image map. {Property}. More... | |
| virtual tBool | SetErrorOverlay (iOverlay *apOverlay)=0 |
| Get the error overlay. {Property}. More... | |
| virtual iOverlay * | GetErrorOverlay () const =0 |
| Get the error overlay. {Property}. More... | |
| virtual void | ClearSkins ()=0 |
| Remove all skins loaded. More... | |
| virtual tBool | AddSkin (iDataTable *apDT)=0 |
| Add a new skin. More... | |
| virtual tBool | AddSkinFromRes (iHString *ahspRes)=0 |
| Add a new skin from the specified resource. More... | |
| virtual tBool | RemoveSkin (iHString *ahspSkin)=0 |
| Unload a skin. More... | |
| virtual tBool | SetDefaultSkin (iHString *ahspName)=0 |
| Set the default skin. {Property}. More... | |
| virtual iHString * | GetDefaultSkin () const =0 |
| Get the default skin. {Property}. More... | |
| virtual tU32 | GetNumSkins () const =0 |
| Get the number of skins. {Property}. More... | |
| virtual iHString * | GetSkinName (tU32 anIndex) const =0 |
| Get the name of the skin at the specified index. {Property}. More... | |
| virtual tU32 | GetSkinIndex (iHString *ahspName) const =0 |
| Get the index of the skin with the specified name. More... | |
| virtual iDataTable * | GetSkinDataTable (iHString *ahspSkin) const =0 |
| Get the data table associated with the specified skin. {Property}. More... | |
| virtual tBool | ApplySkin (iWidget *apWidget, iHString *ahspName)=0 |
| Apply the specified skin to a widget and all its children. More... | |
| virtual iFont * | FindSkinFont (iHString *ahspSkin, iHString *ahspClass, iHString *ahspState, iHString *ahspName) const =0 |
| Find the font of the specified item in the widget's skin. More... | |
| virtual iOverlay * | FindSkinCursor (iHString *ahspSkin, iHString *ahspClass, iHString *ahspState, iHString *ahspName) const =0 |
| Find the cursor of the specified item in the widget's skin. More... | |
| virtual iOverlay * | FindSkinElement (iHString *ahspSkin, iHString *ahspClass, iHString *ahspState, iHString *ahspName) const =0 |
| Find the element of the specified item in the widget's skin. More... | |
| virtual sColor4f | FindSkinColor (const sColor4f &aDefault, iHString *ahspSkin, iHString *ahspClass, iHString *ahspState, iHString *ahspName) const =0 |
| Find the color of the specified item in the widget's skin. More... | |
Widgets | |
| virtual tBool | HasWidgetSinkClass (const achar *aszClassName) const =0 |
| Check whether the specified widget sink class can be created. More... | |
| virtual iWidgetSink * | CreateWidgetSink (const achar *aszClassName, iWidget *apWidget)=0 |
| Create a widget sink of the specified class. More... | |
| virtual iWidgetSink * | CreateWidgetSinkFromScript (iHString *ahspRes)=0 |
| Create a widget sink from the the specified script script. More... | |
| virtual iWidget * | CreateWidget (const achar *aszClassName, iWidget *apwParent, const sRectf &arectPos=sRectf::Null(), tU32 anStyle=0, iHString *ahspID=NULL)=0 |
| Create a widget. More... | |
| virtual iWidget * | CreateWidgetRaw (const achar *aszClassName, iWidget *apwParent, const sRectf &arectPos=sRectf::Null(), tU32 anStyle=0, iHString *ahspID=NULL)=0 |
| Create a widget without attaching any sink to it. More... | |
| virtual iWidget * | CreateWidgetFromDataTable (iDataTable *apDT, iWidget *apwParent, iHString *ahspID, iHString *ahspTitle)=0 |
| Create a widget from the specified datatable. More... | |
| virtual iWidget * | CreateWidgetFromResource (iHString *ahspRes, iWidget *apwParent, iHString *ahspID, iHString *ahspTitle)=0 |
| Create a widget from a datatable in the specified resource. More... | |
| virtual iWidget * | GetRootWidget () const =0 |
| Get the root widget. {Property}. More... | |
| virtual tBool | SetActiveWidget (iWidget *apWidget)=0 |
| Set the active widget. {Property}. More... | |
| virtual iWidget * | GetActiveWidget () const =0 |
| Get the active widget. {Property}. More... | |
| virtual tU32 | GetNumWidgets () const =0 |
| Get the number of widgets created. {Property}. More... | |
| virtual iWidget * | GetWidget (tU32 anIndex) const =0 |
| Get the widget at the specified index. {Property}. More... | |
| virtual tBool | SerializeWidget (iWidget *apWidget, iDataTable *apDT, tWidgetSerializeFlags anFlags, iRegex *apFilter)=0 |
| Serialize the specified widget. More... | |
| virtual iWidgetCommand * | CreateWidgetCommand ()=0 |
| Create a widget command instance. More... | |
| virtual tBool | SendCommand (iWidget *apDest, iWidgetCommand *apCmd)=0 |
| Send a command to the specified widget. More... | |
| virtual void | Draw ()=0 |
| Draw the GUI. More... | |
| virtual void | DrawCursor (iOSWindow *apWindow)=0 |
| Draw the current mouse cursor or set it as hardware cursor on the specified window if it is specified and supported by the graphics context. More... | |
| virtual tBool | Update (tF32 fTime)=0 |
| Updates the GUI. More... | |
| virtual tBool | Resize (const sRectf &aRootRect)=0 |
| Resize the UI context. More... | |
| virtual void | SetDebugDraw (tBool abDebug)=0 |
| Set whether debug draw is enabled. {Property}. More... | |
| virtual tBool | GetDebugDraw () const =0 |
| Get whether debug draw is enabled. {Property}. More... | |
Cursor | |
| virtual tBool | SetCursor (iOverlay *pCursor)=0 |
| Set the current mouse cursor. {Property}. More... | |
| virtual iOverlay * | GetCursor () const =0 |
| Get the current mouse cursor. {Property}. More... | |
| virtual sVec2f | GetCursorPosition () const =0 |
| Get the cursor position. {Property}. More... | |
Toolbar | |
| virtual void | InitializeDefaultToolbar ()=0 |
| Initialize the a toolbar in the root widget. More... | |
| virtual ni::tBool | SetToolbar (iWidget *apToolbar)=0 |
| Set the UI default toolbar. {Property}. More... | |
| virtual ni::iWidget * | GetToolbar () const =0 |
| Get the UI default toolbar. {Property}. More... | |
DrawOpCapture | |
| virtual void | SetDrawOpCapture (tBool abEnabled)=0 |
| Set whether the draw operation capture hud is enabled. {Property}. More... | |
| virtual ni::tBool | GetDrawOpCapture () const =0 |
| Get whether the draw operation capture hud is enabled. {Property}. More... | |
Manual drawing | |
| virtual tBool | DrawWidget (iWidget *apWidget, iCanvas *apCanvas)=0 |
| Draw the specified widget in the specified canvas. More... | |
| virtual tBool | DrawTransformedWidget (iWidget *apWidget, iCanvas *apCanvas, const sMatrixf &aBaseMatrix)=0 |
| Draw the specified widget in the specified canvas. The widget is transformed using the specified matrix. Clipping and scissoring is disabled. More... | |
UI behaviors | |
| virtual void | SetDragStartDistance (tU32 anPixelDistance)=0 |
| Set the drag start distance. More... | |
| virtual tU32 | GetDragStartDistance () const =0 |
| Get the drag start distance. {Property}. More... | |
Finger | |
| virtual void | SetDragFingerStartDistance (tU32 anFinger, tU32 anPixelDistance)=0 |
| Set the drag finger start distance. More... | |
| virtual tU32 | GetDragFingerStartDistance (tU32 anFinger) const =0 |
| Get the drag finger start distance. {Property}. More... | |
| virtual sVec3f | GetFingerPosition (tU32 anFinger) const =0 |
| Get a finger's latest screen position and pressure. {Property}. More... | |
| virtual tBool | GetFingerDown (tU32 anFinger) const =0 |
| Get a finger's latest down state. {Property}. More... | |
Shorcuts | |
| virtual void | ClearShortcuts ()=0 |
| Remove all shortcuts. More... | |
| virtual void | AddShortcut (tU32 anKey, iHString *ahspCmd)=0 |
| Add a shortcut. More... | |
| virtual void | RemoveShortcut (tU32 anKey)=0 |
| Remove a shortcut. More... | |
| virtual iHString * | GetShortcutCommand (tU32 anKey) const =0 |
| Get the command of the specified shortcut. {Property}. More... | |
Profiler | |
| virtual iProfDraw * | CreateProfDraw (iCanvas *apCanvas, iFont *apFont) const =0 |
| Create an iProfDraw instance which uses the specifed canvas and font. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the parent graphics object. {Property}.
|
pure virtual |
Get the parent graphics context attached to this UI context. {Property}.
|
pure virtual |
Send a Window message to the UI context.
Set the input modifiers.
|
pure virtual |
Get the input modifiers.
|
pure virtual |
Set the default input submit flags. {Property}.
|
pure virtual |
Get the default input submit flags. {Property}.
Set the hovering delay in seconds. {Property}.
|
pure virtual |
Get the hovering delay in seconds. {Property}.
Set the input modifier required to enable the hover.
|
pure virtual |
Get the input modifier required to enable the hover.
Set the context's image map. {Property}.
|
pure virtual |
Get the context's image map. {Property}.
Get the error overlay. {Property}.
|
pure virtual |
Get the error overlay. {Property}.
|
pure virtual |
Remove all skins loaded.
|
pure virtual |
Add a new skin.
Add a new skin from the specified resource.
Unload a skin.
|
pure virtual |
Get the default skin. {Property}.
|
pure virtual |
Get the number of skins. {Property}.
Get the name of the skin at the specified index. {Property}.
Get the index of the skin with the specified name.
|
pure virtual |
Get the data table associated with the specified skin. {Property}.
Apply the specified skin to a widget and all its children.
|
pure virtual |
Find the font of the specified item in the widget's skin.
|
pure virtual |
Find the cursor of the specified item in the widget's skin.
|
pure virtual |
Find the element of the specified item in the widget's skin.
|
pure virtual |
Find the color of the specified item in the widget's skin.
Check whether the specified widget sink class can be created.
|
pure virtual |
Create a widget sink of the specified class.
|
pure virtual |
Create a widget sink from the the specified script script.
|
pure virtual |
Create a widget.
|
pure virtual |
Create a widget without attaching any sink to it.
|
pure virtual |
Create a widget from the specified datatable.
|
pure virtual |
Create a widget from a datatable in the specified resource.
|
pure virtual |
Get the root widget. {Property}.
|
pure virtual |
Get the active widget. {Property}.
|
pure virtual |
Get the number of widgets created. {Property}.
Get the widget at the specified index. {Property}.
|
pure virtual |
Serialize the specified widget.
| apWidget | is the widget to serialize. |
| apDT | is the source/destination data table. |
| anFlags | is the serialization flags. |
| apFilter | regular expression that determines which class will be serialized. Is NULL all classes will be serialized. |
|
pure virtual |
Create a widget command instance.
|
pure virtual |
Send a command to the specified widget.
|
pure virtual |
Draw the GUI.
Draw the current mouse cursor or set it as hardware cursor on the specified window if it is specified and supported by the graphics context.
Updates the GUI.
Resize the UI context.
Set whether debug draw is enabled. {Property}.
|
pure virtual |
Get whether debug draw is enabled. {Property}.
Set the current mouse cursor. {Property}.
|
pure virtual |
Get the current mouse cursor. {Property}.
|
pure virtual |
Get the cursor position. {Property}.
|
pure virtual |
Initialize the a toolbar in the root widget.
Set the UI default toolbar. {Property}.
|
pure virtual |
Get the UI default toolbar. {Property}.
Set whether the draw operation capture hud is enabled. {Property}.
|
pure virtual |
Get whether the draw operation capture hud is enabled. {Property}.
Draw the specified widget in the specified canvas.
|
pure virtual |
Draw the specified widget in the specified canvas. The widget is transformed using the specified matrix. Clipping and scissoring is disabled.
Set the drag start distance.
|
pure virtual |
Get the drag start distance. {Property}.
Set the drag finger start distance.
Get the drag finger start distance. {Property}.
Get a finger's latest screen position and pressure. {Property}.
Get a finger's latest down state. {Property}.
|
pure virtual |
Remove all shortcuts.
Get the command of the specified shortcut. {Property}.
Get a keyboard key's down state. {Property}.
|
pure virtual |
|
pure virtual |
1.8.7