v_sim.Writer

g GObject.Object GObject.Object v_sim.Writer v_sim.Writer GObject.Object->v_sim.Writer

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

getStatic ()

layout (text)

setSize (size)

setStroke (stroke)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class v_sim.Writer(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

v_sim.WriterClass

Structure defining v_sim.Writer objects.

New in version 3.9.

classmethod getStatic()
Returns:

the v_sim.Writer singleton.

Return type:

v_sim.Writer

Retrieve the v_sim.Writer singleton.

New in version 3.9.

layout(text)
Parameters:

text (str) – a text

Returns:

a newly allocated buffer for the rasterisation of text.

width:

a location to store the width

height:

a location to store the height

Return type:

([int], width: int, height: int)

Compute the layout of text and returns it in ARGB32 format.

New in version 3.9.

setSize(size)
Parameters:

size (v_sim.WriterFontSize) – a font size

Change the rendering font size for self.

New in version 3.9.

setStroke(stroke)
Parameters:

stroke (bool) – a boolean

Outline text with a black stroke or not.

New in version 3.9.