EvinceDocument.RenderContext

g EvinceDocument.RenderContext EvinceDocument.RenderContext GObject.Object GObject.Object GObject.Object->EvinceDocument.RenderContext

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (page, rotation, scale)

compute_scaled_size (width_points, height_points, scaled_width, scaled_height)

compute_scales (width_points, height_points, scale_x, scale_y)

compute_transformed_size (width_points, height_points, transformed_width, transformed_height)

set_page (page)

set_rotation (rotation)

set_scale (scale)

set_target_size (target_width, target_height)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

page

EvinceDocument.Page

r

parent

GObject.Object

r

rotation

int

r

scale

float

r

target_height

int

r

target_width

int

r

Class Details

class EvinceDocument.RenderContext(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

EvinceDocument.RenderContextClass

classmethod new(page, rotation, scale)
Parameters:
Return type:

EvinceDocument.RenderContext

compute_scaled_size(width_points, height_points, scaled_width, scaled_height)
Parameters:
  • width_points (float) –

  • height_points (float) –

  • scaled_width (int) –

  • scaled_height (int) –

compute_scales(width_points, height_points, scale_x, scale_y)
Parameters:
compute_transformed_size(width_points, height_points, transformed_width, transformed_height)
Parameters:
  • width_points (float) –

  • height_points (float) –

  • transformed_width (int) –

  • transformed_height (int) –

set_page(page)
Parameters:

page (EvinceDocument.Page) –

set_rotation(rotation)
Parameters:

rotation (int) –

set_scale(scale)
Parameters:

scale (float) –

set_target_size(target_width, target_height)
Parameters:
  • target_width (int) –

  • target_height (int) –