It derives from <GObject>.
Represents a printer.
You only need to deal directly with printers if you use the non-portable
<GtkPrintUnixDialog> API.
A <GtkPrinter> allows to get status information
about the printer, such as its description, its location, the number of
queued jobs, etc. Most importantly, a
<GtkPrinter> object can be used to create a
<GtkPrintJob> object, which lets you print to the
printer.
#t if the printer is accepting jobs.
Its value is a boolean.
It is read only.
#t if this printer can accept PDF.
Its value is a boolean.
It can only be set when the object is made, with #:accepts-pdf.
#t if this printer can accept PostScript.
Its value is a boolean.
It can only be set when the object is made, with #:accepts-ps.
Icon name to use for the printer.
Its value is a string, or #f.
It is read only.
#f if this represents a real hardware device.
Its value is a boolean.
It can only be set when the object is made, with #:is-virtual.
Number of jobs queued in the printer.
Its value is a 32-bit integer.
It is read only.
Information about the location of the printer.
Its value is a string, or #f.
It is read only.
The name of the printer.
Its value is a string, or #f.
It can only be set when the object is made, with #:name.
#t if this printer is paused.
A paused printer still accepts jobs, but it does not print them.
Its value is a boolean.
It is read only.
String giving the current status of the printer.
Its value is a string, or #f.
It is read only.
Returns whether the printer accepts input in PDF format.
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self accepts PDF
Returns whether the printer accepts input in PostScript format.
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self accepts PostScript
Compares two printers.
Passed: a <GtkPrinter>.
Passed: a <GtkPrinter>.
another <GtkPrinter>
Returned: a 32-bit integer.
0 if the printer match, a negative value if self < b, or a positive value if self > b
Returns the printer’s capabilities.
This is useful when you’re using
<GtkPrintUnixDialog>’s manual-capabilities
setting and need to know which settings the printer can handle and which
you must handle yourself.
This will return 0 unless the printer’s details are available, see
printer:has-details? and
printer:request-details.
Passed: a <GtkPrinter>.
Returned: a <GtkPrintCapabilities>.
the printer’s capabilities
Returns default page size of self.
Passed: a <GtkPrinter>.
Returned: a <GtkPageSetup>.
a newly allocated <GtkPageSetup> with default
page size of the printer.
Gets the description of the printer.
Passed: a <GtkPrinter>.
Returned: a string.
the description of self
Retrieve the hard margins of self.
These are the margins that define the area at the borders of the paper that the printer cannot print to.
Note: This will not succeed unless the printer’s details are available,
see printer:has-details? and
printer:request-details.
Passed: a <GtkPrinter>.
Returned: a boolean.
#t iff the hard margins were retrieved
Returned: a real number.
a location to store the top margin in
Returned: a real number.
a location to store the bottom margin in
Returned: a real number.
a location to store the left margin in
Returned: a real number.
a location to store the right margin in
Retrieve the hard margins of self for paper-size.
These are the margins that define the area at the borders of the paper that the printer cannot print to.
Note: This will not succeed unless the printer’s details are available,
see printer:has-details? and
printer:request-details.
Passed: a <GtkPrinter>.
Passed: a <GtkPaperSize>.
Returned: a boolean.
#t iff the hard margins were retrieved
Returned: a real number.
a location to store the top margin in
Returned: a real number.
a location to store the bottom margin in
Returned: a real number.
a location to store the left margin in
Returned: a real number.
a location to store the right margin in
Gets the name of the icon to use for the printer.
Passed: a <GtkPrinter>.
Returned: a string.
the icon name for self
Gets the number of jobs currently queued on the printer.
Passed: a <GtkPrinter>.
Returned: a 32-bit integer.
the number of jobs on self
Returns a description of the location of the printer.
Passed: a <GtkPrinter>.
Returned: a string.
the location of self
Returns the name of the printer.
Passed: a <GtkPrinter>.
Returned: a string.
the name of self
Returns the state message describing the current state of the printer.
Passed: a <GtkPrinter>.
Returned: a string.
the state message of self
Returns whether the printer details are available.
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self details are available
Returns whether the printer is accepting jobs
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self is accepting jobs
Returns whether the printer is currently active (i.e. accepts new jobs).
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self is active
Returns whether the printer is the default printer.
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self is the default
Returns whether the printer is currently paused.
A paused printer still accepts jobs, but it is not printing them.
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self is paused
Returns whether the printer is virtual (i.e. does not represent actual printer hardware, but something like a CUPS class).
Passed: a <GtkPrinter>.
Returned: a boolean.
#t if self is virtual
Lists all the paper sizes self supports.
This will return and empty list unless the printer’s details are
available, see printer:has-details?
and printer:request-details.
Passed: a <GtkPrinter>.
Returned: a list, each a <GtkPageSetup>.
a newly allocated list of newly allocated
<GtkPageSetup>s.
Requests the printer details.
When the details are available, the printer:details-acquired signal will be emitted on
self.
Passed: a <GtkPrinter>.
Connect a handler with (connect object printer:details-acquired
handler). It is called as (handler self success).
Emitted in response to a request for detailed information about a printer from the print backend.
The success parameter indicates if the information was actually obtained.
Passed: a <GtkPrinter>.
Passed: a boolean.
#t if the details were successfully acquired