{"id":"runtime--Canvas.PersistentBeginSized","name":"Canvas.PersistentBeginSized","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.PersistentBeginSized(int red, int green, int blue, bool full_redraw, int expected_width, int expected_height) -> bool","description":"Persistent begin sized through the Canvas runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"red","type":"int","description":"Supply red as int.","rule":"AnyInteger"},{"name":"green","type":"int","description":"Supply green as int.","rule":"AnyInteger"},{"name":"blue","type":"int","description":"Supply blue as int.","rule":"AnyInteger"},{"name":"full_redraw","type":"bool","description":"Supply full redraw as bool.","rule":"Bool"},{"name":"expected_width","type":"int","description":"Supply expected width as int.","rule":"AnyInteger"},{"name":"expected_height","type":"int","description":"Supply expected height as int.","rule":"AnyInteger"}],"returns":"bool","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1683,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Canvas.PersistentBeginSized","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"int red = 1\nint green = 1\nint blue = 1\nbool full_redraw = true\nint expected_width = 1\nint expected_height = 1\nbool result = Canvas.PersistentBeginSized(red, green, blue, full_redraw, expected_width, expected_height)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_persistentbeginsized\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"ead3980977ecd04040ecdbe1d848e40be48c5e6581c19a468e41fbc0c039f521","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.PersistentBeginSized","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.PersistentBeginSized.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.PersistentBeginSized.md"}
