public override void Register(SafeContextHandle context) { base.Register(context); unsafe { GVC_t * gvc = (GVC_t *)context.DangerousGetHandle(); PluginEngine textLayoutEngine = Engines.Single(i => i.Api == api_t.TextLayout); gvc->textlayout.engine = (gvtextlayout_engine_t *)textLayoutEngine.InstalledPluginData->engine; } }
internal unsafe SafeContextHandle(GVC_t *handle, bool ownsHandle) : base(ownsHandle) { SetHandle((IntPtr)handle); }