Table of Contents

Class Printer

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Printer : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Printer
Implements
Inherited Members

Constructors

Printer(bool, params ConstructArgument[])

protected Printer(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Printer(IntPtr, bool)

protected Printer(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AcceptingJobsPropertyDefinition

public static readonly Property<bool, Printer> AcceptingJobsPropertyDefinition

Field Value

Property<bool, Printer>

AcceptsPdfPropertyDefinition

public static readonly Property<bool, Printer> AcceptsPdfPropertyDefinition

Field Value

Property<bool, Printer>

AcceptsPsPropertyDefinition

public static readonly Property<bool, Printer> AcceptsPsPropertyDefinition

Field Value

Property<bool, Printer>

DetailsAcquiredSignal

Signal Descriptor for OnDetailsAcquired.

public static readonly Signal<Printer, Printer.DetailsAcquiredSignalArgs> DetailsAcquiredSignal

Field Value

Signal<Printer, Printer.DetailsAcquiredSignalArgs>

IconNamePropertyDefinition

public static readonly Property<string?, Printer> IconNamePropertyDefinition

Field Value

Property<string, Printer>

IsVirtualPropertyDefinition

public static readonly Property<bool, Printer> IsVirtualPropertyDefinition

Field Value

Property<bool, Printer>

JobCountPropertyDefinition

public static readonly Property<int, Printer> JobCountPropertyDefinition

Field Value

Property<int, Printer>

LocationPropertyDefinition

public static readonly Property<string?, Printer> LocationPropertyDefinition

Field Value

Property<string, Printer>

NamePropertyDefinition

public static readonly Property<string?, Printer> NamePropertyDefinition

Field Value

Property<string, Printer>

PausedPropertyDefinition

public static readonly Property<bool, Printer> PausedPropertyDefinition

Field Value

Property<bool, Printer>

StateMessagePropertyDefinition

public static readonly Property<string?, Printer> StateMessagePropertyDefinition

Field Value

Property<string, Printer>

Properties

AcceptingJobs

public bool AcceptingJobs { get; }

Property Value

bool

AcceptsPdf

public bool AcceptsPdf { get; }

Property Value

bool

AcceptsPs

public bool AcceptsPs { get; }

Property Value

bool

IconName

public string? IconName { get; }

Property Value

string

IsVirtual

public bool IsVirtual { get; }

Property Value

bool

JobCount

public int JobCount { get; }

Property Value

int

Location

public string? Location { get; }

Property Value

string

Name

public string? Name { get; }

Property Value

string

Paused

public bool Paused { get; }

Property Value

bool

StateMessage

public string? StateMessage { get; }

Property Value

string

Methods

Compare(Printer)

public int Compare(Printer b)

Parameters

b Printer

Returns

int

GetAcceptsPdf()

public bool GetAcceptsPdf()

Returns

bool

GetAcceptsPs()

public bool GetAcceptsPs()

Returns

bool

GetBackend()

public PrintBackend GetBackend()

Returns

PrintBackend

GetCapabilities()

public PrintCapabilities GetCapabilities()

Returns

PrintCapabilities

GetDefaultPageSize()

public PageSetup GetDefaultPageSize()

Returns

PageSetup

GetDescription()

public string GetDescription()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

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

top double
bottom double
left double
right double

Returns

bool

GetHardMarginsForPaperSize(PaperSize, out double, out double, out double, out double)

public bool GetHardMarginsForPaperSize(PaperSize paperSize, out double top, out double bottom, out double left, out double right)

Parameters

paperSize PaperSize
top double
bottom double
left double
right double

Returns

bool

GetIconName()

public string GetIconName()

Returns

string

GetIsVirtual()

public bool GetIsVirtual()

Returns

bool

GetJobCount()

public int GetJobCount()

Returns

int

GetLocation()

public string GetLocation()

Returns

string

GetName()

public string GetName()

Returns

string

GetStateMessage()

public string GetStateMessage()

Returns

string

HasDetails()

public bool HasDetails()

Returns

bool

IsAcceptingJobs()

public bool IsAcceptingJobs()

Returns

bool

IsActive()

public bool IsActive()

Returns

bool

IsDefault()

public bool IsDefault()

Returns

bool

IsPaused()

public bool IsPaused()

Returns

bool

ListPapers()

public List ListPapers()

Returns

List

New(string, PrintBackend, bool)

public static Printer New(string name, PrintBackend backend, bool @virtual)

Parameters

name string
backend PrintBackend
virtual bool

Returns

Printer

RequestDetails()

public void RequestDetails()

Events

OnDetailsAcquired

public event SignalHandler<Printer, Printer.DetailsAcquiredSignalArgs> OnDetailsAcquired

Event Type

SignalHandler<Printer, Printer.DetailsAcquiredSignalArgs>