| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPrinter</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="Printing.html" title="Printing">
<link rel="prev" href="gtk-GtkPaperSize.html" title="GtkPaperSize">
<link rel="next" href="GtkPrintJob.html" title="GtkPrintJob">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="Builder.html" title="Interface builder">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
<link rel="chapter" href="gtk-migrating-entry-icons.html" title="Migrating from SexyIconEntry to GtkEntry">
<link rel="chapter" href="gtk-migrating-label-links.html" title="Migrating from SexyUrlLabel to GtkLabel">
<link rel="chapter" href="gtk-migrating-ClientSideWindows.html" title="Migrating to client-side windows">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="api-index-full.html" title="Index of all symbols">
<link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="api-index-2-2.html" title="Index of new symbols in 2.2">
<link rel="index" href="api-index-2-4.html" title="Index of new symbols in 2.4">
<link rel="index" href="api-index-2-6.html" title="Index of new symbols in 2.6">
<link rel="index" href="api-index-2-8.html" title="Index of new symbols in 2.8">
<link rel="index" href="api-index-2-10.html" title="Index of new symbols in 2.10">
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
<link rel="index" href="api-index-2-16.html" title="Index of new symbols in 2.16">
<link rel="index" href="api-index-2-18.html" title="Index of new symbols in 2.18">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk-GtkPaperSize.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkPrintJob.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkPrinter.synopsis" class="shortcut">Top</a>
|
<a href="#GtkPrinter.description" class="shortcut">Description</a>
|
<a href="#GtkPrinter.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GtkPrinter.properties" class="shortcut">Properties</a>
|
<a href="#GtkPrinter.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry" title="GtkPrinter">
<a name="GtkPrinter"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkPrinter.top_of_page"></a>GtkPrinter</span></h2>
<p>GtkPrinter — Represents a printer</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="GtkPrinter.synopsis"></a><h2>Synopsis</h2>
<a name="GtkPrintBackend"></a><pre class="synopsis">
#include <gtk/gtk.h>
<a class="link" href="GtkPrinter.html#GtkPrinter-struct" title="GtkPrinter">GtkPrinter</a>;
<a class="link" href="GtkPrinter.html#GtkPrintBackend-struct" title="GtkPrintBackend">GtkPrintBackend</a>;
<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> * <a class="link" href="GtkPrinter.html#gtk-printer-new" title="gtk_printer_new ()">gtk_printer_new</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a> *backend,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> virtual_);
<a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-backend" title="gtk_printer_get_backend ()">gtk_printer_get_backend</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-name" title="gtk_printer_get_name ()">gtk_printer_get_name</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-state-message" title="gtk_printer_get_state_message ()">gtk_printer_get_state_message</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-description" title="gtk_printer_get_description ()">gtk_printer_get_description</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-location" title="gtk_printer_get_location ()">gtk_printer_get_location</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-icon-name" title="gtk_printer_get_icon_name ()">gtk_printer_get_icon_name</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="GtkPrinter.html#gtk-printer-get-job-count" title="gtk_printer_get_job_count ()">gtk_printer_get_job_count</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-is-active" title="gtk_printer_is_active ()">gtk_printer_is_active</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-is-paused" title="gtk_printer_is_paused ()">gtk_printer_is_paused</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-is-accepting-jobs" title="gtk_printer_is_accepting_jobs ()">gtk_printer_is_accepting_jobs</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-is-virtual" title="gtk_printer_is_virtual ()">gtk_printer_is_virtual</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-is-default" title="gtk_printer_is_default ()">gtk_printer_is_default</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-accepts-ps" title="gtk_printer_accepts_ps ()">gtk_printer_accepts_ps</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-accepts-pdf" title="gtk_printer_accepts_pdf ()">gtk_printer_accepts_pdf</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> * <a class="link" href="GtkPrinter.html#gtk-printer-list-papers" title="gtk_printer_list_papers ()">gtk_printer_list_papers</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="GtkPrinter.html#gtk-printer-compare" title="gtk_printer_compare ()">gtk_printer_compare</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *a,
<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *b);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()">gtk_printer_has_details</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
void <a class="link" href="GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()">gtk_printer_request_details</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities">GtkPrintCapabilities</a> <a class="link" href="GtkPrinter.html#gtk-printer-get-capabilities" title="gtk_printer_get_capabilities ()">gtk_printer_get_capabilities</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> * <a class="link" href="GtkPrinter.html#gtk-printer-get-default-page-size" title="gtk_printer_get_default_page_size ()">gtk_printer_get_default_page_size</a> (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (<a class="link" href="GtkPrinter.html#GtkPrinterFunc" title="GtkPrinterFunc ()">*GtkPrinterFunc</a>) (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void <a class="link" href="GtkPrinter.html#gtk-enumerate-printers" title="gtk_enumerate_printers ()">gtk_enumerate_printers</a> (<a class="link" href="GtkPrinter.html#GtkPrinterFunc" title="GtkPrinterFunc ()">GtkPrinterFunc</a> func,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> destroy,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> wait);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="GtkPrinter.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----GtkPrinter
</pre>
<pre class="synopsis">
<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----GtkPrintBackend
</pre>
</div>
<div class="refsect1" title="Properties">
<a name="GtkPrinter.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GtkPrinter.html#GtkPrinter--accepting-jobs" title='The "accepting-jobs" property'>accepting-jobs</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read
"<a class="link" href="GtkPrinter.html#GtkPrinter--accepts-pdf" title='The "accepts-pdf" property'>accepts-pdf</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write / Construct Only
"<a class="link" href="GtkPrinter.html#GtkPrinter--accepts-ps" title='The "accepts-ps" property'>accepts-ps</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write / Construct Only
"<a class="link" href="GtkPrinter.html#GtkPrinter--backend" title='The "backend" property'>backend</a>" <a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a>* : Read / Write / Construct Only
"<a class="link" href="GtkPrinter.html#GtkPrinter--icon-name" title='The "icon-name" property'>icon-name</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read
"<a class="link" href="GtkPrinter.html#GtkPrinter--is-virtual" title='The "is-virtual" property'>is-virtual</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write / Construct Only
"<a class="link" href="GtkPrinter.html#GtkPrinter--job-count" title='The "job-count" property'>job-count</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> : Read
"<a class="link" href="GtkPrinter.html#GtkPrinter--location" title='The "location" property'>location</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read
"<a class="link" href="GtkPrinter.html#GtkPrinter--name" title='The "name" property'>name</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read / Write / Construct Only
"<a class="link" href="GtkPrinter.html#GtkPrinter--paused" title='The "paused" property'>paused</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read
"<a class="link" href="GtkPrinter.html#GtkPrinter--state-message" title='The "state-message" property'>state-message</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read
</pre>
</div>
<div class="refsect1" title="Signals">
<a name="GtkPrinter.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="GtkPrinter.html#GtkPrinter-details-acquired" title='The "details-acquired" signal'>details-acquired</a>" : Run Last
</pre>
</div>
<div class="refsect1" title="Description">
<a name="GtkPrinter.description"></a><h2>Description</h2>
<p>
A <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a> object represents a printer. You only need to
deal directly with printers if you use the non-portable
<a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> API.
</p>
<p>
A <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a> allows to get status information about the printer,
such as its description, its location, the number of queued jobs,
etc. Most importantly, a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a> object can be used to create
a <a class="link" href="GtkPrintJob.html" title="GtkPrintJob"><span class="type">GtkPrintJob</span></a> object, which lets you print to the printer.
</p>
<p>
Printing support was added in GTK+ 2.10.
</p>
</div>
<div class="refsect1" title="Details">
<a name="GtkPrinter.details"></a><h2>Details</h2>
<div class="refsect2" title="GtkPrinter">
<a name="GtkPrinter-struct"></a><h3>GtkPrinter</h3>
<pre class="programlisting">typedef struct _GtkPrinter GtkPrinter;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="GtkPrintBackend">
<a name="GtkPrintBackend-struct"></a><h3>GtkPrintBackend</h3>
<pre class="programlisting">typedef struct _GtkPrintBackend GtkPrintBackend;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_new ()">
<a name="gtk-printer-new"></a><h3>gtk_printer_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> * gtk_printer_new (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a> *backend,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> virtual_);</pre>
<p>
Creates a new <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> the name of the printer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>backend</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html#GtkPrintBackend"><span class="type">GtkPrintBackend</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>virtual_</code></em> :</span></p></td>
<td> whether the printer is virtual
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_backend ()">
<a name="gtk-printer-get-backend"></a><h3>gtk_printer_get_backend ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a> * gtk_printer_get_backend (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns the backend of the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the backend of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_name ()">
<a name="gtk-printer-get-name"></a><h3>gtk_printer_get_name ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * gtk_printer_get_name (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns the name of the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the name of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_state_message ()">
<a name="gtk-printer-get-state-message"></a><h3>gtk_printer_get_state_message ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * gtk_printer_get_state_message (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns the state message describing the current state
of the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the state message of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_description ()">
<a name="gtk-printer-get-description"></a><h3>gtk_printer_get_description ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * gtk_printer_get_description (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Gets the description of the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the description of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_location ()">
<a name="gtk-printer-get-location"></a><h3>gtk_printer_get_location ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * gtk_printer_get_location (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns a description of the location of the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the location of <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_icon_name ()">
<a name="gtk-printer-get-icon-name"></a><h3>gtk_printer_get_icon_name ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> * gtk_printer_get_icon_name (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Gets the name of the icon to use for the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the icon name for <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_job_count ()">
<a name="gtk-printer-get-job-count"></a><h3>gtk_printer_get_job_count ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gtk_printer_get_job_count (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Gets the number of jobs currently queued on the printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the number of jobs on <em class="parameter"><code>printer</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_is_active ()">
<a name="gtk-printer-is-active"></a><h3>gtk_printer_is_active ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_is_active (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer is currently active (i.e.
accepts new jobs).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is active
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_is_paused ()">
<a name="gtk-printer-is-paused"></a><h3>gtk_printer_is_paused ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_is_paused (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer is currently paused.
A paused printer still accepts jobs, but it is not
printing them.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is paused
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_is_accepting_jobs ()">
<a name="gtk-printer-is-accepting-jobs"></a><h3>gtk_printer_is_accepting_jobs ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_is_accepting_jobs (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer is accepting jobs</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is accepting jobs
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_is_virtual ()">
<a name="gtk-printer-is-virtual"></a><h3>gtk_printer_is_virtual ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_is_virtual (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer is virtual (i.e. does not
represent actual printer hardware, but something like
a CUPS class).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is virtual
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_is_default ()">
<a name="gtk-printer-is-default"></a><h3>gtk_printer_is_default ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_is_default (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer is the default printer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> is the default
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_accepts_ps ()">
<a name="gtk-printer-accepts-ps"></a><h3>gtk_printer_accepts_ps ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_accepts_ps (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer accepts input in
PostScript format.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> accepts PostScript
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_accepts_pdf ()">
<a name="gtk-printer-accepts-pdf"></a><h3>gtk_printer_accepts_pdf ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_accepts_pdf (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer accepts input in
PDF format.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> accepts PDF
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_list_papers ()">
<a name="gtk-printer-list-papers"></a><h3>gtk_printer_list_papers ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a> * gtk_printer_list_papers (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Lists all the paper sizes <em class="parameter"><code>printer</code></em> supports.
This will return and empty list unless the printer's details are
available, see <a class="link" href="GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()"><code class="function">gtk_printer_has_details()</code></a> and <a class="link" href="GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()"><code class="function">gtk_printer_request_details()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a newly allocated list of newly allocated <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> s.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_compare ()">
<a name="gtk-printer-compare"></a><h3>gtk_printer_compare ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gtk_printer_compare (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *a,
<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *b);</pre>
<p>
Compares two printers.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td> another <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> 0 if the printer match, a negative value if <em class="parameter"><code>a</code></em> < <em class="parameter"><code>b</code></em>,
or a positive value if <em class="parameter"><code>a</code></em> > <em class="parameter"><code>b</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_has_details ()">
<a name="gtk-printer-has-details"></a><h3>gtk_printer_has_details ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_printer_has_details (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns whether the printer details are available.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>printer</code></em> details are available
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_request_details ()">
<a name="gtk-printer-request-details"></a><h3>gtk_printer_request_details ()</h3>
<pre class="programlisting">void gtk_printer_request_details (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Requests the printer details. When the details are available,
the <a class="link" href="GtkPrinter.html#GtkPrinter-details-acquired" title='The "details-acquired" signal'><span class="type">"details-acquired"</span></a> signal will be emitted on <em class="parameter"><code>printer</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_capabilities ()">
<a name="gtk-printer-get-capabilities"></a><h3>gtk_printer_get_capabilities ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrintUnixDialog.html#GtkPrintCapabilities" title="enum GtkPrintCapabilities">GtkPrintCapabilities</a> gtk_printer_get_capabilities (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns the printer's capabilities.
</p>
<p>
This is useful when you're using <a class="link" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a>'s manual-capabilities
setting and need to know which settings the printer can handle and which
you must handle yourself.
</p>
<p>
This will return 0 unless the printer's details are available, see
<a class="link" href="GtkPrinter.html#gtk-printer-has-details" title="gtk_printer_has_details ()"><code class="function">gtk_printer_has_details()</code></a> and <a class="link" href="GtkPrinter.html#gtk-printer-request-details" title="gtk_printer_request_details ()"><code class="function">gtk_printer_request_details()</code></a>.
*</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the printer's capabilities
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_printer_get_default_page_size ()">
<a name="gtk-printer-get-default-page-size"></a><h3>gtk_printer_get_default_page_size ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> * gtk_printer_get_default_page_size (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer);</pre>
<p>
Returns default page size of <em class="parameter"><code>printer</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a newly allocated <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> with default page size of the printer.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.13</p>
</div>
<hr>
<div class="refsect2" title="GtkPrinterFunc ()">
<a name="GtkPrinterFunc"></a><h3>GtkPrinterFunc ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (*GtkPrinterFunc) (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
The type of function passed to <a class="link" href="GtkPrinter.html#gtk-enumerate-printers" title="gtk_enumerate_printers ()"><code class="function">gtk_enumerate_printers()</code></a>.
Note that you need to ref <em class="parameter"><code>printer</code></em>, if you want to keep
a reference to it after the function has returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data passed to <a class="link" href="GtkPrinter.html#gtk-enumerate-printers" title="gtk_enumerate_printers ()"><code class="function">gtk_enumerate_printers()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>%TRUE to stop the enumeration, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
><code class="literal">FALSE</code></a> to continue
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="gtk_enumerate_printers ()">
<a name="gtk-enumerate-printers"></a><h3>gtk_enumerate_printers ()</h3>
<pre class="programlisting">void gtk_enumerate_printers (<a class="link" href="GtkPrinter.html#GtkPrinterFunc" title="GtkPrinterFunc ()">GtkPrinterFunc</a> func,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> destroy,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> wait);</pre>
<p>
Calls a function for all <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a>s.
If <em class="parameter"><code>func</code></em> returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a>, the enumeration is stopped.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td> a function to call for each printer
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td> user data to pass to <em class="parameter"><code>func</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td> function to call if <em class="parameter"><code>data</code></em> is no longer needed
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wait</code></em> :</span></p></td>
<td> if <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a>, wait in a recursive mainloop until
all printers are enumerated; otherwise return early
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
</div>
<div class="refsect1" title="Property Details">
<a name="GtkPrinter.property-details"></a><h2>Property Details</h2>
<div class="refsect2" title='The "accepting-jobs" property'>
<a name="GtkPrinter--accepting-jobs"></a><h3>The <code class="literal">"accepting-jobs"</code> property</h3>
<pre class="programlisting"> "accepting-jobs" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read</pre>
<p>
This property is <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if the printer is accepting jobs.</p>
<p>
</p>
<p>Default value: TRUE</p>
<p>Since 2.14</p>
</div>
<hr>
<div class="refsect2" title='The "accepts-pdf" property'>
<a name="GtkPrinter--accepts-pdf"></a><h3>The <code class="literal">"accepts-pdf"</code> property</h3>
<pre class="programlisting"> "accepts-pdf" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write / Construct Only</pre>
<p>TRUE if this printer can accept PDF.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" title='The "accepts-ps" property'>
<a name="GtkPrinter--accepts-ps"></a><h3>The <code class="literal">"accepts-ps"</code> property</h3>
<pre class="programlisting"> "accepts-ps" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write / Construct Only</pre>
<p>TRUE if this printer can accept PostScript.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" title='The "backend" property'>
<a name="GtkPrinter--backend"></a><h3>The <code class="literal">"backend"</code> property</h3>
<pre class="programlisting"> "backend" <a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a>* : Read / Write / Construct Only</pre>
<p>Backend for the printer.</p>
</div>
<hr>
<div class="refsect2" title='The "icon-name" property'>
<a name="GtkPrinter--icon-name"></a><h3>The <code class="literal">"icon-name"</code> property</h3>
<pre class="programlisting"> "icon-name" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read</pre>
<p>The icon name to use for the printer.</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2" title='The "is-virtual" property'>
<a name="GtkPrinter--is-virtual"></a><h3>The <code class="literal">"is-virtual"</code> property</h3>
<pre class="programlisting"> "is-virtual" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write / Construct Only</pre>
<p>FALSE if this represents a real hardware printer.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" title='The "job-count" property'>
<a name="GtkPrinter--job-count"></a><h3>The <code class="literal">"job-count"</code> property</h3>
<pre class="programlisting"> "job-count" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> : Read</pre>
<p>Number of jobs queued in the printer.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" title='The "location" property'>
<a name="GtkPrinter--location"></a><h3>The <code class="literal">"location"</code> property</h3>
<pre class="programlisting"> "location" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read</pre>
<p>The location of the printer.</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2" title='The "name" property'>
<a name="GtkPrinter--name"></a><h3>The <code class="literal">"name"</code> property</h3>
<pre class="programlisting"> "name" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read / Write / Construct Only</pre>
<p>Name of the printer.</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2" title='The "paused" property'>
<a name="GtkPrinter--paused"></a><h3>The <code class="literal">"paused"</code> property</h3>
<pre class="programlisting"> "paused" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read</pre>
<p>
This property is <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if this printer is paused.
A paused printer still accepts jobs, but it does
not print them.</p>
<p>
</p>
<p>Default value: FALSE</p>
<p>Since 2.14</p>
</div>
<hr>
<div class="refsect2" title='The "state-message" property'>
<a name="GtkPrinter--state-message"></a><h3>The <code class="literal">"state-message"</code> property</h3>
<pre class="programlisting"> "state-message" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>* : Read</pre>
<p>String giving the current state of the printer.</p>
<p>Default value: ""</p>
</div>
</div>
<div class="refsect1" title="Signal Details">
<a name="GtkPrinter.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2" title='The "details-acquired" signal'>
<a name="GtkPrinter-details-acquired"></a><h3>The <code class="literal">"details-acquired"</code> signal</h3>
<pre class="programlisting">void user_function (<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a> *printer,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> success,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run Last</pre>
<p>
Gets emitted in response to a request for detailed information
about a printer from the print backend. The <em class="parameter"><code>success</code></em> parameter
indicates if the information was actually obtained.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td> the <a class="link" href="GtkPrinter.html" title="GtkPrinter"><span class="type">GtkPrinter</span></a> on which the signal is emitted
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>success</code></em> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if the details were successfully acquired
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>