* Add helper properties for the PrintCore methods that return the correct types instead of IntPtrs * NSPrintInfo make bindings internal and change manual properties to getter methods https://bugzilla.xamarin.com/show_bug.cgi?id=52501
This commit is contained in:
Родитель
87b2e73248
Коммит
8a6cfbe544
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using XamCore.PrintCore;
|
||||
|
||||
namespace XamCore.AppKit {
|
||||
public partial class NSPrintInfo {
|
||||
public PMPrintSession GetPrintSession ()
|
||||
{
|
||||
var ptr = GetPMPrintSession ();
|
||||
return new PMPrintSession (ptr, false);
|
||||
}
|
||||
|
||||
public PMPageFormat GetPageFormat ()
|
||||
{
|
||||
var ptr = GetPMPageFormat ();
|
||||
return new PMPageFormat (ptr, false);
|
||||
}
|
||||
|
||||
public PMPrintSettings GetPrintSettings ()
|
||||
{
|
||||
var ptr = GetPMPrintSettings ();
|
||||
return new PMPrintSettings (ptr, false);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11808,12 +11808,21 @@ namespace XamCore.AppKit {
|
|||
[Export ("printSettings")]
|
||||
NSMutableDictionary PrintSettings { get; }
|
||||
|
||||
#if XAMCORE_4_0
|
||||
[Internal]
|
||||
#endif
|
||||
[Export ("PMPrintSession")]
|
||||
IntPtr GetPMPrintSession ();
|
||||
|
||||
#if XAMCORE_4_0
|
||||
[Internal]
|
||||
#endif
|
||||
[Export ("PMPageFormat")]
|
||||
IntPtr GetPMPageFormat ();
|
||||
|
||||
#if XAMCORE_4_0
|
||||
[Internal]
|
||||
#endif
|
||||
[Export ("PMPrintSettings")]
|
||||
IntPtr GetPMPrintSettings ();
|
||||
|
||||
|
|
|
@ -118,6 +118,7 @@ APPKIT_SOURCES = \
|
|||
AppKit/NSPopUpButton.cs \
|
||||
AppKit/NSPopUpButtonCell.cs \
|
||||
AppKit/NSPredicateEditorRowTemplate.cs \
|
||||
AppKit/NSPrintInfo.cs \
|
||||
AppKit/NSPrintPanel.cs \
|
||||
AppKit/NSResponder.cs \
|
||||
AppKit/NSScreen.cs \
|
||||
|
|
Загрузка…
Ссылка в новой задаче