GXPS.Page¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The Page Source File |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GXPS.Page(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
GXPS.Page
struct contains only private fields and should not be directly accessed.- get_anchor_destination(anchor)¶
- Parameters:
anchor (
str
) – the name of an anchor in self- Raises:
- Returns:
True
if the destination for the anchor was found in page and area contains the rectangle,False
otherwise.- area:
return location for page area of anchor
- Return type:
(
bool
, area:cairo.Rectangle
)
Gets the rectangle of self corresponding to the destination of the given anchor. If anchor is not found in self,
False
will be returned and error will containGXPS.PageError.INVALID_ANCHOR
- get_links()¶
- Raises:
- Returns:
- Return type:
Gets a list of
GXPS.Link
items that map from a location in self to aGXPS.LinkTarget
. Items in the list should be freed withGXPS.Link.free
() and the list itself with g_list_free() when done.
- get_size()¶
- Returns:
- width:
return location for the page width
- height:
return location for the page height
- Return type:
Gets the size of the page.
- render(cr)¶
- Parameters:
cr (
cairo.Context
) – a cairo context to render to- Raises:
- Returns:
- Return type:
Render the page to the given cairo context. In case of error,
False
is returned and error is filled with information about error.
Property Details¶
- GXPS.Page.props.source¶
- Name:
source
- Type:
- Default Value:
- Flags:
The Page Source File