Lines Matching refs:surfaceId
302 onSurfaceCreated(surfaceId: string): void
314 | surfaceId | string | 是 | 回调该方法的时候,绑定XComponent持有Surface的ID。 |
322 onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void
334 | surfaceId | string | 是 | 回调该方法的时候,绑定XComponent持有Surface的ID。 …
343 onSurfaceDestroyed(surfaceId: string): void
355 | surfaceId | string | 是 | 回调该方法的时候,绑定XComponent持有Surface的ID。 |
509 onSurfaceCreated(surfaceId: string): void {
510 console.log(`onSurfaceCreated surfaceId: ${surfaceId}`);
511 nativeRender.SetSurfaceId(BigInt(surfaceId));
514 onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void {
515 console.log(`onSurfaceChanged surfaceId: ${surfaceId}, rect: ${JSON.stringify(rect)}}`);
516 nativeRender.ChangeSurface(BigInt(surfaceId), rect.surfaceWidth, rect.surfaceHeight);
519 onSurfaceDestroyed(surfaceId: string): void {
520 console.log(`onSurfaceDestroyed surfaceId: ${surfaceId}`);
521 nativeRender.DestroySurface(BigInt(surfaceId));
571 let surfaceId = this.xComponentController.getXComponentSurfaceId();
573 nativeRender.DrawPattern(BigInt(surfaceId));
575 if (nativeRender.GetXComponentStatus(BigInt(surfaceId))) {
576 hasDraw = nativeRender.GetXComponentStatus(BigInt(surfaceId)).hasDraw;