Index

Package: Print_Context

Description

package Gtk.Print_Context is

Binding from C File version 2.16.6

Classes

Gtk_Print_Context_Record

type Gtk_Print_Context_Record is
     new Glib.Object.GObject_Record with private;

Ancestors:

Primitive operations:

Create_Pango_Context
Create_Pango_Layout
Get_Cairo_Context
Get_Page_Setup
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Set_Cairo_Context

Types

Gtk_Print_Context

type Gtk_Print_Context is access all Gtk_Print_Context_Record'Class;

Subprograms & Entries

Get_Type

function Get_Type return GType;

Create_Pango_Context

function Create_Pango_Context 
(Context: access Gtk_Print_Context_Record) return Pango.Context.Pango_Context;
Creates a new Pango_Context that can be used with the Gtk_Print_Context.

Create_Pango_Layout

function Create_Pango_Layout 
(Context: access Gtk_Print_Context_Record) return Pango.Layout.Pango_Layout;
Creates a new Pango_Layout that is suitable for use with the Gtk_Print_Context.

Get_Cairo_Context

function Get_Cairo_Context 
(Context: access Gtk_Print_Context_Record) return Cairo.Cairo_Context;
Obtains the cairo context that is associated with the Gtk_Print_Context.

Get_Dpi_X

function Get_Dpi_X 
(Context: access Gtk_Print_Context_Record) return Gdouble;
Obtains the horizontal resolution of the Gtk_Print_Context, in dots per inch.

Get_Dpi_Y

function Get_Dpi_Y 
(Context: access Gtk_Print_Context_Record) return Gdouble;
Obtains the vertical resolution of the Gtk_Print_Context, in dots per inch.

Get_Height

function Get_Height 
(Context: access Gtk_Print_Context_Record) return Gdouble;
Obtains the height of the Gtk_Print_Context, in pixels.

Get_Page_Setup

function Get_Page_Setup 
(Context: access Gtk_Print_Context_Record) return Gtk.Page_Setup.Gtk_Page_Setup;
Obtains the Gtk_Page_Setup that determines the page dimensions of the Gtk_Print_Context.

Get_Width

function Get_Width 
(Context: access Gtk_Print_Context_Record) return Gdouble;
Obtains the width of the Gtk_Print_Context, in pixels.

Set_Cairo_Context

procedure Set_Cairo_Context 
(Context: access Gtk_Print_Context_Record;
Cr: Cairo.Cairo_Context;
Dpi_X: Gdouble;
Dpi_Y: Gdouble);
Context: a Gtk_Print_Context Cr: the cairo context Dpi_X: the horizontal resolution to use with Cr Dpi_Y: the vertical resolution to use with Cr 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.