{"id":"frontend.yui--YuiPersistentCanvasRetainedPlanCoversSurfaceV1","name":"YuiPersistentCanvasRetainedPlanCoversSurfaceV1","owner":"yeho","package":"frontend.yui","kind":"function","signature":"external YuiPersistentCanvasRetainedPlanCoversSurfaceV1(yuiRetainedFramePlan original plan, int surfaceWidth, int surfaceHeight) returns bool","description":"The copy-backed target has no prior pixels until its first full replay. A Windows host may use this exact gate to admit that initial retained frame; broader or fragmented damage must not be promoted to an implicit redraw.","context":"Turn YUI models into a working frontend and its rendering/input adapters.","parameters":[{"name":"plan","type":"yuiRetainedFramePlan original","description":"Supply plan as yuiRetainedFramePlan original."},{"name":"surfaceWidth","type":"int","description":"Supply surface width as int."},{"name":"surfaceHeight","type":"int","description":"Supply surface height as int."}],"returns":"bool","members":[],"tags":["cpu","frontend","frontend.yui","function","source-example","yeho","yui"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/frontend/yui/render-persistent_canvas.yh","line":931,"sha256":"48720d049f91a22c3c1fa07040750e6ba8b45c47c77e91274bedd57ef6b73eb3"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use YuiPersistentCanvasRetainedPlanCoversSurfaceV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using frontend.yui\n\n// Turn YUI models into a working frontend and its rendering/input adapters.\nyuiRetainedFramePlan plan = yuiRetainedFramePlan(\"surface Id\", \"reason\")\nint surfaceWidth = 1\nint surfaceHeight = 1\nbool result = YuiPersistentCanvasRetainedPlanCoversSurfaceV1(plan, surfaceWidth, surfaceHeight)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.frontend_yui__yuipersistentcanvasretainedplancoverssurfacev1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"frontend.yui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/frontend/yui\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.image.processing\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image/processing\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"input.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/text\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"14add00158e739f907b3f31b983370fedb5ae3a0cf0e8a629ee9b2bf8662dfe1","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=frontend.yui--YuiPersistentCanvasRetainedPlanCoversSurfaceV1","json":"https://demonhunterlabs.com/reference/items/frontend.yui--YuiPersistentCanvasRetainedPlanCoversSurfaceV1.json","markdown":"https://demonhunterlabs.com/reference/text/frontend.yui--YuiPersistentCanvasRetainedPlanCoversSurfaceV1.md"}
