|
Drag[en]gine Script Module DragonScript 1.35
|
Panel displaying debug information entries. More...
Public Member Functions | |
| void | addDebugInfo (DebugInformation debugInfo) |
| Add debug information. | |
| void | dispose () |
| Dispose of widget. | |
| void | forEach (Block ablock) |
| Visit debug information with block with parameter DebugInformation. | |
| DebugInformation | getDebugInfoAt (int index) |
| Debug information at position. | |
| int | getDebugInfoCount () |
| Number of debug information. | |
| bool | hasDebugInfo (DebugInformation debugInfo) |
| Debug information is present. | |
| PanelDebugInformation | new () |
| Create window. | |
| void | onFrameUpdate (float elapsed) |
| Do frame update. | |
| void | removeAllDebugInfo () |
| Remove all debug information. | |
| void | removeDebugInfo (DebugInformation debugInfo) |
| Remove debug information. | |
Public Attributes | |
| Array | pDebugInformation |
| Array | pSortedList |
Protected Member Functions | |
| void | captureDebugInfo () |
| Capture debug information. | |
Panel displaying debug information entries.
Basically a FormLayout aligned list of debug information entries. Each entry shows a label and a detail text. The window is transparent to be overlayed on screen. The window is set invisible if no debug information are present. Every frame update the debug information are captured and stored in Label objects in the window. Then the debug information are reset for the next frame to collect data. The developer does not have to do anything else than adding debug information objects to the window.
| void Dragengine.Debugging.PanelDebugInformation.addDebugInfo | ( | DebugInformation | debugInfo | ) |
Add debug information.
References getDebugInfoCount(), and pDebugInformation.
Referenced by forEach().
|
protected |
Capture debug information.
References captureDebugInfo(), forEach(), new(), onFrameUpdate(), pDebugInformation, pSortedList, and removeAllDebugInfo().
Referenced by captureDebugInfo().
| void Dragengine.Debugging.PanelDebugInformation.dispose | ( | ) |
Dispose of widget.
Referenced by getDebugInfoCount(), and hasDebugInfo().
| void Dragengine.Debugging.PanelDebugInformation.forEach | ( | Block | ablock | ) |
Visit debug information with block with parameter DebugInformation.
References addDebugInfo(), getDebugInfoAt(), pDebugInformation, and pSortedList.
Referenced by captureDebugInfo().
| DebugInformation Dragengine.Debugging.PanelDebugInformation.getDebugInfoAt | ( | int | index | ) |
Debug information at position.
Referenced by forEach().
| int Dragengine.Debugging.PanelDebugInformation.getDebugInfoCount | ( | ) |
Number of debug information.
References dispose(), and pDebugInformation.
Referenced by addDebugInfo().
| bool Dragengine.Debugging.PanelDebugInformation.hasDebugInfo | ( | DebugInformation | debugInfo | ) |
Debug information is present.
References dispose(), and pSortedList.
Referenced by removeAllDebugInfo().
| PanelDebugInformation Dragengine.Debugging.PanelDebugInformation.new | ( | ) |
Create window.
References new(), and pDebugInformation.
Referenced by captureDebugInfo(), and new().
| void Dragengine.Debugging.PanelDebugInformation.onFrameUpdate | ( | float | elapsed | ) |
Do frame update.
Captures the debug information into Labels in the window then resets all debug information. Shows the window if debug information are present. Does nothing if there are no debug information present.
References pDebugInformation, and removeDebugInfo().
Referenced by captureDebugInfo().
| void Dragengine.Debugging.PanelDebugInformation.removeAllDebugInfo | ( | ) |
Remove all debug information.
References hasDebugInfo(), and pDebugInformation.
Referenced by captureDebugInfo().
| void Dragengine.Debugging.PanelDebugInformation.removeDebugInfo | ( | DebugInformation | debugInfo | ) |
Remove debug information.
Referenced by onFrameUpdate().
| Array Dragengine.Debugging.PanelDebugInformation.pDebugInformation |
Referenced by addDebugInfo(), captureDebugInfo(), forEach(), getDebugInfoCount(), new(), onFrameUpdate(), and removeAllDebugInfo().
| Array Dragengine.Debugging.PanelDebugInformation.pSortedList |
Referenced by captureDebugInfo(), forEach(), and hasDebugInfo().