## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Print_Context

- Goto spec source

# Description

    package Gtk.Print_Context is

Binding from C File version 2.16.6

# Classes

### Gtk_Print_Context_Record

- Goto declaration in source
- Goto full declaration in source

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

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Create_Pango_Context

- To API doc
- To spec

Create_Pango_Layout

- To API doc
- To spec

Get_Cairo_Context

- To API doc
- To spec

Get_Dpi_X

- To API doc
- To spec

Get_Dpi_Y

- To API doc
- To spec

Get_Height

- To API doc
- To spec

Get_Page_Setup

- To API doc
- To spec

Get_Width

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Set_Cairo_Context

- To API doc
- To spec

# Types

### Gtk_Print_Context

- Goto declaration in source

    type Gtk_Print_Context is access all Gtk_Print_Context_Record'Class;

# Subprograms & Entries

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

### Create_Pango_Context

- Goto spec in source

    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

- Goto spec in source

    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

- Goto spec in source

    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

- Goto spec in source

    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

- Goto spec in source

    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

- Goto spec in source

    function Get_Height (Context: access Gtk_Print_Context_Record) return Gdouble;

Obtains the height of the Gtk_Print_Context, in pixels.

### Get_Page_Setup

- Goto spec in source

    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

- Goto spec in source

    function Get_Width (Context: access Gtk_Print_Context_Record) return Gdouble;

Obtains the width of the Gtk_Print_Context, in pixels.

### Set_Cairo_Context

- Goto spec in source

    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.