Drag[en]gine Script Module DragonScript 1.35
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:
Dragengine.Utils.FrameUpdateListener

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.
Public Member Functions inherited from Dragengine.Utils.FrameUpdateListener
FrameUpdateManager getFrameUpdateManager ()
 Frame update manager the listener is registered at.
void giveUp ()
 Remove listener from manager if registered at one.
FrameUpdateListener new ()
 Create listener registered at default frame update listener.
FrameUpdateListener new (FrameUpdateManager manager)
 Create listener registered at frame update manager.

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.

Reimplemented from Dragengine.Utils.FrameUpdateListener.

Referenced by onCaptureFailed().

◆ new() [1/4]

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

Start capturing canvas view into file.

References new().

Referenced by new(), new(), new(), new(), and onCaptureSucceeded().

◆ 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.

References new().

◆ new() [3/4]

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

Start capturing widget into file.

References new().

◆ 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.

References new().

◆ onCaptureFailed()

void Dragengine.Debugging.DebugCaptureCanvasView.onCaptureFailed ( )
protected

◆ onCaptureSucceeded()

void Dragengine.Debugging.DebugCaptureCanvasView.onCaptureSucceeded ( )
protected

Capture succeeded.

References new().

Referenced by onCaptureFailed().


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