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

Debug element class saving the content of a canvas view into a file. More...

Inheritance diagram for Dragengine.Debugging.DebugCaptureCanvasView:

Public Member Functions

void frameUpdate (float elapsed)
 Frame update.
 
DebugCaptureCanvasView new (String filename, CanvasView canvasView)
 Start capturing canvas view into file.
 
DebugCaptureCanvasView new (String filename, CanvasView canvasView, Console console)
 Start capturing canvas view into file and add console message if finished.
 
DebugCaptureCanvasView new (String filename, Widget widget)
 Start capturing widget into file.
 
DebugCaptureCanvasView new (String filename, Widget widget, Console console)
 Start capturing widget into file and add console message if finished.
 

Protected Member Functions

void onCaptureFailed ()
 Capture failed.
 
void onCaptureSucceeded ()
 Capture succeeded.
 

Detailed Description

Debug element class saving the content of a canvas view into a file.

To use create instance of this class with the filename and canvas view to capture. The class keeps itself alive as long as the capturing takes place. There is no need to store the created instance. If a console is set the class will add a message if the capturing finished successfully. Uses by default BaseGameApp console if present.

Member Function Documentation

◆ frameUpdate()

void Dragengine.Debugging.DebugCaptureCanvasView.frameUpdate ( float  elapsed)

Frame update.

◆ new() [1/4]

DebugCaptureCanvasView Dragengine.Debugging.DebugCaptureCanvasView.new ( String  filename,
CanvasView  canvasView 
)

Start capturing canvas view into file.

◆ new() [2/4]

DebugCaptureCanvasView Dragengine.Debugging.DebugCaptureCanvasView.new ( String  filename,
CanvasView  canvasView,
Console  console 
)

Start capturing canvas view into file and add console message if finished.

◆ new() [3/4]

DebugCaptureCanvasView Dragengine.Debugging.DebugCaptureCanvasView.new ( String  filename,
Widget  widget 
)

Start capturing widget into file.

◆ new() [4/4]

DebugCaptureCanvasView Dragengine.Debugging.DebugCaptureCanvasView.new ( String  filename,
Widget  widget,
Console  console 
)

Start capturing widget into file and add console message if finished.

◆ onCaptureFailed()

void Dragengine.Debugging.DebugCaptureCanvasView.onCaptureFailed ( )
protected

Capture failed.

◆ onCaptureSucceeded()

void Dragengine.Debugging.DebugCaptureCanvasView.onCaptureSucceeded ( )
protected

Capture succeeded.


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