Package org.gnome.gtk

Class PrintUnixDialog

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager

@Generated("io.github.jwharm.JavaGI") public class PrintUnixDialog extends Dialog implements Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager
GtkPrintUnixDialog implements a print dialog for platforms which don’t provide a native print dialog, like Unix.

An example GtkPrintUnixDialog

It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API with PrintOperation.

In order to print something with GtkPrintUnixDialog, you need to use getSelectedPrinter() to obtain a Printer object and use it to construct a PrintJob using PrintJob(java.lang.String, org.gnome.gtk.Printer, org.gnome.gtk.PrintSettings, org.gnome.gtk.PageSetup).

GtkPrintUnixDialog uses the following response values:

GtkPrintUnixDialog as GtkBuildable
The GtkPrintUnixDialog implementation of the GtkBuildable interface exposes its notebook internal children with the name “notebook”.

An example of a GtkPrintUnixDialog UI definition fragment:

<object class="GtkPrintUnixDialog" id="dialog1">
   <child internal-child="notebook">
     <object class="GtkNotebook" id="notebook">
       <child>
         <object type="GtkNotebookPage">
           <property name="tab_expand">False</property>
           <property name="tab_fill">False</property>
           <property name="tab">
             <object class="GtkLabel" id="tablabel">
               <property name="label">Tab label</property>
             </object>
           </property>
           <property name="child">
             <object class="GtkLabel" id="tabcontent">
               <property name="label">Content on notebook tab</property>
             </object>
           </property>
         </object>
       </child>
     </object>
   </child>
 </object>
 

CSS nodes
GtkPrintUnixDialog has a single CSS node with name window. The style classes dialog and print are added.