Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Debugging.PanelDebugInformation Class Reference

Panel displaying debug information entries. More...

Inheritance diagram for Dragengine.Debugging.PanelDebugInformation:

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.

Detailed Description

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.

Member Function Documentation

◆ addDebugInfo()

void Dragengine.Debugging.PanelDebugInformation.addDebugInfo ( DebugInformation debugInfo)

Add debug information.

References getDebugInfoCount(), and pDebugInformation.

Referenced by forEach().

◆ captureDebugInfo()

void Dragengine.Debugging.PanelDebugInformation.captureDebugInfo ( )
protected

◆ dispose()

void Dragengine.Debugging.PanelDebugInformation.dispose ( )

Dispose of widget.

Referenced by getDebugInfoCount(), and hasDebugInfo().

◆ forEach()

void Dragengine.Debugging.PanelDebugInformation.forEach ( Block ablock)

Visit debug information with block with parameter DebugInformation.

References addDebugInfo(), getDebugInfoAt(), pDebugInformation, and pSortedList.

Referenced by captureDebugInfo().

◆ getDebugInfoAt()

DebugInformation Dragengine.Debugging.PanelDebugInformation.getDebugInfoAt ( int index)

Debug information at position.

Referenced by forEach().

◆ getDebugInfoCount()

int Dragengine.Debugging.PanelDebugInformation.getDebugInfoCount ( )

Number of debug information.

References dispose(), and pDebugInformation.

Referenced by addDebugInfo().

◆ hasDebugInfo()

bool Dragengine.Debugging.PanelDebugInformation.hasDebugInfo ( DebugInformation debugInfo)

Debug information is present.

References dispose(), and pSortedList.

Referenced by removeAllDebugInfo().

◆ new()

PanelDebugInformation Dragengine.Debugging.PanelDebugInformation.new ( )

Create window.

References new(), and pDebugInformation.

Referenced by captureDebugInfo(), and new().

◆ onFrameUpdate()

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().

◆ removeAllDebugInfo()

void Dragengine.Debugging.PanelDebugInformation.removeAllDebugInfo ( )

Remove all debug information.

References hasDebugInfo(), and pDebugInformation.

Referenced by captureDebugInfo().

◆ removeDebugInfo()

void Dragengine.Debugging.PanelDebugInformation.removeDebugInfo ( DebugInformation debugInfo)

Remove debug information.

Referenced by onFrameUpdate().

Member Data Documentation

◆ pDebugInformation

Array Dragengine.Debugging.PanelDebugInformation.pDebugInformation

◆ pSortedList

Array Dragengine.Debugging.PanelDebugInformation.pSortedList

The documentation for this class was generated from the following file: