Table of Contents

Class PrintContext

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class PrintContext
Inheritance
PrintContext
Inherited Members

Methods

CreatePangoContext(IntPtr)

Calls native method gtk_print_context_create_pango_context.

public static extern IntPtr CreatePangoContext(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

CreatePangoLayout(IntPtr)

Calls native method gtk_print_context_create_pango_layout.

public static extern IntPtr CreatePangoLayout(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetCairoContext(IntPtr)

Calls native method gtk_print_context_get_cairo_context.

public static extern ContextUnownedHandle GetCairoContext(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

ContextUnownedHandle

Transfer ownership: None Nullable: False

GetDpiX(IntPtr)

Calls native method gtk_print_context_get_dpi_x.

public static extern double GetDpiX(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetDpiY(IntPtr)

Calls native method gtk_print_context_get_dpi_y.

public static extern double GetDpiY(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_print_context_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHardMargins(IntPtr, out double, out double, out double, out double)

Calls native method gtk_print_context_get_hard_margins.

public static extern bool GetHardMargins(IntPtr context, out double top, out double bottom, out double left, out double right)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

top double

Transfer ownership: Full Nullable: False

bottom double

Transfer ownership: Full Nullable: False

left double

Transfer ownership: Full Nullable: False

right double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetHeight(IntPtr)

Calls native method gtk_print_context_get_height.

public static extern double GetHeight(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetPageSetup(IntPtr)

Calls native method gtk_print_context_get_page_setup.

public static extern IntPtr GetPageSetup(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetPangoFontmap(IntPtr)

Calls native method gtk_print_context_get_pango_fontmap.

public static extern IntPtr GetPangoFontmap(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetWidth(IntPtr)

Calls native method gtk_print_context_get_width.

public static extern double GetWidth(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

SetCairoContext(IntPtr, ContextHandle, double, double)

Calls native method gtk_print_context_set_cairo_context.

public static extern void SetCairoContext(IntPtr context, ContextHandle cr, double dpiX, double dpiY)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

cr ContextHandle

Transfer ownership: None Nullable: False

dpiX double

Transfer ownership: None Nullable: False

dpiY double

Transfer ownership: None Nullable: False