Class PrintContext
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class PrintContext : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
PrintContext
- Implements
- Inherited Members
Constructors
PrintContext(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public PrintContext(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
PrintContext(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected PrintContext(CreationData data)
Parameters
dataCreationData
PrintContext(PrintContextHandle)
protected PrintContext(PrintContextHandle handle)
Parameters
handlePrintContextHandle
Methods
CreatePangoContext()
public Context CreatePangoContext()
Returns
CreatePangoLayout()
public Layout CreatePangoLayout()
Returns
GetCairoContext()
public Context GetCairoContext()
Returns
GetDpiX()
public double GetDpiX()
Returns
GetDpiY()
public double GetDpiY()
Returns
GetGType()
public static Type GetGType()
Returns
GetHardMargins(out double, out double, out double, out double)
public bool GetHardMargins(out double top, out double bottom, out double left, out double right)
Parameters
Returns
GetHeight()
public double GetHeight()
Returns
GetPageSetup()
public PageSetup GetPageSetup()
Returns
GetPangoFontmap()
public FontMap GetPangoFontmap()
Returns
GetWidth()
public double GetWidth()
Returns
NewFromPointer(nint, bool)
Creates a new managed PrintContext instance for a given pointer.
public static PrintContext NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new PrintContext and sets the properties specified by the construct arguments.
public static PrintContext NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetCairoContext(Context, double, double)
public void SetCairoContext(Context cr, double dpiX, double dpiY)