PapersDocument.RenderContext

g GObject.Object GObject.Object PapersDocument.RenderContext PapersDocument.RenderContext GObject.Object->PapersDocument.RenderContext

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (page, rotation, scale, annot_flags)

compute_scaled_size (width_points, height_points)

compute_scales (width_points, height_points)

compute_transformed_size (width_points, height_points)

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

annot_flags

PapersDocument.RenderAnnotsFlags

r

page

PapersDocument.Page

r

parent

GObject.Object

r

rotation

int

r

scale

float

r

target_height

int

r

target_width

int

r

Class Details

class PapersDocument.RenderContext(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

PapersDocument.RenderContextClass

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

PapersDocument.RenderContext

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

  • height_points (float) –

Return type:

(scaled_width: int, scaled_height: int)

compute_scales(width_points, height_points)
Parameters:
  • width_points (float) –

  • height_points (float) –

Return type:

(scale_x: float, scale_y: float)

compute_transformed_size(width_points, height_points)
Parameters:
  • width_points (float) –

  • height_points (float) –

Return type:

(transformed_width: int, transformed_height: int)

set_page(page)
Parameters:

page (PapersDocument.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) –