blockly > Geste > (Konstrukteur)
Gesture.(constructor)
Erstellt eine neue Instanz der Gesture
-Klasse
Unterschrift:
constructor(e: PointerEvent, creatorWorkspace: WorkspaceSvg);
Parameter
Parameter |
Typ |
Beschreibung |
e |
PointerEvent |
Das Ereignis, das diese Geste ausgelöst hat. |
creatorWorkspace |
WorkspaceSvg |
Der Arbeitsbereich, in dem diese Geste erstellt wurde und auf den sich ein Verweis darauf befindet. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-21 (UTC)."],[[["A Gesture object is initiated by a pointer event and is associated with a specific workspace."],["The constructor for the `Gesture` class takes a PointerEvent and a WorkspaceSvg object as arguments to initialize a new Gesture instance."]]],["The `Gesture` class is instantiated using a constructor that accepts two parameters: `e`, a `PointerEvent` object representing the initiating event, and `creatorWorkspace`, a `WorkspaceSvg` instance that created and references the gesture. This constructor creates a new `Gesture` object, effectively starting the gesture based on the provided event and workspace information. The `PointerEvent` provides details about the triggering event and `creatorWorkspace` indicates the context of the gesture.\n"]]