GObject.Object
Gtk.PrintContext
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkPrintContext |
Class : | PrintContext |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.PrintContext
()
Create a new Gtk.PrintContext
Create a new Gtk.PrintContext
|
||
create_pango_context
()
:
Pango.Context
Creates a new PangoContext that can be used with the
GtkPrintContext.
Creates a new PangoContext that can be used with the
GtkPrintContext.
|
Gtk.PrintContext | |
create_pango_layout
()
:
Pango.Layout
Creates a new PangoLayout that is suitable for use
with the GtkPrintContext.
Creates a new PangoLayout that is suitable for use
with the GtkPrintContext.
|
Gtk.PrintContext | |
get_cairo_context
()
:
cairo.Context
Obtains the cairo context that is associated with the
GtkPrintContext.
Obtains the cairo context that is associated with the
GtkPrintContext.
|
Gtk.PrintContext | |
get_dpi_x
()
:
gdouble
Obtains the horizontal resolution of the GtkPrintContext,
in dots per inch.
Obtains the horizontal resolution of the GtkPrintContext,
in dots per inch.
|
Gtk.PrintContext | |
get_dpi_y
()
:
gdouble
Obtains the vertical resolution of the GtkPrintContext,
in dots per inch.
Obtains the vertical resolution of the GtkPrintContext,
in dots per inch.
|
Gtk.PrintContext | |
Gtk.PrintContext | ||
get_height
()
:
gdouble
Obtains the height of the GtkPrintContext, in pixels.
Obtains the height of the GtkPrintContext, in pixels.
|
Gtk.PrintContext | |
get_page_setup
()
:
Gtk.PageSetup
Obtains the GtkPageSetup that determines the page
dimensions of the GtkPrintContext.
Obtains the GtkPageSetup that determines the page
dimensions of the GtkPrintContext.
|
Gtk.PrintContext | |
get_pango_fontmap
()
:
Pango.FontMap
Returns a PangoFontMap that is suitable for use
with the GtkPrintContext.
Returns a PangoFontMap that is suitable for use
with the GtkPrintContext.
|
Gtk.PrintContext | |
get_width
()
:
gdouble
Obtains the width of the GtkPrintContext, in pixels.
Obtains the width of the GtkPrintContext, in pixels.
|
Gtk.PrintContext | |
Sets a new cairo context on a print context.
Sets a new cairo context on a print context.
This function is intended to be used when implementing an internal print preview, it is not needed for printing, since GTK+ itself creates a suitable cairo context in that case.
|
Gtk.PrintContext |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.PrintOperation
Signal |
begin_print
(PrintOperation self, PrintContext context)
:
none
Emitted after the user has finished changing print settings
in the dialog, before the actual rendering starts. |
Gtk.PrintOperation
Signal |
Emitted for every page that is printed.
|
Gtk.PrintOperation
Signal |
end_print
(PrintOperation self, PrintContext context)
:
none
Emitted after all pages have been rendered.
|
Gtk.PrintOperation
Signal |
Emitted after the GtkPrintOperation::begin-print signal, but before
the actual rendering starts. |
Gtk.PrintOperation
Signal |
preview
(PrintOperation self, PrintOperationPreview preview, PrintContext context, Window parent)
:
gboolean
Gets emitted when a preview is requested from the native dialog.
|
Gtk.PrintOperation
Signal |
request_page_setup
(PrintOperation self, PrintContext context, gint32 page_nr, PageSetup setup)
:
none
Emitted once for every page that is printed, to give
the application a chance to modify the page setup. |
Gtk.PrintOperationPreview
Signal |
The ::got-page-size signal is emitted once for each page
that gets rendered to the preview. |
Gtk.PrintOperationPreview
Signal |
ready
(PrintOperationPreview self, PrintContext context)
:
none
The ::ready signal gets emitted once per preview operation,
before the first page is rendered. |
GtkSource.PrintCompositor
Method |
draw_page
(PrintContext context, gint32 page_nr)
:
none
|
GtkSource.PrintCompositor
Method |
paginate
(PrintContext context)
:
gboolean
|