Table of Contents

Class Printer

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

Methods

AcceptsPdf(IntPtr)

Calls native method gtk_printer_accepts_pdf.

public static extern bool AcceptsPdf(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AcceptsPs(IntPtr)

Calls native method gtk_printer_accepts_ps.

public static extern bool AcceptsPs(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Compare(IntPtr, IntPtr)

Calls native method gtk_printer_compare.

public static extern int Compare(IntPtr a, IntPtr b)

Parameters

a IntPtr

Transfer ownership: None Nullable: False

b IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetBackend(IntPtr)

Calls native method gtk_printer_get_backend.

public static extern PrintBackendUnownedHandle GetBackend(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

PrintBackendUnownedHandle

Transfer ownership: None Nullable: False

GetCapabilities(IntPtr)

Calls native method gtk_printer_get_capabilities.

public static extern PrintCapabilities GetCapabilities(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

PrintCapabilities

Transfer ownership: None Nullable: False

GetDefaultPageSize(IntPtr)

Calls native method gtk_printer_get_default_page_size.

public static extern IntPtr GetDefaultPageSize(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetDescription(IntPtr)

Calls native method gtk_printer_get_description.

public static extern NonNullableUtf8StringUnownedHandle GetDescription(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_printer_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_printer_get_hard_margins.

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

Parameters

printer 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

GetHardMarginsForPaperSize(IntPtr, PaperSizeHandle, out double, out double, out double, out double)

Calls native method gtk_printer_get_hard_margins_for_paper_size.

public static extern bool GetHardMarginsForPaperSize(IntPtr printer, PaperSizeHandle paperSize, out double top, out double bottom, out double left, out double right)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

paperSize PaperSizeHandle

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

GetIconName(IntPtr)

Calls native method gtk_printer_get_icon_name.

public static extern NonNullableUtf8StringUnownedHandle GetIconName(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetJobCount(IntPtr)

Calls native method gtk_printer_get_job_count.

public static extern int GetJobCount(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetLocation(IntPtr)

Calls native method gtk_printer_get_location.

public static extern NonNullableUtf8StringUnownedHandle GetLocation(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetName(IntPtr)

Calls native method gtk_printer_get_name.

public static extern NonNullableUtf8StringUnownedHandle GetName(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetStateMessage(IntPtr)

Calls native method gtk_printer_get_state_message.

public static extern NonNullableUtf8StringUnownedHandle GetStateMessage(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

HasDetails(IntPtr)

Calls native method gtk_printer_has_details.

public static extern bool HasDetails(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsAcceptingJobs(IntPtr)

Calls native method gtk_printer_is_accepting_jobs.

public static extern bool IsAcceptingJobs(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsActive(IntPtr)

Calls native method gtk_printer_is_active.

public static extern bool IsActive(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsDefault(IntPtr)

Calls native method gtk_printer_is_default.

public static extern bool IsDefault(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsPaused(IntPtr)

Calls native method gtk_printer_is_paused.

public static extern bool IsPaused(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsVirtual(IntPtr)

Calls native method gtk_printer_is_virtual.

public static extern bool IsVirtual(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ListPapers(IntPtr)

Calls native method gtk_printer_list_papers.

public static extern ListOwnedHandle ListPapers(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False

Returns

ListOwnedHandle

Transfer ownership: Full Nullable: False

New(NonNullableUtf8StringHandle, PrintBackendHandle, bool)

Calls native constructor gtk_printer_new.

public static extern IntPtr New(NonNullableUtf8StringHandle name, PrintBackendHandle backend, bool @virtual)

Parameters

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

backend PrintBackendHandle

Transfer ownership: None Nullable: False

virtual bool

Returns

IntPtr

Transfer ownership: Full Nullable: False

RequestDetails(IntPtr)

Calls native method gtk_printer_request_details.

public static extern void RequestDetails(IntPtr printer)

Parameters

printer IntPtr

Transfer ownership: None Nullable: False