internal static void EventCall(object sender, CfxGetDataResourceForScaleEventArgs e)
        {
            var call = new CfxGetDataResourceForScaleBrowserProcessCall();

            call.sender      = RemoteProxy.Wrap((CfxBase)sender);
            call.eventArgsId = AddEventArgs(e);
            call.RequestExecution(RemoteClient.connection);
            RemoveEventArgs(call.eventArgsId);
        }
Esempio n. 2
0
        internal static void get_data_resource_for_scale(IntPtr gcHandlePtr, out int __retval, int resource_id, int scale_factor, out IntPtr data, out UIntPtr data_size)
        {
            var self = (CfxResourceBundleHandler)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target;

            if (self == null || self.CallbacksDisabled)
            {
                __retval  = default(int);
                data      = default(IntPtr);
                data_size = default(UIntPtr);
                return;
            }
            var e = new CfxGetDataResourceForScaleEventArgs(resource_id, scale_factor);

            self.m_GetDataResourceForScale?.Invoke(self, e);
            e.m_isInvalid = true;
            data          = e.m_data;
            data_size     = e.m_data_size;
            __retval      = e.m_returnValue ? 1 : 0;
        }