PapersDocument.AnnotationFreeText¶
- Subclasses:
 None
Methods¶
- Inherited:
 PapersDocument.AnnotationMarkup (11), PapersDocument.Annotation (19), GObject.Object (37)
- Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
|||
r/w  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class PapersDocument.AnnotationFreeText(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new(page)¶
 - Parameters:
 page (
PapersDocument.Page) – aPapersDocument.Page- Returns:
 a new free text annotation
- Return type:
 
Creates a new free text annotation in the page. Font shall be set afterwards.
New in version 48.0.
- auto_resize(ctx)¶
 - Parameters:
 ctx (
Pango.Context) – a validPango.Context
Resize the annotation so as all the text fits in its rect, according to Pango metrics. This should typically be called every time the content is changed unless the free text annotation is supposed to be fixed width for instance.
New in version 48.0.
- get_font_description()¶
 - Returns:
 the font description used to display the annotation.
- Return type:
 
Returns a copy of the font descption used by the annotation.
New in version 48.0.
- get_font_rgba()¶
 - Returns:
 the font RGBA, must be freed by the caller
- Return type:
 
Gets the text color of self.
New in version 48.0.
- set_font_description(font_desc)¶
 - Parameters:
 font_desc (
Pango.FontDescription) – aPango.FontDescription- Returns:
 Trueif the font description has been changed,Falseotherwise- Return type:
 
Set the font of the free text annotation to annotation to font_desc.
New in version 48.0.
Property Details¶
- PapersDocument.AnnotationFreeText.props.font_desc¶
 - Name:
 font-desc- Type:
 - Default Value:
 - Flags: