Beispiel #1
0
 internal static CfxPrintSettings Wrap(IntPtr nativePtr)
 {
     if (nativePtr == IntPtr.Zero)
     {
         return(null);
     }
     lock (weakCache) {
         var wrapper = (CfxPrintSettings)weakCache.Get(nativePtr);
         if (wrapper == null)
         {
             wrapper = new CfxPrintSettings(nativePtr);
             weakCache.Add(wrapper);
         }
         else
         {
             CfxApi.cfx_release(nativePtr);
         }
         return(wrapper);
     }
 }
 /// <summary>
 /// Continue printing with the specified |settings|.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_print_handler_capi.h">cef/include/capi/cef_print_handler_capi.h</see>.
 /// </remarks>
 public void Continue(CfxPrintSettings settings)
 {
     CfxApi.PrintDialogCallback.cfx_print_dialog_callback_cont(NativePtr, CfxPrintSettings.Unwrap(settings));
 }
Beispiel #3
0
 /// <summary>
 /// Create a new CfxPrintSettings object.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_print_settings_capi.h">cef/include/capi/cef_print_settings_capi.h</see>.
 /// </remarks>
 public static CfxPrintSettings Create()
 {
     return(CfxPrintSettings.Wrap(CfxApi.PrintSettings.cfx_print_settings_create()));
 }
Beispiel #4
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_print_settings_capi.h">cef/include/capi/cef_print_settings_capi.h</see>.
 /// </remarks>
 public CfxPrintSettings Copy()
 {
     return(CfxPrintSettings.Wrap(CfxApi.PrintSettings.cfx_print_settings_copy(NativePtr)));
 }